[HIPIFY] Add cudaMalloc3D support

[ROCm/clr commit: eb27585136]
This commit is contained in:
Evgeny Mankov
2018-01-18 12:28:56 +03:00
rodzic 9ccb45af4b
commit 75ed140298
2 zmienionych plików z 2 dodań i 2 usunięć
@@ -124,7 +124,7 @@
| `cudaHostRegister` | `hipHostRegister` |
| `cudaHostUnregister` | `hipHostUnregister` |
| `cudaMalloc` | `hipMalloc` |
| `cudaMalloc3D` | |
| `cudaMalloc3D` | `hipMalloc3D` |
| `cudaMalloc3DArray` | `hipMalloc3DArray` |
| `cudaMallocArray` | `hipMallocArray` |
| `cudaMallocHost` | `hipHostMalloc` |
@@ -1441,7 +1441,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_IDENTIFIER_MAP{
{"cudaMalloc", {"hipMalloc", CONV_MEM, API_RUNTIME}},
{"cudaMallocHost", {"hipHostMalloc", CONV_MEM, API_RUNTIME}},
{"cudaMallocArray", {"hipMallocArray", CONV_MEM, API_RUNTIME}},
{"cudaMalloc3D", {"hipMalloc3D", CONV_MEM, API_RUNTIME, HIP_UNSUPPORTED}},
{"cudaMalloc3D", {"hipMalloc3D", CONV_MEM, API_RUNTIME}},
{"cudaMalloc3DArray", {"hipMalloc3DArray", CONV_MEM, API_RUNTIME}},
{"cudaMallocManaged", {"hipMallocManaged", CONV_MEM, API_RUNTIME, HIP_UNSUPPORTED}},
{"cudaMallocMipmappedArray", {"hipMallocMipmappedArray", CONV_MEM, API_RUNTIME, HIP_UNSUPPORTED}},