Skip to content

Commit e863e80

Browse files
committed
Add support for cuda-samples helper header to HIP
1 parent 6edad80 commit e863e80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CUDA2HIP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const std::map <llvm::StringRef, hipCounter> CUDA_INCLUDE_MAP {
4242
{"cooperative_groups.h", {"hip/hip_cooperative_groups.h", "", CONV_INCLUDE, API_RUNTIME, 0}},
4343
{"library_types.h", {"hip/library_types.h", "", CONV_INCLUDE, API_RUNTIME, 0}},
4444
{"math_constants.h", {"hip/hip_math_constants.h", "", CONV_INCLUDE, API_RUNTIME, 0}},
45+
// cuda-samples helper includes
46+
{"helper_cuda.h", {"hip/hip_runtime_api.h", "", CONV_INCLUDE, API_RUNTIME, 0}},
47+
{"helper_math.h", {"hip/hip_vector_types.h", "", CONV_INCLUDE, API_RUNTIME, 0}},
4548
// cuComplex includes
4649
{"cuComplex.h", {"hip/hip_complex.h", "", CONV_INCLUDE_CUDA_MAIN_H, API_COMPLEX, 0}},
4750
// cuBLAS includes

0 commit comments

Comments
 (0)