Skip to content

Commit

Permalink
Merge pull request #1138 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][BLAS][tests][fix] CUDA < 8.0 test fixes
  • Loading branch information
emankov authored Nov 15, 2023
2 parents bd58059 + a6bdde3 commit 3bb24f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions tests/unit_tests/synthetic/libraries/cublas2rocblas.cu
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ int main() {
cublasAtomicsMode_t BLAS_ATOMICS_NOT_ALLOWED = CUBLAS_ATOMICS_NOT_ALLOWED;
cublasAtomicsMode_t BLAS_ATOMICS_ALLOWED = CUBLAS_ATOMICS_ALLOWED;

// CHECK: rocblas_gemm_algo blasGemmAlgo;
// CHECK-NEXT: rocblas_gemm_algo BLAS_GEMM_DFALT = rocblas_gemm_algo_standard;
cublasGemmAlgo_t blasGemmAlgo;
cublasGemmAlgo_t BLAS_GEMM_DFALT = CUBLAS_GEMM_DFALT;

// CHECK: rocblas_handle blasHandle;
cublasHandle_t blasHandle;

Expand Down Expand Up @@ -1618,6 +1613,11 @@ int main() {
// CHECK: rocblas_datatype DataType_2, DataType_3;
cudaDataType DataType_2, DataType_3;

// CHECK: rocblas_gemm_algo blasGemmAlgo;
// CHECK-NEXT: rocblas_gemm_algo BLAS_GEMM_DFALT = rocblas_gemm_algo_standard;
cublasGemmAlgo_t blasGemmAlgo;
cublasGemmAlgo_t BLAS_GEMM_DFALT = CUBLAS_GEMM_DFALT;

// TODO: #1281
// CUDA: CUBLASAPI cublasStatus_t CUBLASWINAPI cublasNrm2Ex(cublasHandle_t handle, int n, const void* x, cudaDataType xType, int incx, void* result, cudaDataType resultType, cudaDataType executionType);
// ROC: ROCBLAS_EXPORT rocblas_status rocblas_nrm2_ex(rocblas_handle handle, rocblas_int n, const void* x, rocblas_datatype x_type, rocblas_int incx, void* results, rocblas_datatype result_type, rocblas_datatype execution_type);
Expand Down
10 changes: 5 additions & 5 deletions tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ int main() {
cublasAtomicsMode_t BLAS_ATOMICS_NOT_ALLOWED = CUBLAS_ATOMICS_NOT_ALLOWED;
cublasAtomicsMode_t BLAS_ATOMICS_ALLOWED = CUBLAS_ATOMICS_ALLOWED;

// CHECK: rocblas_gemm_algo blasGemmAlgo;
// CHECK-NEXT: rocblas_gemm_algo BLAS_GEMM_DFALT = rocblas_gemm_algo_standard;
cublasGemmAlgo_t blasGemmAlgo;
cublasGemmAlgo_t BLAS_GEMM_DFALT = CUBLAS_GEMM_DFALT;

// CHECK: rocblas_handle blasHandle;
cublasHandle_t blasHandle;

Expand Down Expand Up @@ -1765,6 +1760,11 @@ int main() {
// CHECK: rocblas_datatype DataType_2, DataType_3;
cudaDataType DataType_2, DataType_3;

// CHECK: rocblas_gemm_algo blasGemmAlgo;
// CHECK-NEXT: rocblas_gemm_algo BLAS_GEMM_DFALT = rocblas_gemm_algo_standard;
cublasGemmAlgo_t blasGemmAlgo;
cublasGemmAlgo_t BLAS_GEMM_DFALT = CUBLAS_GEMM_DFALT;

// TODO: #1281
// CUDA: CUBLASAPI cublasStatus_t CUBLASWINAPI cublasNrm2Ex(cublasHandle_t handle, int n, const void* x, cudaDataType xType, int incx, void* result, cudaDataType resultType, cudaDataType executionType);
// ROC: ROCBLAS_EXPORT rocblas_status rocblas_nrm2_ex(rocblas_handle handle, rocblas_int n, const void* x, rocblas_datatype x_type, rocblas_int incx, void* results, rocblas_datatype result_type, rocblas_datatype execution_type);
Expand Down

0 comments on commit 3bb24f7

Please sign in to comment.