2018-12-20 18:47:57 +03:00
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
2018-10-23 00:00:10 +03:00
#include "CUDA2HIP.h"
2018-11-19 20:00:05 +03:00
// Map of all CUDA Runtime API functions
2018-10-23 00:00:10 +03:00
const std :: map < llvm :: StringRef , hipCounter > CUDA_RUNTIME_FUNCTION_MAP {
// Error API
2018-12-06 21:52:54 +03:00
{ "cudaGetLastError" , { "hipGetLastError" , "" , CONV_ERROR , API_RUNTIME }},
{ "cudaPeekAtLastError" , { "hipPeekAtLastError" , "" , CONV_ERROR , API_RUNTIME }},
{ "cudaGetErrorName" , { "hipGetErrorName" , "" , CONV_ERROR , API_RUNTIME }},
{ "cudaGetErrorString" , { "hipGetErrorString" , "" , CONV_ERROR , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// memcpy functions
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy" , { "hipMemcpy" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpyToArray" , { "hipMemcpyToArray" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpyToSymbol" , { "hipMemcpyToSymbol" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpyToSymbolAsync" , { "hipMemcpyToSymbolAsync" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
2018-12-06 21:52:54 +03:00
{ "cudaMemcpyAsync" , { "hipMemcpyAsync" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy2D due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy2D" , { "hipMemcpy2D" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy2DAsync due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy2DAsync" , { "hipMemcpy2DAsync" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpy2DToArray" , { "hipMemcpy2DToArray" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpy2DArrayToArray" , { "hipMemcpy2DArrayToArray" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemcpy2DFromArray" , { "hipMemcpy2DFromArray" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemcpy2DFromArrayAsync" , { "hipMemcpy2DFromArrayAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemcpy2DToArrayAsync" , { "hipMemcpy2DToArrayAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy3D due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy3D" , { "hipMemcpy3D" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy3DAsync due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy3DAsync" , { "hipMemcpy3DAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy3DPeer due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy3DPeer" , { "hipMemcpy3DPeer" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpy3DPeerAsync due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpy3DPeerAsync" , { "hipMemcpy3DPeerAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMemcpyAtoA due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMemcpyArrayToArray" , { "hipMemcpyArrayToArray" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemcpyFromArrayAsync" , { "hipMemcpyFromArrayAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemcpyFromSymbol" , { "hipMemcpyFromSymbol" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpyFromSymbolAsync" , { "hipMemcpyFromSymbolAsync" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemAdvise
2018-12-06 21:52:54 +03:00
{ "cudaMemAdvise" , { "hipMemAdvise" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuMemRangeGetAttribute
2018-12-06 21:52:54 +03:00
{ "cudaMemRangeGetAttribute" , { "hipMemRangeGetAttribute" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuMemRangeGetAttributes
2018-12-06 21:52:54 +03:00
{ "cudaMemRangeGetAttributes" , { "hipMemRangeGetAttributes" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// memset
2018-12-06 21:52:54 +03:00
{ "cudaMemset" , { "hipMemset" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemsetAsync" , { "hipMemsetAsync" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemset2D" , { "hipMemset2D" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemset2DAsync" , { "hipMemset2DAsync" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemset3D" , { "hipMemset3D" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMemset3DAsync" , { "hipMemset3DAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Memory management
2018-11-19 20:00:05 +03:00
// cuMemGetInfo
2018-12-06 21:52:54 +03:00
{ "cudaMemGetInfo" , { "hipMemGetInfo" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaArrayGetInfo" , { "hipArrayGetInfo" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMipmappedArrayDestroy due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaFreeMipmappedArray" , { "hipFreeMipmappedArray" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGetMipmappedArrayLevel" , { "hipGetMipmappedArrayLevel" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGetSymbolAddress" , { "hipGetSymbolAddress" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaGetSymbolSize" , { "hipGetSymbolSize" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// TODO: double check cuMemPrefetchAsync
2018-12-06 21:52:54 +03:00
{ "cudaMemPrefetchAsync" , { "hipMemPrefetchAsync" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// malloc
2018-12-06 21:52:54 +03:00
{ "cudaMalloc" , { "hipMalloc" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMallocHost" , { "hipHostMalloc" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMallocArray" , { "hipMallocArray" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMalloc3D" , { "hipMalloc3D" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMalloc3DArray" , { "hipMalloc3DArray" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMallocManaged" , { "hipMallocManaged" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuMipmappedArrayCreate due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaMallocMipmappedArray" , { "hipMallocMipmappedArray" , "" , CONV_MEMORY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaMallocPitch" , { "hipMallocPitch" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-29 20:51:25 +03:00
2018-11-19 20:00:05 +03:00
// cuMemFree
2018-12-06 21:52:54 +03:00
{ "cudaFree" , { "hipFree" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemFreeHost
2018-12-06 21:52:54 +03:00
{ "cudaFreeHost" , { "hipHostFree" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaFreeArray" , { "hipFreeArray" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemHostRegister
2018-12-06 21:52:54 +03:00
{ "cudaHostRegister" , { "hipHostRegister" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemHostUnregister
2018-12-06 21:52:54 +03:00
{ "cudaHostUnregister" , { "hipHostUnregister" , "" , CONV_MEMORY , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemHostAlloc
// NOTE: hipHostAlloc deprecated - use hipHostMalloc instead
2018-12-06 21:52:54 +03:00
{ "cudaHostAlloc" , { "hipHostMalloc" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// make memory functions
2018-12-06 21:52:54 +03:00
{ "make_cudaExtent" , { "make_hipExtent" , "" , CONV_MEMORY , API_RUNTIME }},
{ "make_cudaPitchedPtr" , { "make_hipPitchedPtr" , "" , CONV_MEMORY , API_RUNTIME }},
{ "make_cudaPos" , { "make_hipPos" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Host Register Flags
2018-11-19 20:00:05 +03:00
// cuMemHostGetFlags
2018-12-06 21:52:54 +03:00
{ "cudaHostGetFlags" , { "hipHostGetFlags" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Events
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuEventCreate due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaEventCreate" , { "hipEventCreate" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventCreate
2018-12-06 21:52:54 +03:00
{ "cudaEventCreateWithFlags" , { "hipEventCreateWithFlags" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventDestroy
2018-12-06 21:52:54 +03:00
{ "cudaEventDestroy" , { "hipEventDestroy" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventRecord
2018-12-06 21:52:54 +03:00
{ "cudaEventRecord" , { "hipEventRecord" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventElapsedTime
2018-12-06 21:52:54 +03:00
{ "cudaEventElapsedTime" , { "hipEventElapsedTime" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventSynchronize
2018-12-06 21:52:54 +03:00
{ "cudaEventSynchronize" , { "hipEventSynchronize" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuEventQuery
2018-12-06 21:52:54 +03:00
{ "cudaEventQuery" , { "hipEventQuery" , "" , CONV_EVENT , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// 5.6. External Resource Interoperability
// cuDestroyExternalMemory
2018-12-06 21:52:54 +03:00
{ "cudaDestroyExternalMemory" , { "hipDestroyExternalMemory" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuDestroyExternalSemaphore
2018-12-06 21:52:54 +03:00
{ "cudaDestroyExternalSemaphore" , { "hipDestroyExternalSemaphore" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuExternalMemoryGetMappedBuffer
2018-12-06 21:52:54 +03:00
{ "cudaExternalMemoryGetMappedBuffer" , { "hipExternalMemoryGetMappedBuffer" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuExternalMemoryGetMappedMipmappedArray
2018-12-06 21:52:54 +03:00
{ "cudaExternalMemoryGetMappedMipmappedArray" , { "hipExternalMemoryGetMappedMipmappedArray" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuImportExternalMemory
2018-12-06 21:52:54 +03:00
{ "cudaImportExternalMemory" , { "hipImportExternalMemory" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuImportExternalSemaphore
2018-12-06 21:52:54 +03:00
{ "cudaImportExternalSemaphore" , { "hipImportExternalSemaphore" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuSignalExternalSemaphoresAsync
2018-12-06 21:52:54 +03:00
{ "cudaSignalExternalSemaphoresAsync" , { "hipSignalExternalSemaphoresAsync" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuWaitExternalSemaphoresAsync
2018-12-06 21:52:54 +03:00
{ "cudaWaitExternalSemaphoresAsync" , { "hipWaitExternalSemaphoresAsync" , "" , CONV_EXT_RES , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Streams
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuStreamCreate due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaStreamCreate" , { "hipStreamCreate" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamCreate
2018-12-06 21:52:54 +03:00
{ "cudaStreamCreateWithFlags" , { "hipStreamCreateWithFlags" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamCreateWithPriority
2018-12-06 21:52:54 +03:00
{ "cudaStreamCreateWithPriority" , { "hipStreamCreateWithPriority" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamDestroy
2018-12-06 21:52:54 +03:00
{ "cudaStreamDestroy" , { "hipStreamDestroy" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamWaitEvent
2018-12-06 21:52:54 +03:00
{ "cudaStreamWaitEvent" , { "hipStreamWaitEvent" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamSynchronize
2018-12-06 21:52:54 +03:00
{ "cudaStreamSynchronize" , { "hipStreamSynchronize" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamGetFlags
2018-12-06 21:52:54 +03:00
{ "cudaStreamGetFlags" , { "hipStreamGetFlags" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamQuery
2018-12-06 21:52:54 +03:00
{ "cudaStreamQuery" , { "hipStreamQuery" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamAddCallback
2018-12-06 21:52:54 +03:00
{ "cudaStreamAddCallback" , { "hipStreamAddCallback" , "" , CONV_STREAM , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuStreamAttachMemAsync
2018-12-06 21:52:54 +03:00
{ "cudaStreamAttachMemAsync" , { "hipStreamAttachMemAsync" , "" , CONV_STREAM , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuStreamBeginCapture
2018-12-06 21:52:54 +03:00
{ "cudaStreamBeginCapture" , { "hipStreamBeginCapture" , "" , CONV_STREAM , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuStreamEndCapture
2018-12-06 21:52:54 +03:00
{ "cudaStreamEndCapture" , { "hipStreamEndCapture" , "" , CONV_STREAM , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuStreamIsCapturing
2018-12-06 21:52:54 +03:00
{ "cudaStreamIsCapturing" , { "hipStreamIsCapturing" , "" , CONV_STREAM , API_RUNTIME , HIP_UNSUPPORTED }},
2018-11-19 20:00:05 +03:00
// cuStreamGetPriority
2018-12-06 21:52:54 +03:00
{ "cudaStreamGetPriority" , { "hipStreamGetPriority" , "" , CONV_STREAM , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Other synchronization
2018-12-06 21:52:54 +03:00
{ "cudaDeviceSynchronize" , { "hipDeviceSynchronize" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaDeviceReset" , { "hipDeviceReset" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaSetDevice" , { "hipSetDevice" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaGetDevice" , { "hipGetDevice" , "" , CONV_DEVICE , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuDeviceGetCount
2018-12-06 21:52:54 +03:00
{ "cudaGetDeviceCount" , { "hipGetDeviceCount" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaChooseDevice" , { "hipChooseDevice" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Thread Management
2018-12-06 21:52:54 +03:00
{ "cudaThreadExit" , { "hipDeviceReset" , "" , CONV_THREAD , API_RUNTIME }},
{ "cudaThreadGetCacheConfig" , { "hipDeviceGetCacheConfig" , "" , CONV_THREAD , API_RUNTIME }},
{ "cudaThreadGetLimit" , { "hipThreadGetLimit" , "" , CONV_THREAD , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaThreadSetCacheConfig" , { "hipDeviceSetCacheConfig" , "" , CONV_THREAD , API_RUNTIME }},
{ "cudaThreadSetLimit" , { "hipThreadSetLimit" , "" , CONV_THREAD , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaThreadSynchronize" , { "hipDeviceSynchronize" , "" , CONV_THREAD , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Attributes
2018-12-06 21:52:54 +03:00
{ "cudaDeviceGetAttribute" , { "hipDeviceGetAttribute" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Pointer Attributes
2018-11-19 20:00:05 +03:00
// no analogue
// NOTE: Not equal to cuPointerGetAttributes due to different signatures
2018-12-06 21:52:54 +03:00
{ "cudaPointerGetAttributes" , { "hipPointerGetAttributes" , "" , CONV_ADDRESSING , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuMemHostGetDevicePointer
2018-12-06 21:52:54 +03:00
{ "cudaHostGetDevicePointer" , { "hipHostGetDevicePointer" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Device
2018-12-06 21:52:54 +03:00
{ "cudaGetDeviceProperties" , { "hipGetDeviceProperties" , "" , CONV_DEVICE , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuDeviceGetPCIBusId
2018-12-06 21:52:54 +03:00
{ "cudaDeviceGetPCIBusId" , { "hipDeviceGetPCIBusId" , "" , CONV_DEVICE , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuDeviceGetByPCIBusId
2018-12-06 21:52:54 +03:00
{ "cudaDeviceGetByPCIBusId" , { "hipDeviceGetByPCIBusId" , "" , CONV_DEVICE , API_RUNTIME }},
2018-11-19 20:00:05 +03:00
// cuCtxGetStreamPriorityRange
2018-12-06 21:52:54 +03:00
{ "cudaDeviceGetStreamPriorityRange" , { "hipDeviceGetStreamPriorityRange" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaSetValidDevices" , { "hipSetValidDevices" , "" , CONV_DEVICE , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Device Flags
2018-11-19 20:00:05 +03:00
// cuCtxGetFlags
2018-12-06 21:52:54 +03:00
{ "cudaGetDeviceFlags" , { "hipCtxGetFlags" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaSetDeviceFlags" , { "hipSetDeviceFlags" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Cache config
2018-12-06 21:52:54 +03:00
{ "cudaDeviceSetCacheConfig" , { "hipDeviceSetCacheConfig" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaDeviceGetCacheConfig" , { "hipDeviceGetCacheConfig" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaFuncSetCacheConfig" , { "hipFuncSetCacheConfig" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Execution control functions
2018-12-06 21:52:54 +03:00
{ "cudaFuncGetAttributes" , { "hipFuncGetAttributes" , "" , CONV_EXECUTION , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaFuncSetSharedMemConfig" , { "hipFuncSetSharedMemConfig" , "" , CONV_EXECUTION , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGetParameterBuffer" , { "hipGetParameterBuffer" , "" , CONV_EXECUTION , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaSetDoubleForDevice" , { "hipSetDoubleForDevice" , "" , CONV_EXECUTION , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaSetDoubleForHost" , { "hipSetDoubleForHost" , "" , CONV_EXECUTION , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Execution Control [deprecated since 7.0]
2018-12-06 21:52:54 +03:00
{ "cudaConfigureCall" , { "hipConfigureCall" , "" , CONV_EXECUTION , API_RUNTIME }},
{ "cudaLaunch" , { "hipLaunchByPtr" , "" , CONV_EXECUTION , API_RUNTIME }},
{ "cudaSetupArgument" , { "hipSetupArgument" , "" , CONV_EXECUTION , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Version Management
2018-12-06 21:52:54 +03:00
{ "cudaDriverGetVersion" , { "hipDriverGetVersion" , "" , CONV_VERSION , API_RUNTIME }},
{ "cudaRuntimeGetVersion" , { "hipRuntimeGetVersion" , "" , CONV_VERSION , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Occupancy
2018-12-06 21:52:54 +03:00
{ "cudaOccupancyMaxPotentialBlockSize" , { "hipOccupancyMaxPotentialBlockSize" , "" , CONV_OCCUPANCY , API_RUNTIME }},
{ "cudaOccupancyMaxPotentialBlockSizeWithFlags" , { "hipOccupancyMaxPotentialBlockSizeWithFlags" , "" , CONV_OCCUPANCY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaOccupancyMaxActiveBlocksPerMultiprocessor" , { "hipOccupancyMaxActiveBlocksPerMultiprocessor" , "" , CONV_OCCUPANCY , API_RUNTIME }},
{ "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" , { "hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" , "" , CONV_OCCUPANCY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaOccupancyMaxPotentialBlockSizeVariableSMem" , { "hipOccupancyMaxPotentialBlockSizeVariableSMem" , "" , CONV_OCCUPANCY , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags" , { "hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags" , "" , CONV_OCCUPANCY , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Peer2Peer
2018-12-06 21:52:54 +03:00
{ "cudaDeviceCanAccessPeer" , { "hipDeviceCanAccessPeer" , "" , CONV_PEER , API_RUNTIME }},
{ "cudaDeviceDisablePeerAccess" , { "hipDeviceDisablePeerAccess" , "" , CONV_PEER , API_RUNTIME }},
{ "cudaDeviceEnablePeerAccess" , { "hipDeviceEnablePeerAccess" , "" , CONV_PEER , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
2018-12-06 21:52:54 +03:00
{ "cudaMemcpyPeerAsync" , { "hipMemcpyPeerAsync" , "" , CONV_MEMORY , API_RUNTIME }},
{ "cudaMemcpyPeer" , { "hipMemcpyPeer" , "" , CONV_MEMORY , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Shared memory
2018-12-06 21:52:54 +03:00
{ "cudaDeviceSetSharedMemConfig" , { "hipDeviceSetSharedMemConfig" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaDeviceGetSharedMemConfig" , { "hipDeviceGetSharedMemConfig" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// translate deprecated
2018-12-06 21:52:54 +03:00
// {"cudaThreadGetSharedMemConfig", {"hipDeviceGetSharedMemConfig", "", CONV_DEVICE, API_RUNTIME}},
// {"cudaThreadSetSharedMemConfig", {"hipDeviceSetSharedMemConfig", "", CONV_DEVICE, API_RUNTIME}},
2018-10-23 00:00:10 +03:00
2018-11-19 20:00:05 +03:00
// cuCtxGetLimit
2018-12-06 21:52:54 +03:00
{ "cudaDeviceGetLimit" , { "hipDeviceGetLimit" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Profiler
2018-12-06 21:52:54 +03:00
{ "cudaProfilerInitialize" , { "hipProfilerInitialize" , "" , CONV_PROFILER , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuProfilerInitialize)
{ "cudaProfilerStart" , { "hipProfilerStart" , "" , CONV_PROFILER , API_RUNTIME }}, // API_Driver ANALOGUE (cuProfilerStart)
{ "cudaProfilerStop" , { "hipProfilerStop" , "" , CONV_PROFILER , API_RUNTIME }}, // API_Driver ANALOGUE (cuProfilerStop)
2018-10-23 00:00:10 +03:00
2018-12-06 21:52:54 +03:00
{ "cudaBindTexture" , { "hipBindTexture" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaUnbindTexture" , { "hipUnbindTexture" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaBindTexture2D" , { "hipBindTexture2D" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaBindTextureToArray" , { "hipBindTextureToArray" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaBindTextureToMipmappedArray" , { "hipBindTextureToMipmappedArray" , "" , CONV_TEXTURE , API_RUNTIME }}, // Unsupported yet on NVCC path
{ "cudaGetTextureAlignmentOffset" , { "hipGetTextureAlignmentOffset" , "" , CONV_TEXTURE , API_RUNTIME }}, // Unsupported yet on NVCC path
{ "cudaGetTextureReference" , { "hipGetTextureReference" , "" , CONV_TEXTURE , API_RUNTIME }}, // Unsupported yet on NVCC path
2018-10-23 00:00:10 +03:00
2018-12-06 21:52:54 +03:00
{ "cudaCreateChannelDesc" , { "hipCreateChannelDesc" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaGetChannelDesc" , { "hipGetChannelDesc" , "" , CONV_TEXTURE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Texture Object Management
2018-12-06 21:52:54 +03:00
{ "cudaAddressModeWrap" , { "hipAddressModeWrap" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaAddressModeClamp" , { "hipAddressModeClamp" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaAddressModeMirror" , { "hipAddressModeMirror" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaAddressModeBorder" , { "hipAddressModeBorder" , "" , CONV_TEXTURE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// functions
2018-12-06 21:52:54 +03:00
{ "cudaCreateTextureObject" , { "hipCreateTextureObject" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaDestroyTextureObject" , { "hipDestroyTextureObject" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaGetTextureObjectResourceDesc" , { "hipGetTextureObjectResourceDesc" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaGetTextureObjectResourceViewDesc" , { "hipGetTextureObjectResourceViewDesc" , "" , CONV_TEXTURE , API_RUNTIME }},
{ "cudaGetTextureObjectTextureDesc" , { "hipGetTextureObjectTextureDesc" , "" , CONV_TEXTURE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// Surface Reference Management
2018-12-06 21:52:54 +03:00
{ "cudaBindSurfaceToArray" , { "hipBindSurfaceToArray" , "" , CONV_SURFACE , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGetSurfaceReference" , { "hipGetSurfaceReference" , "" , CONV_SURFACE , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Surface Object Management
2018-12-06 21:52:54 +03:00
{ "cudaCreateSurfaceObject" , { "hipCreateSurfaceObject" , "" , CONV_SURFACE , API_RUNTIME }},
{ "cudaDestroySurfaceObject" , { "hipDestroySurfaceObject" , "" , CONV_SURFACE , API_RUNTIME }},
{ "cudaGetSurfaceObjectResourceDesc" , { "hipGetSurfaceObjectResourceDesc" , "" , CONV_SURFACE , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Inter-Process Communications (IPC)
2018-12-06 21:52:54 +03:00
{ "cudaIpcCloseMemHandle" , { "hipIpcCloseMemHandle" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaIpcGetEventHandle" , { "hipIpcGetEventHandle" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaIpcGetMemHandle" , { "hipIpcGetMemHandle" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaIpcOpenEventHandle" , { "hipIpcOpenEventHandle" , "" , CONV_DEVICE , API_RUNTIME }},
{ "cudaIpcOpenMemHandle" , { "hipIpcOpenMemHandle" , "" , CONV_DEVICE , API_RUNTIME }},
2018-10-23 00:00:10 +03:00
// OpenGL Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaGLGetDevices" , { "hipGLGetDevices" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGraphicsGLRegisterBuffer" , { "hipGraphicsGLRegisterBuffer" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaGraphicsGLRegisterImage" , { "hipGraphicsGLRegisterImage" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }},
{ "cudaWGLGetDevice" , { "hipWGLGetDevice" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }},
2018-10-23 00:00:10 +03:00
// Graphics Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaGraphicsMapResources" , { "hipGraphicsMapResources" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsMapResources)
{ "cudaGraphicsResourceGetMappedMipmappedArray" , { "hipGraphicsResourceGetMappedMipmappedArray" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsResourceGetMappedMipmappedArray)
{ "cudaGraphicsResourceGetMappedPointer" , { "hipGraphicsResourceGetMappedPointer" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsResourceGetMappedPointer)
{ "cudaGraphicsResourceSetMapFlags" , { "hipGraphicsResourceSetMapFlags" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsResourceSetMapFlags)
{ "cudaGraphicsSubResourceGetMappedArray" , { "hipGraphicsSubResourceGetMappedArray" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsSubResourceGetMappedArray)
{ "cudaGraphicsUnmapResources" , { "hipGraphicsUnmapResources" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsUnmapResources)
{ "cudaGraphicsUnregisterResource" , { "hipGraphicsUnregisterResource" , "" , CONV_GRAPHICS , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsUnregisterResource)
{ "cudaGLGetDevices" , { "hipGLGetDevices" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLGetDevices)
{ "cudaGraphicsGLRegisterBuffer" , { "hipGraphicsGLRegisterBuffer" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsGLRegisterBuffer)
{ "cudaGraphicsGLRegisterImage" , { "hipGraphicsGLRegisterImage" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsGLRegisterImage)
{ "cudaWGLGetDevice" , { "hipWGLGetDevice" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuWGLGetDevice)
2018-10-23 00:00:10 +03:00
// OpenGL Interoperability [DEPRECATED]
2018-12-06 21:52:54 +03:00
{ "cudaGLMapBufferObject" , { "hipGLMapBufferObject__" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // Not equal to cuGLMapBufferObject due to different signatures
{ "cudaGLMapBufferObjectAsync" , { "hipGLMapBufferObjectAsync__" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // Not equal to cuGLMapBufferObjectAsync due to different signatures
{ "cudaGLRegisterBufferObject" , { "hipGLRegisterBufferObject" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLRegisterBufferObject)
{ "cudaGLSetBufferObjectMapFlags" , { "hipGLSetBufferObjectMapFlags" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLSetBufferObjectMapFlags)
{ "cudaGLSetGLDevice" , { "hipGLSetGLDevice" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // no API_Driver ANALOGUE
{ "cudaGLUnmapBufferObject" , { "hipGLUnmapBufferObject" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLUnmapBufferObject)
{ "cudaGLUnmapBufferObjectAsync" , { "hipGLUnmapBufferObjectAsync" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLUnmapBufferObjectAsync)
{ "cudaGLUnregisterBufferObject" , { "hipGLUnregisterBufferObject" , "" , CONV_OPENGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGLUnregisterBufferObject)
2018-10-23 00:00:10 +03:00
// Direct3D 9 Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaD3D9GetDevice" , { "hipD3D9GetDevice" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9GetDevice)
{ "cudaD3D9GetDevices" , { "hipD3D9GetDevices" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9GetDevices)
{ "cudaD3D9GetDirect3DDevice" , { "hipD3D9GetDirect3DDevice" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9GetDirect3DDevice)
{ "cudaD3D9SetDirect3DDevice" , { "hipD3D9SetDirect3DDevice" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // no API_Driver ANALOGUE
{ "cudaGraphicsD3D9RegisterResource" , { "hipGraphicsD3D9RegisterResource" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsD3D9RegisterResource)
{ "cudaD3D9MapResources" , { "hipD3D9MapResources" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9MapResources)
{ "cudaD3D9RegisterResource" , { "hipD3D9RegisterResource" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9RegisterResource)
{ "cudaD3D9ResourceGetMappedArray" , { "hipD3D9ResourceGetMappedArray" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9ResourceGetMappedArray)
{ "cudaD3D9ResourceGetMappedPitch" , { "hipD3D9ResourceGetMappedPitch" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cudaD3D9ResourceGetMappedPitch)
{ "cudaD3D9ResourceGetMappedPointer" , { "hipD3D9ResourceGetMappedPointer" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9ResourceGetMappedPointer)
{ "cudaD3D9ResourceGetMappedSize" , { "hipD3D9ResourceGetMappedSize" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9ResourceGetMappedSize)
{ "cudaD3D9ResourceGetSurfaceDimensions" , { "hipD3D9ResourceGetSurfaceDimensions" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9ResourceGetSurfaceDimensions)
{ "cudaD3D9ResourceSetMapFlags" , { "hipD3D9ResourceSetMapFlags" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9ResourceSetMapFlags)
{ "cudaD3D9UnmapResources" , { "hipD3D9UnmapResources" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9UnmapResources)
{ "cudaD3D9UnregisterResource" , { "hipD3D9UnregisterResource" , "" , CONV_D3D9 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D9UnregisterResource)
2018-10-23 00:00:10 +03:00
// Direct3D 10 Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaD3D10GetDevice" , { "hipD3D10GetDevice" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10GetDevice)
{ "cudaD3D10GetDevices" , { "hipD3D10GetDevices" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10GetDevices)
{ "cudaGraphicsD3D10RegisterResource" , { "hipGraphicsD3D10RegisterResource" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsD3D10RegisterResource)
2018-10-23 00:00:10 +03:00
// Direct3D 10 Interoperability [DEPRECATED]
2018-12-06 21:52:54 +03:00
{ "cudaD3D10GetDirect3DDevice" , { "hipD3D10GetDirect3DDevice" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cudaD3D10GetDirect3DDevice)
{ "cudaD3D10MapResources" , { "hipD3D10MapResources" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10MapResources)
{ "cudaD3D10RegisterResource" , { "hipD3D10RegisterResource" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10RegisterResource)
{ "cudaD3D10ResourceGetMappedArray" , { "hipD3D10ResourceGetMappedArray" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10ResourceGetMappedArray)
{ "cudaD3D10ResourceGetMappedPitch" , { "hipD3D10ResourceGetMappedPitch" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cudaD3D10ResourceGetMappedPitch)
{ "cudaD3D10ResourceGetMappedPointer" , { "hipD3D10ResourceGetMappedPointer" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10ResourceGetMappedPointer)
{ "cudaD3D10ResourceGetMappedSize" , { "hipD3D10ResourceGetMappedSize" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10ResourceGetMappedSize)
{ "cudaD3D10ResourceGetSurfaceDimensions" , { "hipD3D10ResourceGetSurfaceDimensions" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10ResourceGetSurfaceDimensions)
{ "cudaD3D10ResourceSetMapFlags" , { "hipD3D10ResourceSetMapFlags" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10ResourceSetMapFlags)
{ "cudaD3D10SetDirect3DDevice" , { "hipD3D10SetDirect3DDevice" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // no API_Driver ANALOGUE
{ "cudaD3D10UnmapResources" , { "hipD3D10UnmapResources" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10UnmapResources)
{ "cudaD3D10UnregisterResource" , { "hipD3D10UnregisterResource" , "" , CONV_D3D10 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D10UnregisterResource)
2018-10-23 00:00:10 +03:00
// Direct3D 11 Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaD3D11GetDevice" , { "hipD3D11GetDevice" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D11GetDevice)
{ "cudaD3D11GetDevices" , { "hipD3D11GetDevices" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D11GetDevices)
{ "cudaGraphicsD3D11RegisterResource" , { "hipGraphicsD3D11RegisterResource" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsD3D11RegisterResource)
2018-10-23 00:00:10 +03:00
// Direct3D 11 Interoperability [DEPRECATED]
2018-12-06 21:52:54 +03:00
{ "cudaD3D11GetDevice" , { "hipD3D11GetDevice" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D11GetDevice)
{ "cudaD3D11GetDevices" , { "hipD3D11GetDevices" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuD3D11GetDevices)
{ "cudaGraphicsD3D11RegisterResource" , { "hipGraphicsD3D11RegisterResource" , "" , CONV_D3D11 , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsD3D11RegisterResource)
2018-10-23 00:00:10 +03:00
// VDPAU Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaGraphicsVDPAURegisterOutputSurface" , { "hipGraphicsVDPAURegisterOutputSurface" , "" , CONV_VDPAU , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsVDPAURegisterOutputSurface)
{ "cudaGraphicsVDPAURegisterVideoSurface" , { "hipGraphicsVDPAURegisterVideoSurface" , "" , CONV_VDPAU , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsVDPAURegisterVideoSurface)
{ "cudaVDPAUGetDevice" , { "hipVDPAUGetDevice" , "" , CONV_VDPAU , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuVDPAUGetDevice)
{ "cudaVDPAUSetVDPAUDevice" , { "hipVDPAUSetDevice" , "" , CONV_VDPAU , API_RUNTIME , HIP_UNSUPPORTED }}, // no API_Driver ANALOGUE
2018-10-23 00:00:10 +03:00
// EGL Interoperability
2018-12-06 21:52:54 +03:00
{ "cudaEGLStreamConsumerAcquireFrame" , { "hipEGLStreamConsumerAcquireFrame" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamConsumerAcquireFrame)
{ "cudaEGLStreamConsumerConnect" , { "hipEGLStreamConsumerConnect" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamConsumerConnect)
{ "cudaEGLStreamConsumerConnectWithFlags" , { "hipEGLStreamConsumerConnectWithFlags" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamConsumerConnectWithFlags)
{ "cudaEGLStreamConsumerReleaseFrame" , { "hipEGLStreamConsumerReleaseFrame" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamConsumerReleaseFrame)
{ "cudaEGLStreamProducerConnect" , { "hipEGLStreamProducerConnect" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamProducerConnect)
{ "cudaEGLStreamProducerDisconnect" , { "hipEGLStreamProducerDisconnect" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamProducerDisconnect)
{ "cudaEGLStreamProducerPresentFrame" , { "hipEGLStreamProducerPresentFrame" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamProducerPresentFrame)
{ "cudaEGLStreamProducerReturnFrame" , { "hipEGLStreamProducerReturnFrame" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuEGLStreamProducerReturnFrame)
{ "cudaGraphicsEGLRegisterImage" , { "hipGraphicsEGLRegisterImage" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsEGLRegisterImage)
{ "cudaGraphicsResourceGetMappedEglFrame" , { "hipGraphicsResourceGetMappedEglFrame" , "" , CONV_EGL , API_RUNTIME , HIP_UNSUPPORTED }}, // API_Driver ANALOGUE (cuGraphicsResourceGetMappedEglFrame)
2018-10-23 00:00:10 +03:00
};