Merge pull request #1743 from emankov/master
[HIPIFY] Revise HIP runtime
[ROCm/clr commit: b1aa111446]
Этот коммит содержится в:
@@ -199,9 +199,9 @@ sub simpleSubstitutions {
|
|||||||
$ft{'memory'} += s/\bcuIpcGetMemHandle\b/hipIpcGetMemHandle/g;
|
$ft{'memory'} += s/\bcuIpcGetMemHandle\b/hipIpcGetMemHandle/g;
|
||||||
$ft{'memory'} += s/\bcuIpcOpenMemHandle\b/hipIpcOpenMemHandle/g;
|
$ft{'memory'} += s/\bcuIpcOpenMemHandle\b/hipIpcOpenMemHandle/g;
|
||||||
$ft{'memory'} += s/\bcuMemAlloc\b/hipMalloc/g;
|
$ft{'memory'} += s/\bcuMemAlloc\b/hipMalloc/g;
|
||||||
$ft{'memory'} += s/\bcuMemAllocHost\b/hipMemAllocHost/g;
|
$ft{'memory'} += s/\bcuMemAllocHost\b/hipHostMalloc/g;
|
||||||
$ft{'memory'} += s/\bcuMemAllocHost_v2\b/hipMemAllocHost/g;
|
$ft{'memory'} += s/\bcuMemAllocHost_v2\b/hipHostMalloc/g;
|
||||||
$ft{'memory'} += s/\bcuMemAllocManaged\b/hipMemAllocManaged/g;
|
$ft{'memory'} += s/\bcuMemAllocManaged\b/hipMallocManaged/g;
|
||||||
$ft{'memory'} += s/\bcuMemAllocPitch\b/hipMemAllocPitch/g;
|
$ft{'memory'} += s/\bcuMemAllocPitch\b/hipMemAllocPitch/g;
|
||||||
$ft{'memory'} += s/\bcuMemAllocPitch_v2\b/hipMemAllocPitch/g;
|
$ft{'memory'} += s/\bcuMemAllocPitch_v2\b/hipMemAllocPitch/g;
|
||||||
$ft{'memory'} += s/\bcuMemAlloc_v2\b/hipMalloc/g;
|
$ft{'memory'} += s/\bcuMemAlloc_v2\b/hipMalloc/g;
|
||||||
@@ -215,7 +215,7 @@ sub simpleSubstitutions {
|
|||||||
$ft{'memory'} += s/\bcuMemHostAlloc\b/hipHostMalloc/g;
|
$ft{'memory'} += s/\bcuMemHostAlloc\b/hipHostMalloc/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostGetDevicePointer\b/hipHostGetDevicePointer/g;
|
$ft{'memory'} += s/\bcuMemHostGetDevicePointer\b/hipHostGetDevicePointer/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostGetDevicePointer_v2\b/hipHostGetDevicePointer/g;
|
$ft{'memory'} += s/\bcuMemHostGetDevicePointer_v2\b/hipHostGetDevicePointer/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostGetFlags\b/hipMemHostGetFlags/g;
|
$ft{'memory'} += s/\bcuMemHostGetFlags\b/hipHostGetFlags/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostRegister\b/hipHostRegister/g;
|
$ft{'memory'} += s/\bcuMemHostRegister\b/hipHostRegister/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostRegister_v2\b/hipHostRegister/g;
|
$ft{'memory'} += s/\bcuMemHostRegister_v2\b/hipHostRegister/g;
|
||||||
$ft{'memory'} += s/\bcuMemHostUnregister\b/hipHostUnregister/g;
|
$ft{'memory'} += s/\bcuMemHostUnregister\b/hipHostUnregister/g;
|
||||||
@@ -287,6 +287,8 @@ sub simpleSubstitutions {
|
|||||||
$ft{'memory'} += s/\bcudaMemset\b/hipMemset/g;
|
$ft{'memory'} += s/\bcudaMemset\b/hipMemset/g;
|
||||||
$ft{'memory'} += s/\bcudaMemset2D\b/hipMemset2D/g;
|
$ft{'memory'} += s/\bcudaMemset2D\b/hipMemset2D/g;
|
||||||
$ft{'memory'} += s/\bcudaMemset2DAsync\b/hipMemset2DAsync/g;
|
$ft{'memory'} += s/\bcudaMemset2DAsync\b/hipMemset2DAsync/g;
|
||||||
|
$ft{'memory'} += s/\bcudaMemset3D\b/hipMemset3D/g;
|
||||||
|
$ft{'memory'} += s/\bcudaMemset3DAsync\b/hipMemset3DAsync/g;
|
||||||
$ft{'memory'} += s/\bcudaMemsetAsync\b/hipMemsetAsync/g;
|
$ft{'memory'} += s/\bcudaMemsetAsync\b/hipMemsetAsync/g;
|
||||||
$ft{'memory'} += s/\bmake_cudaExtent\b/make_hipExtent/g;
|
$ft{'memory'} += s/\bmake_cudaExtent\b/make_hipExtent/g;
|
||||||
$ft{'memory'} += s/\bmake_cudaPitchedPtr\b/make_hipPitchedPtr/g;
|
$ft{'memory'} += s/\bmake_cudaPitchedPtr\b/make_hipPitchedPtr/g;
|
||||||
@@ -1706,7 +1708,7 @@ sub simpleSubstitutions {
|
|||||||
$ft{'define'} += s/\bCU_LAUNCH_PARAM_END\b/HIP_LAUNCH_PARAM_END/g;
|
$ft{'define'} += s/\bCU_LAUNCH_PARAM_END\b/HIP_LAUNCH_PARAM_END/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTALLOC_DEVICEMAP\b/hipHostMallocMapped/g;
|
$ft{'define'} += s/\bCU_MEMHOSTALLOC_DEVICEMAP\b/hipHostMallocMapped/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTALLOC_PORTABLE\b/hipHostMallocPortable/g;
|
$ft{'define'} += s/\bCU_MEMHOSTALLOC_PORTABLE\b/hipHostMallocPortable/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTALLOC_WRITECOMBINED\b/hipHostAllocWriteCombined/g;
|
$ft{'define'} += s/\bCU_MEMHOSTALLOC_WRITECOMBINED\b/hipHostMallocWriteCombined/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_DEVICEMAP\b/hipHostRegisterMapped/g;
|
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_DEVICEMAP\b/hipHostRegisterMapped/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_IOMEMORY\b/hipHostRegisterIoMemory/g;
|
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_IOMEMORY\b/hipHostRegisterIoMemory/g;
|
||||||
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_PORTABLE\b/hipHostRegisterPortable/g;
|
$ft{'define'} += s/\bCU_MEMHOSTREGISTER_PORTABLE\b/hipHostRegisterPortable/g;
|
||||||
@@ -1736,7 +1738,7 @@ sub simpleSubstitutions {
|
|||||||
$ft{'define'} += s/\bcudaHostAllocDefault\b/hipHostMallocDefault/g;
|
$ft{'define'} += s/\bcudaHostAllocDefault\b/hipHostMallocDefault/g;
|
||||||
$ft{'define'} += s/\bcudaHostAllocMapped\b/hipHostMallocMapped/g;
|
$ft{'define'} += s/\bcudaHostAllocMapped\b/hipHostMallocMapped/g;
|
||||||
$ft{'define'} += s/\bcudaHostAllocPortable\b/hipHostMallocPortable/g;
|
$ft{'define'} += s/\bcudaHostAllocPortable\b/hipHostMallocPortable/g;
|
||||||
$ft{'define'} += s/\bcudaHostAllocWriteCombined\b/hipHostAllocWriteCombined/g;
|
$ft{'define'} += s/\bcudaHostAllocWriteCombined\b/hipHostMallocWriteCombined/g;
|
||||||
$ft{'define'} += s/\bcudaHostRegisterDefault\b/hipHostRegisterDefault/g;
|
$ft{'define'} += s/\bcudaHostRegisterDefault\b/hipHostRegisterDefault/g;
|
||||||
$ft{'define'} += s/\bcudaHostRegisterIoMemory\b/hipHostRegisterIoMemory/g;
|
$ft{'define'} += s/\bcudaHostRegisterIoMemory\b/hipHostRegisterIoMemory/g;
|
||||||
$ft{'define'} += s/\bcudaHostRegisterMapped\b/hipHostRegisterMapped/g;
|
$ft{'define'} += s/\bcudaHostRegisterMapped\b/hipHostRegisterMapped/g;
|
||||||
|
|||||||
+4
-4
@@ -561,7 +561,7 @@
|
|||||||
| define |`CU_LAUNCH_PARAM_END` |`HIP_LAUNCH_PARAM_END` |
|
| define |`CU_LAUNCH_PARAM_END` |`HIP_LAUNCH_PARAM_END` |
|
||||||
| define |`CU_MEMHOSTALLOC_DEVICEMAP` |`hipHostMallocMapped` |
|
| define |`CU_MEMHOSTALLOC_DEVICEMAP` |`hipHostMallocMapped` |
|
||||||
| define |`CU_MEMHOSTALLOC_PORTABLE` |`hipHostMallocPortable` |
|
| define |`CU_MEMHOSTALLOC_PORTABLE` |`hipHostMallocPortable` |
|
||||||
| define |`CU_MEMHOSTALLOC_WRITECOMBINED` |`hipHostAllocWriteCombined` |
|
| define |`CU_MEMHOSTALLOC_WRITECOMBINED` |`hipHostMallocWriteCombined` |
|
||||||
| define |`CU_MEMHOSTREGISTER_DEVICEMAP` |`hipHostRegisterMapped` |
|
| define |`CU_MEMHOSTREGISTER_DEVICEMAP` |`hipHostRegisterMapped` |
|
||||||
| define |`CU_MEMHOSTREGISTER_IOMEMORY` |`hipHostRegisterIoMemory` | 7.5 |
|
| define |`CU_MEMHOSTREGISTER_IOMEMORY` |`hipHostRegisterIoMemory` | 7.5 |
|
||||||
| define |`CU_MEMHOSTREGISTER_PORTABLE` |`hipHostRegisterPortable` |
|
| define |`CU_MEMHOSTREGISTER_PORTABLE` |`hipHostRegisterPortable` |
|
||||||
@@ -916,8 +916,8 @@
|
|||||||
| `cuIpcOpenEventHandle` | |
|
| `cuIpcOpenEventHandle` | |
|
||||||
| `cuIpcOpenMemHandle` | `hipIpcOpenMemHandle` |
|
| `cuIpcOpenMemHandle` | `hipIpcOpenMemHandle` |
|
||||||
| `cuMemAlloc` | `hipMalloc` |
|
| `cuMemAlloc` | `hipMalloc` |
|
||||||
| `cuMemAllocHost` | `hipMemAllocHost` |
|
| `cuMemAllocHost` | `hipHostMalloc` |
|
||||||
| `cuMemAllocManaged` | `hipMemAllocManaged` |
|
| `cuMemAllocManaged` | `hipMallocManaged` |
|
||||||
| `cuMemAllocPitch` | `hipMemAllocPitch` |
|
| `cuMemAllocPitch` | `hipMemAllocPitch` |
|
||||||
| `cuMemcpy` | |
|
| `cuMemcpy` | |
|
||||||
| `cuMemcpy2D` | `hipMemcpyParam2D` |
|
| `cuMemcpy2D` | `hipMemcpyParam2D` |
|
||||||
@@ -944,7 +944,7 @@
|
|||||||
| `cuMemcpyPeer` | |
|
| `cuMemcpyPeer` | |
|
||||||
| `cuMemcpyPeerAsync` | |
|
| `cuMemcpyPeerAsync` | |
|
||||||
| `cuMemFree` | `hipFree` |
|
| `cuMemFree` | `hipFree` |
|
||||||
| `cuMemFreeHost` | `hipFreeHost` |
|
| `cuMemFreeHost` | `hipHostFree` |
|
||||||
| `cuMemGetAddressRange` | `hipMemGetAddressRange` |
|
| `cuMemGetAddressRange` | `hipMemGetAddressRange` |
|
||||||
| `cuMemGetInfo` | `hipMemGetInfo` |
|
| `cuMemGetInfo` | `hipMemGetInfo` |
|
||||||
| `cuMemHostAlloc` | `hipHostMalloc` |
|
| `cuMemHostAlloc` | `hipHostMalloc` |
|
||||||
|
|||||||
+3
-3
@@ -166,7 +166,7 @@
|
|||||||
| `cudaMemcpy2DToArray` | `hipMemcpy2DToArray` |
|
| `cudaMemcpy2DToArray` | `hipMemcpy2DToArray` |
|
||||||
| `cudaMemcpy2DToArrayAsync` | |
|
| `cudaMemcpy2DToArrayAsync` | |
|
||||||
| `cudaMemcpy3D` | `hipMemcpy3D` |
|
| `cudaMemcpy3D` | `hipMemcpy3D` |
|
||||||
| `cudaMemcpy3DAsync` | |
|
| `cudaMemcpy3DAsync` | `hipMemcpy3DAsync` |
|
||||||
| `cudaMemcpy3DPeer` | |
|
| `cudaMemcpy3DPeer` | |
|
||||||
| `cudaMemcpy3DPeerAsync` | |
|
| `cudaMemcpy3DPeerAsync` | |
|
||||||
| `cudaMemcpyAsync` | `hipMemcpyAsync` |
|
| `cudaMemcpyAsync` | `hipMemcpyAsync` |
|
||||||
@@ -179,8 +179,8 @@
|
|||||||
| `cudaMemset` | `hipMemset` |
|
| `cudaMemset` | `hipMemset` |
|
||||||
| `cudaMemset2D` | `hipMemset2D` |
|
| `cudaMemset2D` | `hipMemset2D` |
|
||||||
| `cudaMemset2DAsync` | `hipMemset2DAsync` |
|
| `cudaMemset2DAsync` | `hipMemset2DAsync` |
|
||||||
| `cudaMemset3D` | |
|
| `cudaMemset3D` | `hipMemset3D` |
|
||||||
| `cudaMemset3DAsync` | |
|
| `cudaMemset3DAsync` | `hipMemset3DAsync` |
|
||||||
| `cudaMemsetAsync` | `hipMemsetAsync` |
|
| `cudaMemsetAsync` | `hipMemsetAsync` |
|
||||||
| `make_cudaExtent` | `make_hipExtent` |
|
| `make_cudaExtent` | `make_hipExtent` |
|
||||||
| `make_cudaPitchedPtr` | `make_hipPitchedPtr` |
|
| `make_cudaPitchedPtr` | `make_hipPitchedPtr` |
|
||||||
|
|||||||
@@ -164,10 +164,10 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_FUNCTION_MAP{
|
|||||||
{"cuMemAlloc", {"hipMalloc", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAlloc", {"hipMalloc", "", CONV_MEMORY, API_DRIVER}},
|
||||||
{"cuMemAlloc_v2", {"hipMalloc", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAlloc_v2", {"hipMalloc", "", CONV_MEMORY, API_DRIVER}},
|
||||||
// cudaHostAlloc
|
// cudaHostAlloc
|
||||||
{"cuMemAllocHost", {"hipMemAllocHost", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAllocHost", {"hipHostMalloc", "", CONV_MEMORY, API_DRIVER}},
|
||||||
{"cuMemAllocHost_v2", {"hipMemAllocHost", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAllocHost_v2", {"hipHostMalloc", "", CONV_MEMORY, API_DRIVER}},
|
||||||
// cudaMallocManaged
|
// cudaMallocManaged
|
||||||
{"cuMemAllocManaged", {"hipMemAllocManaged", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAllocManaged", {"hipMallocManaged", "", CONV_MEMORY, API_DRIVER}},
|
||||||
// no analogue
|
// no analogue
|
||||||
// NOTE: Not equal to cudaMallocPitch due to different signatures
|
// NOTE: Not equal to cudaMallocPitch due to different signatures
|
||||||
{"cuMemAllocPitch", {"hipMemAllocPitch", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemAllocPitch", {"hipMemAllocPitch", "", CONV_MEMORY, API_DRIVER}},
|
||||||
@@ -266,7 +266,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_FUNCTION_MAP{
|
|||||||
{"cuMemHostGetDevicePointer", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemHostGetDevicePointer", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_DRIVER}},
|
||||||
{"cuMemHostGetDevicePointer_v2", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemHostGetDevicePointer_v2", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_DRIVER}},
|
||||||
// cudaHostGetFlags
|
// cudaHostGetFlags
|
||||||
{"cuMemHostGetFlags", {"hipMemHostGetFlags", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemHostGetFlags", {"hipHostGetFlags", "", CONV_MEMORY, API_DRIVER}},
|
||||||
// cudaHostRegister
|
// cudaHostRegister
|
||||||
{"cuMemHostRegister", {"hipHostRegister", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemHostRegister", {"hipHostRegister", "", CONV_MEMORY, API_DRIVER}},
|
||||||
{"cuMemHostRegister_v2", {"hipHostRegister", "", CONV_MEMORY, API_DRIVER}},
|
{"cuMemHostRegister_v2", {"hipHostRegister", "", CONV_MEMORY, API_DRIVER}},
|
||||||
@@ -340,7 +340,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_FUNCTION_MAP{
|
|||||||
{"cuPointerGetAttribute", {"hipPointerGetAttribute", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
{"cuPointerGetAttribute", {"hipPointerGetAttribute", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
||||||
// no analogue
|
// no analogue
|
||||||
// NOTE: Not equal to cudaPointerGetAttributes due to different signatures
|
// NOTE: Not equal to cudaPointerGetAttributes due to different signatures
|
||||||
{"cuPointerGetAttributes", {"hipPointerGetAttributes", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
{"cuPointerGetAttributes", {"hipPointerGetAttributes_", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cuPointerSetAttribute", {"hipPointerSetAttribute", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
{"cuPointerSetAttribute", {"hipPointerSetAttribute", "", CONV_ADDRESSING, API_DRIVER, HIP_UNSUPPORTED}},
|
||||||
|
|
||||||
|
|||||||
@@ -1606,7 +1606,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DRIVER_TYPE_NAME_MAP{
|
|||||||
// cudaHostAllocMapped
|
// cudaHostAllocMapped
|
||||||
{"CU_MEMHOSTALLOC_DEVICEMAP", {"hipHostMallocMapped", "", CONV_DEFINE, API_DRIVER}}, // 0x02
|
{"CU_MEMHOSTALLOC_DEVICEMAP", {"hipHostMallocMapped", "", CONV_DEFINE, API_DRIVER}}, // 0x02
|
||||||
// cudaHostAllocWriteCombined
|
// cudaHostAllocWriteCombined
|
||||||
{"CU_MEMHOSTALLOC_WRITECOMBINED", {"hipHostAllocWriteCombined", "", CONV_DEFINE, API_DRIVER}}, // 0x04
|
{"CU_MEMHOSTALLOC_WRITECOMBINED", {"hipHostMallocWriteCombined", "", CONV_DEFINE, API_DRIVER}}, // 0x04
|
||||||
// cudaHostRegisterPortable
|
// cudaHostRegisterPortable
|
||||||
{"CU_MEMHOSTREGISTER_PORTABLE", {"hipHostRegisterPortable", "", CONV_DEFINE, API_DRIVER}}, // 0x01
|
{"CU_MEMHOSTREGISTER_PORTABLE", {"hipHostRegisterPortable", "", CONV_DEFINE, API_DRIVER}}, // 0x01
|
||||||
// cudaHostRegisterMapped
|
// cudaHostRegisterMapped
|
||||||
|
|||||||
@@ -254,7 +254,6 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RUNTIME_FUNCTION_MAP{
|
|||||||
// no analogue
|
// no analogue
|
||||||
{"cudaGetSymbolSize", {"hipGetSymbolSize", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaGetSymbolSize", {"hipGetSymbolSize", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// cuMemHostAlloc
|
// cuMemHostAlloc
|
||||||
// NOTE: hipHostAlloc deprecated - use hipHostMalloc instead
|
|
||||||
{"cudaHostAlloc", {"hipHostMalloc", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaHostAlloc", {"hipHostMalloc", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// cuMemHostGetDevicePointer
|
// cuMemHostGetDevicePointer
|
||||||
{"cudaHostGetDevicePointer", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaHostGetDevicePointer", {"hipHostGetDevicePointer", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
@@ -340,16 +339,16 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RUNTIME_FUNCTION_MAP{
|
|||||||
{"cudaMemRangeGetAttribute", {"hipMemRangeGetAttribute", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
{"cudaMemRangeGetAttribute", {"hipMemRangeGetAttribute", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
||||||
// cuMemRangeGetAttributes
|
// cuMemRangeGetAttributes
|
||||||
{"cudaMemRangeGetAttributes", {"hipMemRangeGetAttributes", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
{"cudaMemRangeGetAttributes", {"hipMemRangeGetAttributes", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
||||||
// cuMemsetD32
|
// cuMemsetD32 - hipMemsetD32
|
||||||
{"cudaMemset", {"hipMemset", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaMemset", {"hipMemset", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cudaMemset2D", {"hipMemset2D", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaMemset2D", {"hipMemset2D", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cudaMemset2DAsync", {"hipMemset2DAsync", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaMemset2DAsync", {"hipMemset2DAsync", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cudaMemset3D", {"hipMemset3D", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
{"cudaMemset3D", {"hipMemset3D", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cudaMemset3DAsync", {"hipMemset3DAsync", "", CONV_MEMORY, API_RUNTIME, HIP_UNSUPPORTED}},
|
{"cudaMemset3DAsync", {"hipMemset3DAsync", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// cuMemsetD32Async
|
// cuMemsetD32Async
|
||||||
{"cudaMemsetAsync", {"hipMemsetAsync", "", CONV_MEMORY, API_RUNTIME}},
|
{"cudaMemsetAsync", {"hipMemsetAsync", "", CONV_MEMORY, API_RUNTIME}},
|
||||||
// no analogue
|
// no analogue
|
||||||
|
|||||||
@@ -1436,7 +1436,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_RUNTIME_TYPE_NAME_MAP {
|
|||||||
// CU_MEMHOSTALLOC_DEVICEMAP
|
// CU_MEMHOSTALLOC_DEVICEMAP
|
||||||
{"cudaHostAllocMapped", {"hipHostMallocMapped", "", CONV_DEFINE, API_RUNTIME}}, // 0x02
|
{"cudaHostAllocMapped", {"hipHostMallocMapped", "", CONV_DEFINE, API_RUNTIME}}, // 0x02
|
||||||
// CU_MEMHOSTALLOC_WRITECOMBINED
|
// CU_MEMHOSTALLOC_WRITECOMBINED
|
||||||
{"cudaHostAllocWriteCombined", {"hipHostAllocWriteCombined", "", CONV_DEFINE, API_RUNTIME}}, // 0x04
|
{"cudaHostAllocWriteCombined", {"hipHostMallocWriteCombined", "", CONV_DEFINE, API_RUNTIME}}, // 0x04
|
||||||
// no analogue
|
// no analogue
|
||||||
{"cudaHostRegisterDefault", {"hipHostRegisterDefault", "", CONV_DEFINE, API_RUNTIME}}, // 0x00
|
{"cudaHostRegisterDefault", {"hipHostRegisterDefault", "", CONV_DEFINE, API_RUNTIME}}, // 0x00
|
||||||
// CU_MEMHOSTREGISTER_PORTABLE
|
// CU_MEMHOSTREGISTER_PORTABLE
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user