diff --git a/projects/clr/hipamd/bin/hipify-perl b/projects/clr/hipamd/bin/hipify-perl index 650b13c429..8094b96add 100755 --- a/projects/clr/hipamd/bin/hipify-perl +++ b/projects/clr/hipamd/bin/hipify-perl @@ -363,6 +363,7 @@ while (@ARGV) { $ft{'execution'} += s/\bcuFuncGetAttribute\b/hipFuncGetAttribute/g; $ft{'execution'} += s/\bcuLaunchKernel\b/hipModuleLaunchKernel/g; $ft{'execution'} += s/\bcudaConfigureCall\b/hipConfigureCall/g; + $ft{'execution'} += s/\bcudaFuncGetAttributes\b/hipFuncGetAttributes/g; $ft{'execution'} += s/\bcudaLaunch\b/hipLaunchByPtr/g; $ft{'execution'} += s/\bcudaLaunchCooperativeKernel\b/hipLaunchCooperativeKernel/g; $ft{'execution'} += s/\bcudaLaunchCooperativeKernelMultiDevice\b/hipLaunchCooperativeKernelMultiDevice/g; diff --git a/projects/clr/hipamd/docs/markdown/CUDA_Runtime_API_functions_supported_by_HIP.md b/projects/clr/hipamd/docs/markdown/CUDA_Runtime_API_functions_supported_by_HIP.md index dfb80a3537..b4a399e191 100644 --- a/projects/clr/hipamd/docs/markdown/CUDA_Runtime_API_functions_supported_by_HIP.md +++ b/projects/clr/hipamd/docs/markdown/CUDA_Runtime_API_functions_supported_by_HIP.md @@ -101,7 +101,7 @@ | **CUDA** | **HIP** |**CUDA version\***| |-----------------------------------------------------------|---------------------------------------|:----------------:| -| `cudaFuncGetAttributes` | | +| `cudaFuncGetAttributes` |`hipFuncGetAttributes` | | `cudaFuncSetAttribute` | | 9.0 | | `cudaFuncSetCacheConfig` |`hipFuncSetCacheConfig` | | `cudaFuncSetSharedMemConfig` | | diff --git a/projects/clr/hipamd/hipify-clang/src/CUDA2HIP_Runtime_API_functions.cpp b/projects/clr/hipamd/hipify-clang/src/CUDA2HIP_Runtime_API_functions.cpp index f15220d0d1..e3c8212aab 100644 --- a/projects/clr/hipamd/hipify-clang/src/CUDA2HIP_Runtime_API_functions.cpp +++ b/projects/clr/hipamd/hipify-clang/src/CUDA2HIP_Runtime_API_functions.cpp @@ -179,7 +179,7 @@ const std::map CUDA_RUNTIME_FUNCTION_MAP{ // 5.7. Execution Control // no analogue - {"cudaFuncGetAttributes", {"hipFuncGetAttributes", "", CONV_EXECUTION, API_RUNTIME, HIP_UNSUPPORTED}}, + {"cudaFuncGetAttributes", {"hipFuncGetAttributes", "", CONV_EXECUTION, API_RUNTIME}}, // no analogue {"cudaFuncSetAttribute", {"hipFuncSetAttribute", "", CONV_EXECUTION, API_RUNTIME, HIP_UNSUPPORTED}}, // no analogue