Skip to content

Commit

Permalink
Merge pull request #1130 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][tests][fix] CUDA < 9.0 fix for `int64_t` and `uint64_t`
  • Loading branch information
emankov authored Nov 12, 2023
2 parents 5089f83 + d75bd48 commit 94b6314
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit_tests/synthetic/libraries/cusparse2hipsparse.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#include "cusparse.h"
// CHECK-NOT: #include "hipsparse.h"

#if defined(_WIN32) && CUDDA_VERSION < 9000
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#endif

int main() {
printf("17. cuSPARSE API to hipSPARSE API synthetic test\n");

Expand Down
5 changes: 5 additions & 0 deletions tests/unit_tests/synthetic/libraries/cusparse2rocsparse.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#include "cusparse.h"
// CHECK-NOT: #include "rocsparse.h"

#if defined(_WIN32) && CUDDA_VERSION < 9000
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#endif

int main() {
printf("18. cuSPARSE API to rocSPARSE API synthetic test\n");

Expand Down

0 comments on commit 94b6314

Please sign in to comment.