Skip to content

Commit

Permalink
Merge pull request #1060 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][#1059][tests][fix] Fix for the synthetic test cublas2rocblas.cu failure against CUDA 10.2
  • Loading branch information
emankov authored Oct 10, 2023
2 parents 75e2ac9 + 4f19731 commit e449b08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit_tests/synthetic/libraries/cublas2rocblas.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1668,10 +1668,8 @@ int main() {

// CHECK: rocblas_math_mode blasMath;
// CHECK-NEXT: rocblas_math_mode BLAS_DEFAULT_MATH = rocblas_default_math;
// CHECK-NEXT: rocblas_math_mode BLAS_TF32_TENSOR_OP_MATH = rocblas_xf32_xdl_math_op;
cublasMath_t blasMath;
cublasMath_t BLAS_DEFAULT_MATH = CUBLAS_DEFAULT_MATH;
cublasMath_t BLAS_TF32_TENSOR_OP_MATH = CUBLAS_TF32_TENSOR_OP_MATH;

// CUDA: CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGetMathMode(cublasHandle_t handle, cublasMath_t* mode);
// ROC: ROCBLAS_EXPORT rocblas_status rocblas_get_math_mode(rocblas_handle handle, rocblas_math_mode* math_mode);
Expand Down Expand Up @@ -1722,6 +1720,9 @@ int main() {
// CHECK-NEXT: rocblas_computetype BLAS_COMPUTE_32F = rocblas_compute_type_f32;
cublasComputeType_t blasComputeType;
cublasComputeType_t BLAS_COMPUTE_32F = CUBLAS_COMPUTE_32F;

// CHECK: rocblas_math_mode BLAS_TF32_TENSOR_OP_MATH = rocblas_xf32_xdl_math_op;
cublasMath_t BLAS_TF32_TENSOR_OP_MATH = CUBLAS_TF32_TENSOR_OP_MATH;
#endif

#if CUDA_VERSION >= 11040 && CUBLAS_VERSION >= 11600
Expand Down

0 comments on commit e449b08

Please sign in to comment.