Debian Codegraph @

tests/unit_tests/synthetic/libraries/cutensor2hiptensor_before_20000.cu

raw
1 // RUN: %run_test hipify "%s" "%t" %hipify_args 3 --amap --skip-excluded-preprocessor-conditional-blocks --experimental %clang_args -D__CUDA_API_VERSION_INTERNAL -ferror-limit=500
2
3 // CHECK: #include <hip/hip_runtime.h>
4 #include <cuda_runtime.h>
5 #include <stdio.h>
6 // CHECK: #include "hiptensor.h"
7 #include "cutensor.h"
8 // CHECK-NOT: #include "hiptensor.h"
9
10 int main() {
11 printf("25.before.20000. cuTensor API to hipTensor API synthetic test\n");
12
13 #if CUDA_VERSION >= 8000
14 // CHECK: hipDataType dataType;
15 cudaDataType dataType;
16 #endif
17
18 #if CUTENSOR_MAJOR < 2
19 // CHECK: hiptensorAutotuneMode_t TENSOR_AUTOTUNE_MODE_NONE = HIPTENSOR_AUTOTUNE_MODE_NONE;
20 // CHECK-NEXT hiptensorAutotuneMode_t TENSOR_AUTOTUNE_MODE_INCREMENTAL = HIPTENSOR_AUTOTUNE_MODE_INCREMENTAL;
21 cutensorAutotuneMode_t TENSOR_AUTOTUNE_MODE_NONE = CUTENSOR_AUTOTUNE_NONE;
22 cutensorAutotuneMode_t TENSOR_AUTOTUNE_MODE_INCREMENTAL = CUTENSOR_AUTOTUNE_INCREMENTAL;
23 #endif
24
25 return 0;
26 }