[HIPIFY][#1437] Fix: cudaFuncGetAttributes to hipFuncGetAttributes is supported

+ Update hipify-perl and CUDA_Runtime_API_functions_supported_by_HIP.md accordingly
Bu işleme şunda yer alıyor:
Evgeny Mankov
2019-09-18 17:57:31 +03:00
ebeveyn 05d71d4b8b
işleme a49f9924a7
3 değiştirilmiş dosya ile 3 ekleme ve 2 silme
+1
Dosyayı Görüntüle
@@ -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;
+1 -1
Dosyayı Görüntüle
@@ -101,7 +101,7 @@
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|---------------------------------------|:----------------:|
| `cudaFuncGetAttributes` | |
| `cudaFuncGetAttributes` |`hipFuncGetAttributes` |
| `cudaFuncSetAttribute` | | 9.0 |
| `cudaFuncSetCacheConfig` |`hipFuncSetCacheConfig` |
| `cudaFuncSetSharedMemConfig` | |
+1 -1
Dosyayı Görüntüle
@@ -179,7 +179,7 @@ const std::map<llvm::StringRef, hipCounter> 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