From b4f63886ae0b5aeb1311978ad0f02448d7dc9d38 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Wed, 7 Feb 2024 12:48:03 +0000 Subject: [PATCH] [HIPIFY][tests][Windows][fix] Fix for `(u)int64_t` and `CUDDA_VERSION < 9000` --- tests/unit_tests/synthetic/libraries/cublas2hipblas_v2.cu | 5 +++++ tests/unit_tests/synthetic/libraries/cublas2rocblas.cu | 5 +++++ tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tests/unit_tests/synthetic/libraries/cublas2hipblas_v2.cu b/tests/unit_tests/synthetic/libraries/cublas2hipblas_v2.cu index 77904d84..e377d2a6 100644 --- a/tests/unit_tests/synthetic/libraries/cublas2hipblas_v2.cu +++ b/tests/unit_tests/synthetic/libraries/cublas2hipblas_v2.cu @@ -8,6 +8,11 @@ #include "cublas_v2.h" // CHECK-NOT: #include "hipblas.h" +#if defined(_WIN32) && CUDDA_VERSION < 9000 + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#endif + int main() { printf("14.v2. cuBLAS API to hipBLAS API synthetic test\n"); diff --git a/tests/unit_tests/synthetic/libraries/cublas2rocblas.cu b/tests/unit_tests/synthetic/libraries/cublas2rocblas.cu index 54abe2ed..2b12cbb7 100644 --- a/tests/unit_tests/synthetic/libraries/cublas2rocblas.cu +++ b/tests/unit_tests/synthetic/libraries/cublas2rocblas.cu @@ -7,6 +7,11 @@ #include "cublas.h" // CHECK-NOT: #include "rocblas.h" +#if defined(_WIN32) && CUDDA_VERSION < 9000 + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#endif + int main() { printf("16. cuBLAS API to hipBLAS API synthetic test\n"); diff --git a/tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu b/tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu index 2ee82484..bd57bd54 100644 --- a/tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu +++ b/tests/unit_tests/synthetic/libraries/cublas2rocblas_v2.cu @@ -8,6 +8,11 @@ #include "cublas_v2.h" // CHECK-NOT: #include "rocblas.h" +#if defined(_WIN32) && CUDDA_VERSION < 9000 + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#endif + int main() { printf("16.v2. cuBLAS API to hipBLAS API synthetic test\n");