Merge pull request #1438 from emankov/master

[HIPIFY][#1437] Fix: cudaFuncGetAttributes to hipFuncGetAttributes is supported
Этот коммит содержится в:
Evgeny Mankov
2019-09-18 18:01:26 +03:00
коммит произвёл GitHub
родитель 0f2a514629 f0b1170784
Коммит 4a2209a640
3 изменённых файлов: 3 добавлений и 2 удалений
+1
Просмотреть файл
@@ -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
Просмотреть файл
@@ -101,7 +101,7 @@
| **CUDA** | **HIP** |**CUDA version\***|
|-----------------------------------------------------------|---------------------------------------|:----------------:|
| `cudaFuncGetAttributes` | |
| `cudaFuncGetAttributes` |`hipFuncGetAttributes` |
| `cudaFuncSetAttribute` | | 9.0 |
| `cudaFuncSetCacheConfig` |`hipFuncSetCacheConfig` |
| `cudaFuncSetSharedMemConfig` | |
+1 -1
Просмотреть файл
@@ -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