From 14102880b4f545061abb1cf00a2e17fb96406ec5 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Mon, 30 Sep 2019 16:53:19 +0300 Subject: [PATCH 1/9] [HIPIFY][perl] Generate simpleSubstitutions function + Update hipify-perl accordingly [ROCm/hip commit: 0f19300383558cfb1faaa43b2cea8a28e4845909] --- projects/hip/bin/hipify-perl | 2977 +++++++++-------- .../hip/hipify-clang/src/CUDA2HIP_Perl.cpp | 53 +- 2 files changed, 1518 insertions(+), 1512 deletions(-) diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index ef77fe0ea9..080a368d07 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -109,6 +109,1491 @@ sub clearStats { } }; +sub simpleSubstitutions { + $ft{'error'} += s/\bcudaGetErrorName\b/hipGetErrorName/g; + $ft{'error'} += s/\bcudaGetErrorString\b/hipGetErrorString/g; + $ft{'error'} += s/\bcudaGetLastError\b/hipGetLastError/g; + $ft{'error'} += s/\bcudaPeekAtLastError\b/hipPeekAtLastError/g; + $ft{'init'} += s/\bcuInit\b/hipInit/g; + $ft{'version'} += s/\bcuDriverGetVersion\b/hipDriverGetVersion/g; + $ft{'version'} += s/\bcudaDriverGetVersion\b/hipDriverGetVersion/g; + $ft{'version'} += s/\bcudaRuntimeGetVersion\b/hipRuntimeGetVersion/g; + $ft{'device'} += s/\bcuDeviceComputeCapability\b/hipDeviceComputeCapability/g; + $ft{'device'} += s/\bcuDeviceGet\b/hipGetDevice/g; + $ft{'device'} += s/\bcuDeviceGetAttribute\b/hipDeviceGetAttribute/g; + $ft{'device'} += s/\bcuDeviceGetCount\b/hipGetDeviceCount/g; + $ft{'device'} += s/\bcuDeviceGetName\b/hipDeviceGetName/g; + $ft{'device'} += s/\bcuDeviceTotalMem\b/hipDeviceTotalMem/g; + $ft{'device'} += s/\bcuDeviceTotalMem_v2\b/hipDeviceTotalMem/g; + $ft{'device'} += s/\bcudaChooseDevice\b/hipChooseDevice/g; + $ft{'device'} += s/\bcudaDeviceGetAttribute\b/hipDeviceGetAttribute/g; + $ft{'device'} += s/\bcudaDeviceGetByPCIBusId\b/hipDeviceGetByPCIBusId/g; + $ft{'device'} += s/\bcudaDeviceGetCacheConfig\b/hipDeviceGetCacheConfig/g; + $ft{'device'} += s/\bcudaDeviceGetLimit\b/hipDeviceGetLimit/g; + $ft{'device'} += s/\bcudaDeviceGetPCIBusId\b/hipDeviceGetPCIBusId/g; + $ft{'device'} += s/\bcudaDeviceGetSharedMemConfig\b/hipDeviceGetSharedMemConfig/g; + $ft{'device'} += s/\bcudaDeviceGetStreamPriorityRange\b/hipDeviceGetStreamPriorityRange/g; + $ft{'device'} += s/\bcudaDeviceReset\b/hipDeviceReset/g; + $ft{'device'} += s/\bcudaDeviceSetCacheConfig\b/hipDeviceSetCacheConfig/g; + $ft{'device'} += s/\bcudaDeviceSetLimit\b/hipDeviceSetLimit/g; + $ft{'device'} += s/\bcudaDeviceSetSharedMemConfig\b/hipDeviceSetSharedMemConfig/g; + $ft{'device'} += s/\bcudaDeviceSynchronize\b/hipDeviceSynchronize/g; + $ft{'device'} += s/\bcudaFuncSetCacheConfig\b/hipFuncSetCacheConfig/g; + $ft{'device'} += s/\bcudaGetDevice\b/hipGetDevice/g; + $ft{'device'} += s/\bcudaGetDeviceCount\b/hipGetDeviceCount/g; + $ft{'device'} += s/\bcudaGetDeviceFlags\b/hipCtxGetFlags/g; + $ft{'device'} += s/\bcudaGetDeviceProperties\b/hipGetDeviceProperties/g; + $ft{'device'} += s/\bcudaIpcCloseMemHandle\b/hipIpcCloseMemHandle/g; + $ft{'device'} += s/\bcudaIpcGetEventHandle\b/hipIpcGetEventHandle/g; + $ft{'device'} += s/\bcudaIpcGetMemHandle\b/hipIpcGetMemHandle/g; + $ft{'device'} += s/\bcudaIpcOpenEventHandle\b/hipIpcOpenEventHandle/g; + $ft{'device'} += s/\bcudaIpcOpenMemHandle\b/hipIpcOpenMemHandle/g; + $ft{'device'} += s/\bcudaSetDevice\b/hipSetDevice/g; + $ft{'device'} += s/\bcudaSetDeviceFlags\b/hipSetDeviceFlags/g; + $ft{'context'} += s/\bcuCtxCreate\b/hipCtxCreate/g; + $ft{'context'} += s/\bcuCtxCreate_v2\b/hipCtxCreate/g; + $ft{'context'} += s/\bcuCtxDestroy\b/hipCtxDestroy/g; + $ft{'context'} += s/\bcuCtxDestroy_v2\b/hipCtxDestroy/g; + $ft{'context'} += s/\bcuCtxGetApiVersion\b/hipCtxGetApiVersion/g; + $ft{'context'} += s/\bcuCtxGetCacheConfig\b/hipCtxGetCacheConfig/g; + $ft{'context'} += s/\bcuCtxGetCurrent\b/hipCtxGetCurrent/g; + $ft{'context'} += s/\bcuCtxGetDevice\b/hipCtxGetDevice/g; + $ft{'context'} += s/\bcuCtxGetFlags\b/hipCtxGetFlags/g; + $ft{'context'} += s/\bcuCtxGetLimit\b/hipDeviceGetLimit/g; + $ft{'context'} += s/\bcuCtxGetSharedMemConfig\b/hipCtxGetSharedMemConfig/g; + $ft{'context'} += s/\bcuCtxGetStreamPriorityRange\b/hipDeviceGetStreamPriorityRange/g; + $ft{'context'} += s/\bcuCtxPopCurrent\b/hipCtxPopCurrent/g; + $ft{'context'} += s/\bcuCtxPopCurrent_v2\b/hipCtxPopCurrent/g; + $ft{'context'} += s/\bcuCtxPushCurrent\b/hipCtxPushCurrent/g; + $ft{'context'} += s/\bcuCtxPushCurrent_v2\b/hipCtxPushCurrent/g; + $ft{'context'} += s/\bcuCtxSetCacheConfig\b/hipCtxSetCacheConfig/g; + $ft{'context'} += s/\bcuCtxSetCurrent\b/hipCtxSetCurrent/g; + $ft{'context'} += s/\bcuCtxSetLimit\b/hipDeviceSetLimit/g; + $ft{'context'} += s/\bcuCtxSetSharedMemConfig\b/hipCtxSetSharedMemConfig/g; + $ft{'context'} += s/\bcuCtxSynchronize\b/hipCtxSynchronize/g; + $ft{'context'} += s/\bcuDevicePrimaryCtxGetState\b/hipDevicePrimaryCtxGetState/g; + $ft{'context'} += s/\bcuDevicePrimaryCtxRelease\b/hipDevicePrimaryCtxRelease/g; + $ft{'context'} += s/\bcuDevicePrimaryCtxReset\b/hipDevicePrimaryCtxReset/g; + $ft{'context'} += s/\bcuDevicePrimaryCtxRetain\b/hipDevicePrimaryCtxRetain/g; + $ft{'context'} += s/\bcuDevicePrimaryCtxSetFlags\b/hipDevicePrimaryCtxSetFlags/g; + $ft{'module'} += s/\bcuModuleGetFunction\b/hipModuleGetFunction/g; + $ft{'module'} += s/\bcuModuleGetGlobal\b/hipModuleGetGlobal/g; + $ft{'module'} += s/\bcuModuleGetGlobal_v2\b/hipModuleGetGlobal/g; + $ft{'module'} += s/\bcuModuleGetTexRef\b/hipModuleGetTexRef/g; + $ft{'module'} += s/\bcuModuleLoad\b/hipModuleLoad/g; + $ft{'module'} += s/\bcuModuleLoadData\b/hipModuleLoadData/g; + $ft{'module'} += s/\bcuModuleLoadDataEx\b/hipModuleLoadDataEx/g; + $ft{'module'} += s/\bcuModuleUnload\b/hipModuleUnload/g; + $ft{'memory'} += s/\bcuArray3DCreate\b/hipArray3DCreate/g; + $ft{'memory'} += s/\bcuArray3DCreate_v2\b/hipArray3DCreate/g; + $ft{'memory'} += s/\bcuArrayCreate\b/hipArrayCreate/g; + $ft{'memory'} += s/\bcuArrayCreate_v2\b/hipArrayCreate/g; + $ft{'memory'} += s/\bcuDeviceGetByPCIBusId\b/hipDeviceGetByPCIBusId/g; + $ft{'memory'} += s/\bcuDeviceGetPCIBusId\b/hipDeviceGetPCIBusId/g; + $ft{'memory'} += s/\bcuIpcCloseMemHandle\b/hipIpcCloseMemHandle/g; + $ft{'memory'} += s/\bcuIpcGetMemHandle\b/hipIpcGetMemHandle/g; + $ft{'memory'} += s/\bcuIpcOpenMemHandle\b/hipIpcOpenMemHandle/g; + $ft{'memory'} += s/\bcuMemAlloc\b/hipMalloc/g; + $ft{'memory'} += s/\bcuMemAllocManaged\b/hipMemAllocManaged/g; + $ft{'memory'} += s/\bcuMemAlloc_v2\b/hipMalloc/g; + $ft{'memory'} += s/\bcuMemFree\b/hipFree/g; + $ft{'memory'} += s/\bcuMemFreeHost\b/hipHostFree/g; + $ft{'memory'} += s/\bcuMemFree_v2\b/hipFree/g; + $ft{'memory'} += s/\bcuMemGetAddressRange\b/hipMemGetAddressRange/g; + $ft{'memory'} += s/\bcuMemGetAddressRange_v2\b/hipMemGetAddressRange/g; + $ft{'memory'} += s/\bcuMemGetInfo\b/hipMemGetInfo/g; + $ft{'memory'} += s/\bcuMemGetInfo_v2\b/hipMemGetInfo/g; + $ft{'memory'} += s/\bcuMemHostAlloc\b/hipHostMalloc/g; + $ft{'memory'} += s/\bcuMemHostGetDevicePointer\b/hipHostGetDevicePointer/g; + $ft{'memory'} += s/\bcuMemHostGetDevicePointer_v2\b/hipHostGetDevicePointer/g; + $ft{'memory'} += s/\bcuMemHostGetFlags\b/hipMemHostGetFlags/g; + $ft{'memory'} += s/\bcuMemHostRegister\b/hipHostRegister/g; + $ft{'memory'} += s/\bcuMemHostRegister_v2\b/hipHostRegister/g; + $ft{'memory'} += s/\bcuMemHostUnregister\b/hipHostUnregister/g; + $ft{'memory'} += s/\bcuMemcpy2D\b/hipMemcpyParam2D/g; + $ft{'memory'} += s/\bcuMemcpy2DAsync\b/hipMemcpyParam2DAsync/g; + $ft{'memory'} += s/\bcuMemcpy2DAsync_v2\b/hipMemcpyParam2DAsync/g; + $ft{'memory'} += s/\bcuMemcpy2D_v2\b/hipMemcpyParam2D/g; + $ft{'memory'} += s/\bcuMemcpyAtoH\b/hipMemcpyAtoH/g; + $ft{'memory'} += s/\bcuMemcpyAtoH_v2\b/hipMemcpyAtoH/g; + $ft{'memory'} += s/\bcuMemcpyDtoD\b/hipMemcpyDtoD/g; + $ft{'memory'} += s/\bcuMemcpyDtoDAsync\b/hipMemcpyDtoDAsync/g; + $ft{'memory'} += s/\bcuMemcpyDtoDAsync_v2\b/hipMemcpyDtoDAsync/g; + $ft{'memory'} += s/\bcuMemcpyDtoD_v2\b/hipMemcpyDtoD/g; + $ft{'memory'} += s/\bcuMemcpyDtoH\b/hipMemcpyDtoH/g; + $ft{'memory'} += s/\bcuMemcpyDtoHAsync\b/hipMemcpyDtoHAsync/g; + $ft{'memory'} += s/\bcuMemcpyDtoHAsync_v2\b/hipMemcpyDtoHAsync/g; + $ft{'memory'} += s/\bcuMemcpyDtoH_v2\b/hipMemcpyDtoH/g; + $ft{'memory'} += s/\bcuMemcpyHtoA\b/hipMemcpyHtoA/g; + $ft{'memory'} += s/\bcuMemcpyHtoA_v2\b/hipMemcpyHtoA/g; + $ft{'memory'} += s/\bcuMemcpyHtoD\b/hipMemcpyHtoD/g; + $ft{'memory'} += s/\bcuMemcpyHtoDAsync\b/hipMemcpyHtoDAsync/g; + $ft{'memory'} += s/\bcuMemcpyHtoDAsync_v2\b/hipMemcpyHtoDAsync/g; + $ft{'memory'} += s/\bcuMemcpyHtoD_v2\b/hipMemcpyHtoD/g; + $ft{'memory'} += s/\bcuMemsetD32\b/hipMemsetD32/g; + $ft{'memory'} += s/\bcuMemsetD32Async\b/hipMemsetD32Async/g; + $ft{'memory'} += s/\bcuMemsetD32_v2\b/hipMemsetD32/g; + $ft{'memory'} += s/\bcuMemsetD8\b/hipMemsetD8/g; + $ft{'memory'} += s/\bcuMemsetD8_v2\b/hipMemsetD8/g; + $ft{'memory'} += s/\bcudaFree\b/hipFree/g; + $ft{'memory'} += s/\bcudaFreeArray\b/hipFreeArray/g; + $ft{'memory'} += s/\bcudaFreeHost\b/hipHostFree/g; + $ft{'memory'} += s/\bcudaGetSymbolAddress\b/hipGetSymbolAddress/g; + $ft{'memory'} += s/\bcudaGetSymbolSize\b/hipGetSymbolSize/g; + $ft{'memory'} += s/\bcudaHostAlloc\b/hipHostMalloc/g; + $ft{'memory'} += s/\bcudaHostGetDevicePointer\b/hipHostGetDevicePointer/g; + $ft{'memory'} += s/\bcudaHostGetFlags\b/hipHostGetFlags/g; + $ft{'memory'} += s/\bcudaHostRegister\b/hipHostRegister/g; + $ft{'memory'} += s/\bcudaHostUnregister\b/hipHostUnregister/g; + $ft{'memory'} += s/\bcudaMalloc\b/hipMalloc/g; + $ft{'memory'} += s/\bcudaMalloc3D\b/hipMalloc3D/g; + $ft{'memory'} += s/\bcudaMalloc3DArray\b/hipMalloc3DArray/g; + $ft{'memory'} += s/\bcudaMallocArray\b/hipMallocArray/g; + $ft{'memory'} += s/\bcudaMallocHost\b/hipHostMalloc/g; + $ft{'memory'} += s/\bcudaMallocManaged\b/hipMallocManaged/g; + $ft{'memory'} += s/\bcudaMallocPitch\b/hipMallocPitch/g; + $ft{'memory'} += s/\bcudaMemGetInfo\b/hipMemGetInfo/g; + $ft{'memory'} += s/\bcudaMemcpy\b/hipMemcpy/g; + $ft{'memory'} += s/\bcudaMemcpy2D\b/hipMemcpy2D/g; + $ft{'memory'} += s/\bcudaMemcpy2DAsync\b/hipMemcpy2DAsync/g; + $ft{'memory'} += s/\bcudaMemcpy2DToArray\b/hipMemcpy2DToArray/g; + $ft{'memory'} += s/\bcudaMemcpy3D\b/hipMemcpy3D/g; + $ft{'memory'} += s/\bcudaMemcpyAsync\b/hipMemcpyAsync/g; + $ft{'memory'} += s/\bcudaMemcpyFromArray\b/hipMemcpyFromArray/g; + $ft{'memory'} += s/\bcudaMemcpyFromSymbol\b/hipMemcpyFromSymbol/g; + $ft{'memory'} += s/\bcudaMemcpyFromSymbolAsync\b/hipMemcpyFromSymbolAsync/g; + $ft{'memory'} += s/\bcudaMemcpyPeer\b/hipMemcpyPeer/g; + $ft{'memory'} += s/\bcudaMemcpyPeerAsync\b/hipMemcpyPeerAsync/g; + $ft{'memory'} += s/\bcudaMemcpyToArray\b/hipMemcpyToArray/g; + $ft{'memory'} += s/\bcudaMemcpyToArrayAsync\b/hipMemcpyToArrayAsync/g; + $ft{'memory'} += s/\bcudaMemcpyToSymbol\b/hipMemcpyToSymbol/g; + $ft{'memory'} += s/\bcudaMemcpyToSymbolAsync\b/hipMemcpyToSymbolAsync/g; + $ft{'memory'} += s/\bcudaMemset\b/hipMemset/g; + $ft{'memory'} += s/\bcudaMemset2D\b/hipMemset2D/g; + $ft{'memory'} += s/\bcudaMemset2DAsync\b/hipMemset2DAsync/g; + $ft{'memory'} += s/\bcudaMemsetAsync\b/hipMemsetAsync/g; + $ft{'memory'} += s/\bmake_cudaExtent\b/make_hipExtent/g; + $ft{'memory'} += s/\bmake_cudaPitchedPtr\b/make_hipPitchedPtr/g; + $ft{'memory'} += s/\bmake_cudaPos\b/make_hipPos/g; + $ft{'addressing'} += s/\bcudaPointerGetAttributes\b/hipPointerGetAttributes/g; + $ft{'stream'} += s/\bcuStreamAddCallback\b/hipStreamAddCallback/g; + $ft{'stream'} += s/\bcuStreamCreate\b/hipStreamCreateWithFlags/g; + $ft{'stream'} += s/\bcuStreamCreateWithPriority\b/hipStreamCreateWithPriority/g; + $ft{'stream'} += s/\bcuStreamDestroy\b/hipStreamDestroy/g; + $ft{'stream'} += s/\bcuStreamDestroy_v2\b/hipStreamDestroy/g; + $ft{'stream'} += s/\bcuStreamGetFlags\b/hipStreamGetFlags/g; + $ft{'stream'} += s/\bcuStreamGetPriority\b/hipStreamGetPriority/g; + $ft{'stream'} += s/\bcuStreamQuery\b/hipStreamQuery/g; + $ft{'stream'} += s/\bcuStreamSynchronize\b/hipStreamSynchronize/g; + $ft{'stream'} += s/\bcuStreamWaitEvent\b/hipStreamWaitEvent/g; + $ft{'stream'} += s/\bcudaStreamAddCallback\b/hipStreamAddCallback/g; + $ft{'stream'} += s/\bcudaStreamCreate\b/hipStreamCreate/g; + $ft{'stream'} += s/\bcudaStreamCreateWithFlags\b/hipStreamCreateWithFlags/g; + $ft{'stream'} += s/\bcudaStreamCreateWithPriority\b/hipStreamCreateWithPriority/g; + $ft{'stream'} += s/\bcudaStreamDestroy\b/hipStreamDestroy/g; + $ft{'stream'} += s/\bcudaStreamGetFlags\b/hipStreamGetFlags/g; + $ft{'stream'} += s/\bcudaStreamGetPriority\b/hipStreamGetPriority/g; + $ft{'stream'} += s/\bcudaStreamQuery\b/hipStreamQuery/g; + $ft{'stream'} += s/\bcudaStreamSynchronize\b/hipStreamSynchronize/g; + $ft{'stream'} += s/\bcudaStreamWaitEvent\b/hipStreamWaitEvent/g; + $ft{'event'} += s/\bcuEventCreate\b/hipEventCreateWithFlags/g; + $ft{'event'} += s/\bcuEventDestroy\b/hipEventDestroy/g; + $ft{'event'} += s/\bcuEventDestroy_v2\b/hipEventDestroy/g; + $ft{'event'} += s/\bcuEventElapsedTime\b/hipEventElapsedTime/g; + $ft{'event'} += s/\bcuEventQuery\b/hipEventQuery/g; + $ft{'event'} += s/\bcuEventRecord\b/hipEventRecord/g; + $ft{'event'} += s/\bcuEventSynchronize\b/hipEventSynchronize/g; + $ft{'event'} += s/\bcudaEventCreate\b/hipEventCreate/g; + $ft{'event'} += s/\bcudaEventCreateWithFlags\b/hipEventCreateWithFlags/g; + $ft{'event'} += s/\bcudaEventDestroy\b/hipEventDestroy/g; + $ft{'event'} += s/\bcudaEventElapsedTime\b/hipEventElapsedTime/g; + $ft{'event'} += s/\bcudaEventQuery\b/hipEventQuery/g; + $ft{'event'} += s/\bcudaEventRecord\b/hipEventRecord/g; + $ft{'event'} += s/\bcudaEventSynchronize\b/hipEventSynchronize/g; + $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; + $ft{'execution'} += s/\bcudaLaunchKernel\b/hipLaunchKernel/g; + $ft{'execution'} += s/\bcudaSetupArgument\b/hipSetupArgument/g; + $ft{'occupancy'} += s/\bcuOccupancyMaxActiveBlocksPerMultiprocessor\b/hipOccupancyMaxActiveBlocksPerMultiprocessor/g; + $ft{'occupancy'} += s/\bcuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\b/hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags/g; + $ft{'occupancy'} += s/\bcuOccupancyMaxPotentialBlockSize\b/hipOccupancyMaxPotentialBlockSize/g; + $ft{'occupancy'} += s/\bcudaOccupancyMaxActiveBlocksPerMultiprocessor\b/hipOccupancyMaxActiveBlocksPerMultiprocessor/g; + $ft{'occupancy'} += s/\bcudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\b/hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags/g; + $ft{'occupancy'} += s/\bcudaOccupancyMaxPotentialBlockSize\b/hipOccupancyMaxPotentialBlockSize/g; + $ft{'texture'} += s/\bcuTexRefSetAddress\b/hipTexRefSetAddress/g; + $ft{'texture'} += s/\bcuTexRefSetAddress2D\b/hipTexRefSetAddress2D/g; + $ft{'texture'} += s/\bcuTexRefSetAddress2D_v2\b/hipTexRefSetAddress2D/g; + $ft{'texture'} += s/\bcuTexRefSetAddress2D_v3\b/hipTexRefSetAddress2D/g; + $ft{'texture'} += s/\bcuTexRefSetAddressMode\b/hipTexRefSetAddressMode/g; + $ft{'texture'} += s/\bcuTexRefSetAddress_v2\b/hipTexRefSetAddress/g; + $ft{'texture'} += s/\bcuTexRefSetArray\b/hipTexRefSetArray/g; + $ft{'texture'} += s/\bcuTexRefSetFilterMode\b/hipTexRefSetFilterMode/g; + $ft{'texture'} += s/\bcuTexRefSetFlags\b/hipTexRefSetFlags/g; + $ft{'texture'} += s/\bcuTexRefSetFormat\b/hipTexRefSetFormat/g; + $ft{'texture'} += s/\bcudaBindTexture\b/hipBindTexture/g; + $ft{'texture'} += s/\bcudaBindTexture2D\b/hipBindTexture2D/g; + $ft{'texture'} += s/\bcudaBindTextureToArray\b/hipBindTextureToArray/g; + $ft{'texture'} += s/\bcudaBindTextureToMipmappedArray\b/hipBindTextureToMipmappedArray/g; + $ft{'texture'} += s/\bcudaCreateChannelDesc\b/hipCreateChannelDesc/g; + $ft{'texture'} += s/\bcudaCreateTextureObject\b/hipCreateTextureObject/g; + $ft{'texture'} += s/\bcudaDestroyTextureObject\b/hipDestroyTextureObject/g; + $ft{'texture'} += s/\bcudaGetChannelDesc\b/hipGetChannelDesc/g; + $ft{'texture'} += s/\bcudaGetTextureAlignmentOffset\b/hipGetTextureAlignmentOffset/g; + $ft{'texture'} += s/\bcudaGetTextureObjectResourceDesc\b/hipGetTextureObjectResourceDesc/g; + $ft{'texture'} += s/\bcudaGetTextureObjectResourceViewDesc\b/hipGetTextureObjectResourceViewDesc/g; + $ft{'texture'} += s/\bcudaGetTextureReference\b/hipGetTextureReference/g; + $ft{'texture'} += s/\bcudaUnbindTexture\b/hipUnbindTexture/g; + $ft{'surface'} += s/\bcudaCreateSurfaceObject\b/hipCreateSurfaceObject/g; + $ft{'surface'} += s/\bcudaDestroySurfaceObject\b/hipDestroySurfaceObject/g; + $ft{'peer'} += s/\bcuCtxDisablePeerAccess\b/hipCtxDisablePeerAccess/g; + $ft{'peer'} += s/\bcuCtxEnablePeerAccess\b/hipCtxEnablePeerAccess/g; + $ft{'peer'} += s/\bcuDeviceCanAccessPeer\b/hipDeviceCanAccessPeer/g; + $ft{'peer'} += s/\bcudaDeviceCanAccessPeer\b/hipDeviceCanAccessPeer/g; + $ft{'peer'} += s/\bcudaDeviceDisablePeerAccess\b/hipDeviceDisablePeerAccess/g; + $ft{'peer'} += s/\bcudaDeviceEnablePeerAccess\b/hipDeviceEnablePeerAccess/g; + $ft{'profiler'} += s/\bcuProfilerStart\b/hipProfilerStart/g; + $ft{'profiler'} += s/\bcuProfilerStop\b/hipProfilerStop/g; + $ft{'profiler'} += s/\bcudaProfilerStart\b/hipProfilerStart/g; + $ft{'profiler'} += s/\bcudaProfilerStop\b/hipProfilerStop/g; + $ft{'thread'} += s/\bcudaThreadExit\b/hipDeviceReset/g; + $ft{'thread'} += s/\bcudaThreadGetCacheConfig\b/hipDeviceGetCacheConfig/g; + $ft{'thread'} += s/\bcudaThreadSetCacheConfig\b/hipDeviceSetCacheConfig/g; + $ft{'thread'} += s/\bcudaThreadSynchronize\b/hipDeviceSynchronize/g; + $ft{'complex'} += s/\bcuCabs\b/hipCabs/g; + $ft{'complex'} += s/\bcuCabsf\b/hipCabsf/g; + $ft{'complex'} += s/\bcuCadd\b/hipCadd/g; + $ft{'complex'} += s/\bcuCaddf\b/hipCaddf/g; + $ft{'complex'} += s/\bcuCdiv\b/hipCdiv/g; + $ft{'complex'} += s/\bcuCdivf\b/hipCdivf/g; + $ft{'complex'} += s/\bcuCfma\b/hipCfma/g; + $ft{'complex'} += s/\bcuCfmaf\b/hipCfmaf/g; + $ft{'complex'} += s/\bcuCimag\b/hipCimag/g; + $ft{'complex'} += s/\bcuCimagf\b/hipCimagf/g; + $ft{'complex'} += s/\bcuCmul\b/hipCmul/g; + $ft{'complex'} += s/\bcuCmulf\b/hipCmulf/g; + $ft{'complex'} += s/\bcuComplexDoubleToFloat\b/hipComplexDoubleToFloat/g; + $ft{'complex'} += s/\bcuComplexFloatToDouble\b/hipComplexFloatToDouble/g; + $ft{'complex'} += s/\bcuConj\b/hipConj/g; + $ft{'complex'} += s/\bcuConjf\b/hipConjf/g; + $ft{'complex'} += s/\bcuCreal\b/hipCreal/g; + $ft{'complex'} += s/\bcuCrealf\b/hipCrealf/g; + $ft{'complex'} += s/\bcuCsub\b/hipCsub/g; + $ft{'complex'} += s/\bcuCsubf\b/hipCsubf/g; + $ft{'complex'} += s/\bmake_cuComplex\b/make_hipComplex/g; + $ft{'complex'} += s/\bmake_cuDoubleComplex\b/make_hipDoubleComplex/g; + $ft{'complex'} += s/\bmake_cuFloatComplex\b/make_hipFloatComplex/g; + $ft{'library'} += s/\bcublasCreate\b/hipblasCreate/g; + $ft{'library'} += s/\bcublasCreate_v2\b/hipblasCreate/g; + $ft{'library'} += s/\bcublasDasum\b/hipblasDasum/g; + $ft{'library'} += s/\bcublasDasum_v2\b/hipblasDasum/g; + $ft{'library'} += s/\bcublasDaxpy\b/hipblasDaxpy/g; + $ft{'library'} += s/\bcublasDaxpy_v2\b/hipblasDaxpy/g; + $ft{'library'} += s/\bcublasDcopy\b/hipblasDcopy/g; + $ft{'library'} += s/\bcublasDcopy_v2\b/hipblasDcopy/g; + $ft{'library'} += s/\bcublasDdot\b/hipblasDdot/g; + $ft{'library'} += s/\bcublasDdot_v2\b/hipblasDdot/g; + $ft{'library'} += s/\bcublasDestroy\b/hipblasDestroy/g; + $ft{'library'} += s/\bcublasDestroy_v2\b/hipblasDestroy/g; + $ft{'library'} += s/\bcublasDgeam\b/hipblasDgeam/g; + $ft{'library'} += s/\bcublasDgemm\b/hipblasDgemm/g; + $ft{'library'} += s/\bcublasDgemmBatched\b/hipblasDgemmBatched/g; + $ft{'library'} += s/\bcublasDgemmStridedBatched\b/hipblasDgemmStridedBatched/g; + $ft{'library'} += s/\bcublasDgemm_v2\b/hipblasDgemm/g; + $ft{'library'} += s/\bcublasDgemv\b/hipblasDgemv/g; + $ft{'library'} += s/\bcublasDgemv_v2\b/hipblasDgemv/g; + $ft{'library'} += s/\bcublasDger\b/hipblasDger/g; + $ft{'library'} += s/\bcublasDger_v2\b/hipblasDger/g; + $ft{'library'} += s/\bcublasDnrm2\b/hipblasDnrm2/g; + $ft{'library'} += s/\bcublasDnrm2_v2\b/hipblasDnrm2/g; + $ft{'library'} += s/\bcublasDscal\b/hipblasDscal/g; + $ft{'library'} += s/\bcublasDscal_v2\b/hipblasDscal/g; + $ft{'library'} += s/\bcublasDtrsm\b/hipblasDtrsm/g; + $ft{'library'} += s/\bcublasDtrsm_v2\b/hipblasDtrsm/g; + $ft{'library'} += s/\bcublasGemmEx\b/hipblasGemmEx/g; + $ft{'library'} += s/\bcublasGetMatrix\b/hipblasGetMatrix/g; + $ft{'library'} += s/\bcublasGetPointerMode\b/hipblasGetPointerMode/g; + $ft{'library'} += s/\bcublasGetPointerMode_v2\b/hipblasGetPointerMode/g; + $ft{'library'} += s/\bcublasGetStream\b/hipblasGetStream/g; + $ft{'library'} += s/\bcublasGetStream_v2\b/hipblasGetStream/g; + $ft{'library'} += s/\bcublasGetVector\b/hipblasGetVector/g; + $ft{'library'} += s/\bcublasHgemm\b/hipblasHgemm/g; + $ft{'library'} += s/\bcublasIdamax\b/hipblasIdamax/g; + $ft{'library'} += s/\bcublasIdamax_v2\b/hipblasIdamax/g; + $ft{'library'} += s/\bcublasIsamax\b/hipblasIsamax/g; + $ft{'library'} += s/\bcublasIsamax_v2\b/hipblasIsamax/g; + $ft{'library'} += s/\bcublasSasum\b/hipblasSasum/g; + $ft{'library'} += s/\bcublasSasum_v2\b/hipblasSasum/g; + $ft{'library'} += s/\bcublasSaxpy\b/hipblasSaxpy/g; + $ft{'library'} += s/\bcublasSaxpy_v2\b/hipblasSaxpy/g; + $ft{'library'} += s/\bcublasScopy\b/hipblasScopy/g; + $ft{'library'} += s/\bcublasScopy_v2\b/hipblasScopy/g; + $ft{'library'} += s/\bcublasSdot\b/hipblasSdot/g; + $ft{'library'} += s/\bcublasSdot_v2\b/hipblasSdot/g; + $ft{'library'} += s/\bcublasSetMatrix\b/hipblasSetMatrix/g; + $ft{'library'} += s/\bcublasSetPointerMode\b/hipblasSetPointerMode/g; + $ft{'library'} += s/\bcublasSetPointerMode_v2\b/hipblasSetPointerMode/g; + $ft{'library'} += s/\bcublasSetStream\b/hipblasSetStream/g; + $ft{'library'} += s/\bcublasSetStream_v2\b/hipblasSetStream/g; + $ft{'library'} += s/\bcublasSetVector\b/hipblasSetVector/g; + $ft{'library'} += s/\bcublasSgeam\b/hipblasSgeam/g; + $ft{'library'} += s/\bcublasSgemm\b/hipblasSgemm/g; + $ft{'library'} += s/\bcublasSgemmBatched\b/hipblasSgemmBatched/g; + $ft{'library'} += s/\bcublasSgemmStridedBatched\b/hipblasSgemmStridedBatched/g; + $ft{'library'} += s/\bcublasSgemm_v2\b/hipblasSgemm/g; + $ft{'library'} += s/\bcublasSgemv\b/hipblasSgemv/g; + $ft{'library'} += s/\bcublasSgemv_v2\b/hipblasSgemv/g; + $ft{'library'} += s/\bcublasSger\b/hipblasSger/g; + $ft{'library'} += s/\bcublasSger_v2\b/hipblasSger/g; + $ft{'library'} += s/\bcublasSnrm2\b/hipblasSnrm2/g; + $ft{'library'} += s/\bcublasSnrm2_v2\b/hipblasSnrm2/g; + $ft{'library'} += s/\bcublasSscal\b/hipblasSscal/g; + $ft{'library'} += s/\bcublasSscal_v2\b/hipblasSscal/g; + $ft{'library'} += s/\bcublasStrsm\b/hipblasStrsm/g; + $ft{'library'} += s/\bcublasStrsm_v2\b/hipblasStrsm/g; + $ft{'library'} += s/\bcuda_stream\b/hip_stream/g; + $ft{'library'} += s/\bcudnnActivationBackward\b/hipdnnActivationBackward/g; + $ft{'library'} += s/\bcudnnActivationForward\b/hipdnnActivationForward/g; + $ft{'library'} += s/\bcudnnAddTensor\b/hipdnnAddTensor/g; + $ft{'library'} += s/\bcudnnBatchNormalizationBackward\b/hipdnnBatchNormalizationBackward/g; + $ft{'library'} += s/\bcudnnBatchNormalizationForwardInference\b/hipdnnBatchNormalizationForwardInference/g; + $ft{'library'} += s/\bcudnnBatchNormalizationForwardTraining\b/hipdnnBatchNormalizationForwardTraining/g; + $ft{'library'} += s/\bcudnnConvolutionBackwardBias\b/hipdnnConvolutionBackwardBias/g; + $ft{'library'} += s/\bcudnnConvolutionBackwardData\b/hipdnnConvolutionBackwardData/g; + $ft{'library'} += s/\bcudnnConvolutionBackwardFilter\b/hipdnnConvolutionBackwardFilter/g; + $ft{'library'} += s/\bcudnnConvolutionForward\b/hipdnnConvolutionForward/g; + $ft{'library'} += s/\bcudnnCreate\b/hipdnnCreate/g; + $ft{'library'} += s/\bcudnnCreateActivationDescriptor\b/hipdnnCreateActivationDescriptor/g; + $ft{'library'} += s/\bcudnnCreateConvolutionDescriptor\b/hipdnnCreateConvolutionDescriptor/g; + $ft{'library'} += s/\bcudnnCreateDropoutDescriptor\b/hipdnnCreateDropoutDescriptor/g; + $ft{'library'} += s/\bcudnnCreateFilterDescriptor\b/hipdnnCreateFilterDescriptor/g; + $ft{'library'} += s/\bcudnnCreateLRNDescriptor\b/hipdnnCreateLRNDescriptor/g; + $ft{'library'} += s/\bcudnnCreateOpTensorDescriptor\b/hipdnnCreateOpTensorDescriptor/g; + $ft{'library'} += s/\bcudnnCreatePersistentRNNPlan\b/hipdnnCreatePersistentRNNPlan/g; + $ft{'library'} += s/\bcudnnCreatePoolingDescriptor\b/hipdnnCreatePoolingDescriptor/g; + $ft{'library'} += s/\bcudnnCreateRNNDescriptor\b/hipdnnCreateRNNDescriptor/g; + $ft{'library'} += s/\bcudnnCreateReduceTensorDescriptor\b/hipdnnCreateReduceTensorDescriptor/g; + $ft{'library'} += s/\bcudnnCreateTensorDescriptor\b/hipdnnCreateTensorDescriptor/g; + $ft{'library'} += s/\bcudnnDeriveBNTensorDescriptor\b/hipdnnDeriveBNTensorDescriptor/g; + $ft{'library'} += s/\bcudnnDestroy\b/hipdnnDestroy/g; + $ft{'library'} += s/\bcudnnDestroyActivationDescriptor\b/hipdnnDestroyActivationDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyConvolutionDescriptor\b/hipdnnDestroyConvolutionDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyDropoutDescriptor\b/hipdnnDestroyDropoutDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyFilterDescriptor\b/hipdnnDestroyFilterDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyLRNDescriptor\b/hipdnnDestroyLRNDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyOpTensorDescriptor\b/hipdnnDestroyOpTensorDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyPersistentRNNPlan\b/hipdnnDestroyPersistentRNNPlan/g; + $ft{'library'} += s/\bcudnnDestroyPoolingDescriptor\b/hipdnnDestroyPoolingDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyRNNDescriptor\b/hipdnnDestroyRNNDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyReduceTensorDescriptor\b/hipdnnDestroyReduceTensorDescriptor/g; + $ft{'library'} += s/\bcudnnDestroyTensorDescriptor\b/hipdnnDestroyTensorDescriptor/g; + $ft{'library'} += s/\bcudnnDropoutGetStatesSize\b/hipdnnDropoutGetStatesSize/g; + $ft{'library'} += s/\bcudnnFindConvolutionBackwardDataAlgorithm\b/hipdnnFindConvolutionBackwardDataAlgorithm/g; + $ft{'library'} += s/\bcudnnFindConvolutionBackwardDataAlgorithmEx\b/hipdnnFindConvolutionBackwardDataAlgorithmEx/g; + $ft{'library'} += s/\bcudnnFindConvolutionBackwardFilterAlgorithm\b/hipdnnFindConvolutionBackwardFilterAlgorithm/g; + $ft{'library'} += s/\bcudnnFindConvolutionBackwardFilterAlgorithmEx\b/hipdnnFindConvolutionBackwardFilterAlgorithmEx/g; + $ft{'library'} += s/\bcudnnFindConvolutionForwardAlgorithm\b/hipdnnFindConvolutionForwardAlgorithm/g; + $ft{'library'} += s/\bcudnnFindConvolutionForwardAlgorithmEx\b/hipdnnFindConvolutionForwardAlgorithmEx/g; + $ft{'library'} += s/\bcudnnGetActivationDescriptor\b/hipdnnGetActivationDescriptor/g; + $ft{'library'} += s/\bcudnnGetConvolution2dDescriptor\b/hipdnnGetConvolution2dDescriptor/g; + $ft{'library'} += s/\bcudnnGetConvolution2dForwardOutputDim\b/hipdnnGetConvolution2dForwardOutputDim/g; + $ft{'library'} += s/\bcudnnGetConvolutionBackwardDataAlgorithm\b/hipdnnGetConvolutionBackwardDataAlgorithm/g; + $ft{'library'} += s/\bcudnnGetConvolutionBackwardDataWorkspaceSize\b/hipdnnGetConvolutionBackwardDataWorkspaceSize/g; + $ft{'library'} += s/\bcudnnGetConvolutionBackwardFilterAlgorithm\b/hipdnnGetConvolutionBackwardFilterAlgorithm/g; + $ft{'library'} += s/\bcudnnGetConvolutionBackwardFilterWorkspaceSize\b/hipdnnGetConvolutionBackwardFilterWorkspaceSize/g; + $ft{'library'} += s/\bcudnnGetConvolutionForwardAlgorithm\b/hipdnnGetConvolutionForwardAlgorithm/g; + $ft{'library'} += s/\bcudnnGetConvolutionForwardWorkspaceSize\b/hipdnnGetConvolutionForwardWorkspaceSize/g; + $ft{'library'} += s/\bcudnnGetErrorString\b/hipdnnGetErrorString/g; + $ft{'library'} += s/\bcudnnGetFilter4dDescriptor\b/hipdnnGetFilter4dDescriptor/g; + $ft{'library'} += s/\bcudnnGetFilterNdDescriptor\b/hipdnnGetFilterNdDescriptor/g; + $ft{'library'} += s/\bcudnnGetLRNDescriptor\b/hipdnnGetLRNDescriptor/g; + $ft{'library'} += s/\bcudnnGetOpTensorDescriptor\b/hipdnnGetOpTensorDescriptor/g; + $ft{'library'} += s/\bcudnnGetPooling2dDescriptor\b/hipdnnGetPooling2dDescriptor/g; + $ft{'library'} += s/\bcudnnGetPooling2dForwardOutputDim\b/hipdnnGetPooling2dForwardOutputDim/g; + $ft{'library'} += s/\bcudnnGetRNNDescriptor\b/hipdnnGetRNNDescriptor/g; + $ft{'library'} += s/\bcudnnGetRNNLinLayerBiasParams\b/hipdnnGetRNNLinLayerBiasParams/g; + $ft{'library'} += s/\bcudnnGetRNNLinLayerMatrixParams\b/hipdnnGetRNNLinLayerMatrixParams/g; + $ft{'library'} += s/\bcudnnGetRNNParamsSize\b/hipdnnGetRNNParamsSize/g; + $ft{'library'} += s/\bcudnnGetRNNTrainingReserveSize\b/hipdnnGetRNNTrainingReserveSize/g; + $ft{'library'} += s/\bcudnnGetRNNWorkspaceSize\b/hipdnnGetRNNWorkspaceSize/g; + $ft{'library'} += s/\bcudnnGetReduceTensorDescriptor\b/hipdnnGetReduceTensorDescriptor/g; + $ft{'library'} += s/\bcudnnGetReductionWorkspaceSize\b/hipdnnGetReductionWorkspaceSize/g; + $ft{'library'} += s/\bcudnnGetStream\b/hipdnnGetStream/g; + $ft{'library'} += s/\bcudnnGetTensor4dDescriptor\b/hipdnnGetTensor4dDescriptor/g; + $ft{'library'} += s/\bcudnnGetTensorNdDescriptor\b/hipdnnGetTensorNdDescriptor/g; + $ft{'library'} += s/\bcudnnGetVersion\b/hipdnnGetVersion/g; + $ft{'library'} += s/\bcudnnLRNCrossChannelBackward\b/hipdnnLRNCrossChannelBackward/g; + $ft{'library'} += s/\bcudnnLRNCrossChannelForward\b/hipdnnLRNCrossChannelForward/g; + $ft{'library'} += s/\bcudnnOpTensor\b/hipdnnOpTensor/g; + $ft{'library'} += s/\bcudnnPoolingBackward\b/hipdnnPoolingBackward/g; + $ft{'library'} += s/\bcudnnPoolingForward\b/hipdnnPoolingForward/g; + $ft{'library'} += s/\bcudnnRNNBackwardData\b/hipdnnRNNBackwardData/g; + $ft{'library'} += s/\bcudnnRNNBackwardWeights\b/hipdnnRNNBackwardWeights/g; + $ft{'library'} += s/\bcudnnRNNForwardInference\b/hipdnnRNNForwardInference/g; + $ft{'library'} += s/\bcudnnRNNForwardTraining\b/hipdnnRNNForwardTraining/g; + $ft{'library'} += s/\bcudnnReduceTensor\b/hipdnnReduceTensor/g; + $ft{'library'} += s/\bcudnnScaleTensor\b/hipdnnScaleTensor/g; + $ft{'library'} += s/\bcudnnSetActivationDescriptor\b/hipdnnSetActivationDescriptor/g; + $ft{'library'} += s/\bcudnnSetConvolution2dDescriptor\b/hipdnnSetConvolution2dDescriptor/g; + $ft{'library'} += s/\bcudnnSetConvolutionGroupCount\b/hipdnnSetConvolutionGroupCount/g; + $ft{'library'} += s/\bcudnnSetConvolutionMathType\b/hipdnnSetConvolutionMathType/g; + $ft{'library'} += s/\bcudnnSetConvolutionNdDescriptor\b/hipdnnSetConvolutionNdDescriptor/g; + $ft{'library'} += s/\bcudnnSetDropoutDescriptor\b/hipdnnSetDropoutDescriptor/g; + $ft{'library'} += s/\bcudnnSetFilter4dDescriptor\b/hipdnnSetFilter4dDescriptor/g; + $ft{'library'} += s/\bcudnnSetFilterNdDescriptor\b/hipdnnSetFilterNdDescriptor/g; + $ft{'library'} += s/\bcudnnSetLRNDescriptor\b/hipdnnSetLRNDescriptor/g; + $ft{'library'} += s/\bcudnnSetOpTensorDescriptor\b/hipdnnSetOpTensorDescriptor/g; + $ft{'library'} += s/\bcudnnSetPersistentRNNPlan\b/hipdnnSetPersistentRNNPlan/g; + $ft{'library'} += s/\bcudnnSetPooling2dDescriptor\b/hipdnnSetPooling2dDescriptor/g; + $ft{'library'} += s/\bcudnnSetPoolingNdDescriptor\b/hipdnnSetPoolingNdDescriptor/g; + $ft{'library'} += s/\bcudnnSetRNNDescriptor\b/hipdnnSetRNNDescriptor/g; + $ft{'library'} += s/\bcudnnSetRNNDescriptor_v5\b/hipdnnSetRNNDescriptor_v5/g; + $ft{'library'} += s/\bcudnnSetRNNDescriptor_v6\b/hipdnnSetRNNDescriptor_v6/g; + $ft{'library'} += s/\bcudnnSetReduceTensorDescriptor\b/hipdnnSetReduceTensorDescriptor/g; + $ft{'library'} += s/\bcudnnSetStream\b/hipdnnSetStream/g; + $ft{'library'} += s/\bcudnnSetTensor\b/hipdnnSetTensor/g; + $ft{'library'} += s/\bcudnnSetTensor4dDescriptor\b/hipdnnSetTensor4dDescriptor/g; + $ft{'library'} += s/\bcudnnSetTensor4dDescriptorEx\b/hipdnnSetTensor4dDescriptorEx/g; + $ft{'library'} += s/\bcudnnSetTensorNdDescriptor\b/hipdnnSetTensorNdDescriptor/g; + $ft{'library'} += s/\bcudnnSoftmaxBackward\b/hipdnnSoftmaxBackward/g; + $ft{'library'} += s/\bcudnnSoftmaxForward\b/hipdnnSoftmaxForward/g; + $ft{'library'} += s/\bcufftCreate\b/hipfftCreate/g; + $ft{'library'} += s/\bcufftDestroy\b/hipfftDestroy/g; + $ft{'library'} += s/\bcufftEstimate1d\b/hipfftEstimate1d/g; + $ft{'library'} += s/\bcufftEstimate2d\b/hipfftEstimate2d/g; + $ft{'library'} += s/\bcufftEstimate3d\b/hipfftEstimate3d/g; + $ft{'library'} += s/\bcufftEstimateMany\b/hipfftEstimateMany/g; + $ft{'library'} += s/\bcufftExecC2C\b/hipfftExecC2C/g; + $ft{'library'} += s/\bcufftExecC2R\b/hipfftExecC2R/g; + $ft{'library'} += s/\bcufftExecD2Z\b/hipfftExecD2Z/g; + $ft{'library'} += s/\bcufftExecR2C\b/hipfftExecR2C/g; + $ft{'library'} += s/\bcufftExecZ2D\b/hipfftExecZ2D/g; + $ft{'library'} += s/\bcufftExecZ2Z\b/hipfftExecZ2Z/g; + $ft{'library'} += s/\bcufftGetSize\b/hipfftGetSize/g; + $ft{'library'} += s/\bcufftGetSize1d\b/hipfftGetSize1d/g; + $ft{'library'} += s/\bcufftGetSize2d\b/hipfftGetSize2d/g; + $ft{'library'} += s/\bcufftGetSize3d\b/hipfftGetSize3d/g; + $ft{'library'} += s/\bcufftGetSizeMany\b/hipfftGetSizeMany/g; + $ft{'library'} += s/\bcufftGetSizeMany64\b/hipfftGetSizeMany64/g; + $ft{'library'} += s/\bcufftGetVersion\b/hipfftGetVersion/g; + $ft{'library'} += s/\bcufftMakePlan1d\b/hipfftMakePlan1d/g; + $ft{'library'} += s/\bcufftMakePlan2d\b/hipfftMakePlan2d/g; + $ft{'library'} += s/\bcufftMakePlan3d\b/hipfftMakePlan3d/g; + $ft{'library'} += s/\bcufftMakePlanMany\b/hipfftMakePlanMany/g; + $ft{'library'} += s/\bcufftMakePlanMany64\b/hipfftMakePlanMany64/g; + $ft{'library'} += s/\bcufftPlan1d\b/hipfftPlan1d/g; + $ft{'library'} += s/\bcufftPlan2d\b/hipfftPlan2d/g; + $ft{'library'} += s/\bcufftPlan3d\b/hipfftPlan3d/g; + $ft{'library'} += s/\bcufftPlanMany\b/hipfftPlanMany/g; + $ft{'library'} += s/\bcufftSetAutoAllocation\b/hipfftSetAutoAllocation/g; + $ft{'library'} += s/\bcufftSetStream\b/hipfftSetStream/g; + $ft{'library'} += s/\bcufftSetWorkArea\b/hipfftSetWorkArea/g; + $ft{'library'} += s/\bcurandCreateGenerator\b/hiprandCreateGenerator/g; + $ft{'library'} += s/\bcurandCreateGeneratorHost\b/hiprandCreateGeneratorHost/g; + $ft{'library'} += s/\bcurandCreatePoissonDistribution\b/hiprandCreatePoissonDistribution/g; + $ft{'library'} += s/\bcurandDestroyDistribution\b/hiprandDestroyDistribution/g; + $ft{'library'} += s/\bcurandDestroyGenerator\b/hiprandDestroyGenerator/g; + $ft{'library'} += s/\bcurandGenerate\b/hiprandGenerate/g; + $ft{'library'} += s/\bcurandGenerateLogNormal\b/hiprandGenerateLogNormal/g; + $ft{'library'} += s/\bcurandGenerateLogNormalDouble\b/hiprandGenerateLogNormalDouble/g; + $ft{'library'} += s/\bcurandGenerateNormal\b/hiprandGenerateNormal/g; + $ft{'library'} += s/\bcurandGenerateNormalDouble\b/hiprandGenerateNormalDouble/g; + $ft{'library'} += s/\bcurandGeneratePoisson\b/hiprandGeneratePoisson/g; + $ft{'library'} += s/\bcurandGenerateSeeds\b/hiprandGenerateSeeds/g; + $ft{'library'} += s/\bcurandGenerateUniform\b/hiprandGenerateUniform/g; + $ft{'library'} += s/\bcurandGenerateUniformDouble\b/hiprandGenerateUniformDouble/g; + $ft{'library'} += s/\bcurandGetVersion\b/hiprandGetVersion/g; + $ft{'library'} += s/\bcurandMakeMTGP32Constants\b/hiprandMakeMTGP32Constants/g; + $ft{'library'} += s/\bcurandMakeMTGP32KernelState\b/hiprandMakeMTGP32KernelState/g; + $ft{'library'} += s/\bcurandSetGeneratorOffset\b/hiprandSetGeneratorOffset/g; + $ft{'library'} += s/\bcurandSetPseudoRandomGeneratorSeed\b/hiprandSetPseudoRandomGeneratorSeed/g; + $ft{'library'} += s/\bcurandSetQuasiRandomGeneratorDimensions\b/hiprandSetQuasiRandomGeneratorDimensions/g; + $ft{'library'} += s/\bcurandSetStream\b/hiprandSetStream/g; + $ft{'library'} += s/\bcusparseCreate\b/hipsparseCreate/g; + $ft{'library'} += s/\bcusparseCreateCsrilu02Info\b/hipsparseCreateCsrilu02Info/g; + $ft{'library'} += s/\bcusparseCreateCsrsv2Info\b/hipsparseCreateCsrsv2Info/g; + $ft{'library'} += s/\bcusparseCreateHybMat\b/hipsparseCreateHybMat/g; + $ft{'library'} += s/\bcusparseCreateIdentityPermutation\b/hipsparseCreateIdentityPermutation/g; + $ft{'library'} += s/\bcusparseCreateMatDescr\b/hipsparseCreateMatDescr/g; + $ft{'library'} += s/\bcusparseDaxpyi\b/hipsparseDaxpyi/g; + $ft{'library'} += s/\bcusparseDcsr2csc\b/hipsparseDcsr2csc/g; + $ft{'library'} += s/\bcusparseDcsr2hyb\b/hipsparseDcsr2hyb/g; + $ft{'library'} += s/\bcusparseDcsrilu02\b/hipsparseDcsrilu02/g; + $ft{'library'} += s/\bcusparseDcsrilu02_analysis\b/hipsparseDcsrilu02_analysis/g; + $ft{'library'} += s/\bcusparseDcsrilu02_bufferSize\b/hipsparseDcsrilu02_bufferSize/g; + $ft{'library'} += s/\bcusparseDcsrilu02_bufferSizeExt\b/hipsparseDcsrilu02_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseDcsrmm\b/hipsparseDcsrmm/g; + $ft{'library'} += s/\bcusparseDcsrmm2\b/hipsparseDcsrmm2/g; + $ft{'library'} += s/\bcusparseDcsrmv\b/hipsparseDcsrmv/g; + $ft{'library'} += s/\bcusparseDcsrsv2_analysis\b/hipsparseDcsrsv2_analysis/g; + $ft{'library'} += s/\bcusparseDcsrsv2_bufferSize\b/hipsparseDcsrsv2_bufferSize/g; + $ft{'library'} += s/\bcusparseDcsrsv2_bufferSizeExt\b/hipsparseDcsrsv2_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseDcsrsv2_solve\b/hipsparseDcsrsv2_solve/g; + $ft{'library'} += s/\bcusparseDdoti\b/hipsparseDdoti/g; + $ft{'library'} += s/\bcusparseDestroy\b/hipsparseDestroy/g; + $ft{'library'} += s/\bcusparseDestroyCsrilu02Info\b/hipsparseDestroyCsrilu02Info/g; + $ft{'library'} += s/\bcusparseDestroyCsrsv2Info\b/hipsparseDestroyCsrsv2Info/g; + $ft{'library'} += s/\bcusparseDestroyHybMat\b/hipsparseDestroyHybMat/g; + $ft{'library'} += s/\bcusparseDestroyMatDescr\b/hipsparseDestroyMatDescr/g; + $ft{'library'} += s/\bcusparseDgthr\b/hipsparseDgthr/g; + $ft{'library'} += s/\bcusparseDgthrz\b/hipsparseDgthrz/g; + $ft{'library'} += s/\bcusparseDhybmv\b/hipsparseDhybmv/g; + $ft{'library'} += s/\bcusparseDroti\b/hipsparseDroti/g; + $ft{'library'} += s/\bcusparseDsctr\b/hipsparseDsctr/g; + $ft{'library'} += s/\bcusparseGetMatDiagType\b/hipsparseGetMatDiagType/g; + $ft{'library'} += s/\bcusparseGetMatFillMode\b/hipsparseGetMatFillMode/g; + $ft{'library'} += s/\bcusparseGetMatIndexBase\b/hipsparseGetMatIndexBase/g; + $ft{'library'} += s/\bcusparseGetMatType\b/hipsparseGetMatType/g; + $ft{'library'} += s/\bcusparseGetPointerMode\b/hipsparseGetPointerMode/g; + $ft{'library'} += s/\bcusparseGetStream\b/hipsparseGetStream/g; + $ft{'library'} += s/\bcusparseGetVersion\b/hipsparseGetVersion/g; + $ft{'library'} += s/\bcusparseSaxpyi\b/hipsparseSaxpyi/g; + $ft{'library'} += s/\bcusparseScsr2csc\b/hipsparseScsr2csc/g; + $ft{'library'} += s/\bcusparseScsr2hyb\b/hipsparseScsr2hyb/g; + $ft{'library'} += s/\bcusparseScsrilu02\b/hipsparseScsrilu02/g; + $ft{'library'} += s/\bcusparseScsrilu02_analysis\b/hipsparseScsrilu02_analysis/g; + $ft{'library'} += s/\bcusparseScsrilu02_bufferSize\b/hipsparseScsrilu02_bufferSize/g; + $ft{'library'} += s/\bcusparseScsrilu02_bufferSizeExt\b/hipsparseScsrilu02_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseScsrmm\b/hipsparseScsrmm/g; + $ft{'library'} += s/\bcusparseScsrmm2\b/hipsparseScsrmm2/g; + $ft{'library'} += s/\bcusparseScsrmv\b/hipsparseScsrmv/g; + $ft{'library'} += s/\bcusparseScsrsv2_analysis\b/hipsparseScsrsv2_analysis/g; + $ft{'library'} += s/\bcusparseScsrsv2_bufferSize\b/hipsparseScsrsv2_bufferSize/g; + $ft{'library'} += s/\bcusparseScsrsv2_bufferSizeExt\b/hipsparseScsrsv2_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseScsrsv2_solve\b/hipsparseScsrsv2_solve/g; + $ft{'library'} += s/\bcusparseSdoti\b/hipsparseSdoti/g; + $ft{'library'} += s/\bcusparseSetMatDiagType\b/hipsparseSetMatDiagType/g; + $ft{'library'} += s/\bcusparseSetMatFillMode\b/hipsparseSetMatFillMode/g; + $ft{'library'} += s/\bcusparseSetMatIndexBase\b/hipsparseSetMatIndexBase/g; + $ft{'library'} += s/\bcusparseSetMatType\b/hipsparseSetMatType/g; + $ft{'library'} += s/\bcusparseSetPointerMode\b/hipsparseSetPointerMode/g; + $ft{'library'} += s/\bcusparseSetStream\b/hipsparseSetStream/g; + $ft{'library'} += s/\bcusparseSgthr\b/hipsparseSgthr/g; + $ft{'library'} += s/\bcusparseSgthrz\b/hipsparseSgthrz/g; + $ft{'library'} += s/\bcusparseShybmv\b/hipsparseShybmv/g; + $ft{'library'} += s/\bcusparseSroti\b/hipsparseSroti/g; + $ft{'library'} += s/\bcusparseSsctr\b/hipsparseSsctr/g; + $ft{'library'} += s/\bcusparseXbsrilu02_zeroPivot\b/hipsparseXbsrilu02_zeroPivot/g; + $ft{'library'} += s/\bcusparseXcoo2csr\b/hipsparseXcoo2csr/g; + $ft{'library'} += s/\bcusparseXcoosortByColumn\b/hipsparseXcoosortByColumn/g; + $ft{'library'} += s/\bcusparseXcoosortByRow\b/hipsparseXcoosortByRow/g; + $ft{'library'} += s/\bcusparseXcoosort_bufferSizeExt\b/hipsparseXcoosort_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseXcsr2coo\b/hipsparseXcsr2coo/g; + $ft{'library'} += s/\bcusparseXcsrilu02_zeroPivot\b/hipsparseXcsrilu02_zeroPivot/g; + $ft{'library'} += s/\bcusparseXcsrsort\b/hipsparseXcsrsort/g; + $ft{'library'} += s/\bcusparseXcsrsort_bufferSizeExt\b/hipsparseXcsrsort_bufferSizeExt/g; + $ft{'library'} += s/\bcusparseXcsrsv2_zeroPivot\b/hipsparseXcsrsv2_zeroPivot/g; + $ft{'device_library'} += s/\bcurand\b/hiprand/g; + $ft{'device_library'} += s/\bcurand_discrete\b/hiprand_discrete/g; + $ft{'device_library'} += s/\bcurand_discrete4\b/hiprand_discrete4/g; + $ft{'device_library'} += s/\bcurand_init\b/hiprand_init/g; + $ft{'device_library'} += s/\bcurand_log_normal\b/hiprand_log_normal/g; + $ft{'device_library'} += s/\bcurand_log_normal2\b/hiprand_log_normal2/g; + $ft{'device_library'} += s/\bcurand_log_normal2_double\b/hiprand_log_normal2_double/g; + $ft{'device_library'} += s/\bcurand_log_normal4\b/hiprand_log_normal4/g; + $ft{'device_library'} += s/\bcurand_log_normal4_double\b/hiprand_log_normal4_double/g; + $ft{'device_library'} += s/\bcurand_log_normal_double\b/hiprand_log_normal_double/g; + $ft{'device_library'} += s/\bcurand_normal\b/hiprand_normal/g; + $ft{'device_library'} += s/\bcurand_normal2\b/hiprand_normal2/g; + $ft{'device_library'} += s/\bcurand_normal2_double\b/hiprand_normal2_double/g; + $ft{'device_library'} += s/\bcurand_normal4\b/hiprand_normal4/g; + $ft{'device_library'} += s/\bcurand_normal4_double\b/hiprand_normal4_double/g; + $ft{'device_library'} += s/\bcurand_normal_double\b/hiprand_normal_double/g; + $ft{'device_library'} += s/\bcurand_poisson\b/hiprand_poisson/g; + $ft{'device_library'} += s/\bcurand_poisson4\b/hiprand_poisson4/g; + $ft{'device_library'} += s/\bcurand_uniform\b/hiprand_uniform/g; + $ft{'device_library'} += s/\bcurand_uniform2_double\b/hiprand_uniform2_double/g; + $ft{'device_library'} += s/\bcurand_uniform4\b/hiprand_uniform4/g; + $ft{'device_library'} += s/\bcurand_uniform4_double\b/hiprand_uniform4_double/g; + $ft{'device_library'} += s/\bcurand_uniform_double\b/hiprand_uniform_double/g; + $ft{'include'} += s/\bcaffe2\/core\/common_cudnn.h\b/caffe2\/core\/hip\/common_miopen.h/g; + $ft{'include'} += s/\bcaffe2\/operators\/spatial_batch_norm_op.h\b/caffe2\/operators\/hip\/spatial_batch_norm_op_miopen.hip/g; + $ft{'include'} += s/\bchannel_descriptor.h\b/hip\/channel_descriptor.h/g; + $ft{'include'} += s/\bcooperative_groups.h\b/hip\/hip_cooperative_groups.h/g; + $ft{'include'} += s/\bcuda_fp16.h\b/hip\/hip_fp16.h/g; + $ft{'include'} += s/\bcuda_profiler_api.h\b/hip\/hip_profile.h/g; + $ft{'include'} += s/\bcuda_runtime_api.h\b/hip\/hip_runtime_api.h/g; + $ft{'include'} += s/\bcuda_texture_types.h\b/hip\/hip_texture_types.h/g; + $ft{'include'} += s/\bcurand_discrete.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_discrete2.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_globals.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_kernel.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_lognormal.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_mrg32k3a.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_mtgp32.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_mtgp32_host.h\b/hiprand_mtgp32_host.h/g; + $ft{'include'} += s/\bcurand_mtgp32_kernel.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_mtgp32dc_p_11213.h\b/rocrand_mtgp32_11213.h/g; + $ft{'include'} += s/\bcurand_normal.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_normal_static.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_philox4x32_x.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_poisson.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_precalc.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bcurand_uniform.h\b/hiprand_kernel.h/g; + $ft{'include'} += s/\bdevice_functions.h\b/hip\/device_functions.h/g; + $ft{'include'} += s/\bdriver_types.h\b/hip\/driver_types.h/g; + $ft{'include'} += s/\btexture_fetch_functions.h\b//g; + $ft{'include'} += s/\bvector_types.h\b/hip\/hip_vector_types.h/g; + $ft{'include_cuda_main_header'} += s/\bcuComplex.h\b/hip\/hip_complex.h/g; + $ft{'include_cuda_main_header'} += s/\bcublas.h\b/hipblas.h/g; + $ft{'include_cuda_main_header'} += s/\bcublas_v2.h\b/hipblas.h/g; + $ft{'include_cuda_main_header'} += s/\bcuda.h\b/hip\/hip_runtime.h/g; + $ft{'include_cuda_main_header'} += s/\bcuda_runtime.h\b/hip\/hip_runtime.h/g; + $ft{'include_cuda_main_header'} += s/\bcudnn.h\b/hipDNN.h/g; + $ft{'include_cuda_main_header'} += s/\bcufft.h\b/hipfft.h/g; + $ft{'include_cuda_main_header'} += s/\bcurand.h\b/hiprand.h/g; + $ft{'include_cuda_main_header'} += s/\bcusparse.h\b/hipsparse.h/g; + $ft{'include_cuda_main_header'} += s/\bcusparse_v2.h\b/hipsparse.h/g; + $ft{'type'} += s/\bCUDAContext\b/HIPContext/g; + $ft{'type'} += s/\bCUDA_ARRAY3D_DESCRIPTOR\b/HIP_ARRAY3D_DESCRIPTOR/g; + $ft{'type'} += s/\bCUDA_ARRAY3D_DESCRIPTOR_st\b/HIP_ARRAY3D_DESCRIPTOR/g; + $ft{'type'} += s/\bCUDA_ARRAY_DESCRIPTOR\b/HIP_ARRAY_DESCRIPTOR/g; + $ft{'type'} += s/\bCUDA_ARRAY_DESCRIPTOR_st\b/HIP_ARRAY_DESCRIPTOR/g; + $ft{'type'} += s/\bCUDA_MEMCPY2D\b/hip_Memcpy2D/g; + $ft{'type'} += s/\bCUDA_MEMCPY2D_st\b/hip_Memcpy2D/g; + $ft{'type'} += s/\bCUaddress_mode\b/hipTextureAddressMode/g; + $ft{'type'} += s/\bCUaddress_mode_enum\b/hipTextureAddressMode/g; + $ft{'type'} += s/\bCUarray\b/hipArray */g; + $ft{'type'} += s/\bCUarray_format\b/hipArray_format/g; + $ft{'type'} += s/\bCUarray_format_enum\b/hipArray_format/g; + $ft{'type'} += s/\bCUarray_st\b/hipArray/g; + $ft{'type'} += s/\bCUcomputemode\b/hipComputeMode/g; + $ft{'type'} += s/\bCUcomputemode_enum\b/hipComputeMode/g; + $ft{'type'} += s/\bCUcontext\b/hipCtx_t/g; + $ft{'type'} += s/\bCUctx_st\b/ihipCtx_t/g; + $ft{'type'} += s/\bCUdevice\b/hipDevice_t/g; + $ft{'type'} += s/\bCUdevice_attribute\b/hipDeviceAttribute_t/g; + $ft{'type'} += s/\bCUdevice_attribute_enum\b/hipDeviceAttribute_t/g; + $ft{'type'} += s/\bCUdeviceptr\b/hipDeviceptr_t/g; + $ft{'type'} += s/\bCUevent\b/hipEvent_t/g; + $ft{'type'} += s/\bCUevent_st\b/ihipEvent_t/g; + $ft{'type'} += s/\bCUfilter_mode\b/hipTextureFilterMode/g; + $ft{'type'} += s/\bCUfilter_mode_enum\b/hipTextureFilterMode/g; + $ft{'type'} += s/\bCUfunc_cache\b/hipFuncCache_t/g; + $ft{'type'} += s/\bCUfunc_cache_enum\b/hipFuncCache_t/g; + $ft{'type'} += s/\bCUfunc_st\b/ihipModuleSymbol_t/g; + $ft{'type'} += s/\bCUfunction\b/hipFunction_t/g; + $ft{'type'} += s/\bCUfunction_attribute\b/hipFunction_attribute/g; + $ft{'type'} += s/\bCUfunction_attribute_enum\b/hipFunction_attribute/g; + $ft{'type'} += s/\bCUipcEventHandle\b/ihipIpcEventHandle_t/g; + $ft{'type'} += s/\bCUipcEventHandle_st\b/ihipIpcEventHandle_t/g; + $ft{'type'} += s/\bCUipcMemHandle\b/hipIpcMemHandle_t/g; + $ft{'type'} += s/\bCUipcMemHandle_st\b/hipIpcMemHandle_st/g; + $ft{'type'} += s/\bCUjit_option\b/hipJitOption/g; + $ft{'type'} += s/\bCUjit_option_enum\b/hipJitOption/g; + $ft{'type'} += s/\bCUlimit\b/hipLimit_t/g; + $ft{'type'} += s/\bCUlimit_enum\b/hipLimit_t/g; + $ft{'type'} += s/\bCUmemorytype\b/hipMemoryType/g; + $ft{'type'} += s/\bCUmemorytype_enum\b/hipMemoryType/g; + $ft{'type'} += s/\bCUmipmappedArray\b/hipMipmappedArray_t/g; + $ft{'type'} += s/\bCUmipmappedArray_st\b/hipMipmappedArray_st/g; + $ft{'type'} += s/\bCUmod_st\b/ihipModule_t/g; + $ft{'type'} += s/\bCUmodule\b/hipModule_t/g; + $ft{'type'} += s/\bCUresourceViewFormat\b/hipResourceViewFormat/g; + $ft{'type'} += s/\bCUresourceViewFormat_enum\b/hipResourceViewFormat/g; + $ft{'type'} += s/\bCUresourcetype\b/hipResourceType/g; + $ft{'type'} += s/\bCUresourcetype_enum\b/hipResourceType/g; + $ft{'type'} += s/\bCUresult\b/hipError_t/g; + $ft{'type'} += s/\bCUsharedconfig\b/hipSharedMemConfig/g; + $ft{'type'} += s/\bCUsharedconfig_enum\b/hipSharedMemConfig/g; + $ft{'type'} += s/\bCUstream\b/hipStream_t/g; + $ft{'type'} += s/\bCUstreamCallback\b/hipStreamCallback_t/g; + $ft{'type'} += s/\bCUstream_st\b/ihipStream_t/g; + $ft{'type'} += s/\bCUtexObject\b/hipTextureObject_t/g; + $ft{'type'} += s/\bCUtexref_st\b/textureReference/g; + $ft{'type'} += s/\bcsrilu02Info_t\b/csrilu02Info_t/g; + $ft{'type'} += s/\bcsrsv2Info_t\b/csrsv2Info_t/g; + $ft{'type'} += s/\bcuComplex\b/hipComplex/g; + $ft{'type'} += s/\bcuDoubleComplex\b/hipDoubleComplex/g; + $ft{'type'} += s/\bcuFloatComplex\b/hipFloatComplex/g; + $ft{'type'} += s/\bcublasDataType_t\b/hipblasDatatype_t/g; + $ft{'type'} += s/\bcublasDiagType_t\b/hipblasDiagType_t/g; + $ft{'type'} += s/\bcublasFillMode_t\b/hipblasFillMode_t/g; + $ft{'type'} += s/\bcublasGemmAlgo_t\b/hipblasGemmAlgo_t/g; + $ft{'type'} += s/\bcublasHandle_t\b/hipblasHandle_t/g; + $ft{'type'} += s/\bcublasOperation_t\b/hipblasOperation_t/g; + $ft{'type'} += s/\bcublasPointerMode_t\b/hipblasPointerMode_t/g; + $ft{'type'} += s/\bcublasSideMode_t\b/hipblasSideMode_t/g; + $ft{'type'} += s/\bcublasStatus\b/hipblasStatus_t/g; + $ft{'type'} += s/\bcublasStatus_t\b/hipblasStatus_t/g; + $ft{'type'} += s/\bcudaArray\b/hipArray/g; + $ft{'type'} += s/\bcudaArray_const_t\b/hipArray_const_t/g; + $ft{'type'} += s/\bcudaArray_t\b/hipArray_t/g; + $ft{'type'} += s/\bcudaChannelFormatDesc\b/hipChannelFormatDesc/g; + $ft{'type'} += s/\bcudaChannelFormatKind\b/hipChannelFormatKind/g; + $ft{'type'} += s/\bcudaComputeMode\b/hipComputeMode/g; + $ft{'type'} += s/\bcudaDataType\b/hipblasDatatype_t/g; + $ft{'type'} += s/\bcudaDataType_t\b/hipblasDatatype_t/g; + $ft{'type'} += s/\bcudaDeviceAttr\b/hipDeviceAttribute_t/g; + $ft{'type'} += s/\bcudaDeviceProp\b/hipDeviceProp_t/g; + $ft{'type'} += s/\bcudaError\b/hipError_t/g; + $ft{'type'} += s/\bcudaError_enum\b/hipError_t/g; + $ft{'type'} += s/\bcudaError_t\b/hipError_t/g; + $ft{'type'} += s/\bcudaEvent_t\b/hipEvent_t/g; + $ft{'type'} += s/\bcudaExtent\b/hipExtent/g; + $ft{'type'} += s/\bcudaFuncAttributes\b/hipFuncAttributes/g; + $ft{'type'} += s/\bcudaFuncCache\b/hipFuncCache_t/g; + $ft{'type'} += s/\bcudaIpcEventHandle_st\b/ihipIpcEventHandle_t/g; + $ft{'type'} += s/\bcudaIpcEventHandle_t\b/ihipIpcEventHandle_t/g; + $ft{'type'} += s/\bcudaIpcMemHandle_st\b/hipIpcMemHandle_st/g; + $ft{'type'} += s/\bcudaIpcMemHandle_t\b/hipIpcMemHandle_t/g; + $ft{'type'} += s/\bcudaLaunchParams\b/hipLaunchParams/g; + $ft{'type'} += s/\bcudaLimit\b/hipLimit_t/g; + $ft{'type'} += s/\bcudaMemcpy3DParms\b/hipMemcpy3DParms/g; + $ft{'type'} += s/\bcudaMemcpyKind\b/hipMemcpyKind/g; + $ft{'type'} += s/\bcudaMipmappedArray\b/hipMipmappedArray/g; + $ft{'type'} += s/\bcudaMipmappedArray_const_t\b/hipMipmappedArray_const_t/g; + $ft{'type'} += s/\bcudaMipmappedArray_t\b/hipMipmappedArray_t/g; + $ft{'type'} += s/\bcudaPitchedPtr\b/hipPitchedPtr/g; + $ft{'type'} += s/\bcudaPointerAttributes\b/hipPointerAttribute_t/g; + $ft{'type'} += s/\bcudaPos\b/hipPos/g; + $ft{'type'} += s/\bcudaResourceDesc\b/hipResourceDesc/g; + $ft{'type'} += s/\bcudaResourceType\b/hipResourceType/g; + $ft{'type'} += s/\bcudaResourceViewDesc\b/hipResourceViewDesc/g; + $ft{'type'} += s/\bcudaResourceViewFormat\b/hipResourceViewFormat/g; + $ft{'type'} += s/\bcudaSharedMemConfig\b/hipSharedMemConfig/g; + $ft{'type'} += s/\bcudaStreamCallback_t\b/hipStreamCallback_t/g; + $ft{'type'} += s/\bcudaStream_t\b/hipStream_t/g; + $ft{'type'} += s/\bcudaSurfaceBoundaryMode\b/hipSurfaceBoundaryMode/g; + $ft{'type'} += s/\bcudaSurfaceObject_t\b/hipSurfaceObject_t/g; + $ft{'type'} += s/\bcudaTextureAddressMode\b/hipTextureAddressMode/g; + $ft{'type'} += s/\bcudaTextureDesc\b/hipTextureDesc/g; + $ft{'type'} += s/\bcudaTextureFilterMode\b/hipTextureFilterMode/g; + $ft{'type'} += s/\bcudaTextureObject_t\b/hipTextureObject_t/g; + $ft{'type'} += s/\bcudaTextureReadMode\b/hipTextureReadMode/g; + $ft{'type'} += s/\bcudnnActivationDescriptor_t\b/hipdnnActivationDescriptor_t/g; + $ft{'type'} += s/\bcudnnActivationMode_t\b/hipdnnActivationMode_t/g; + $ft{'type'} += s/\bcudnnBatchNormMode_t\b/hipdnnBatchNormMode_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdDataAlgoPerf_t\b/hipdnnConvolutionBwdDataAlgoPerf_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdDataAlgo_t\b/hipdnnConvolutionBwdDataAlgo_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdDataPreference_t\b/hipdnnConvolutionBwdDataPreference_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdFilterAlgoPerf_t\b/hipdnnConvolutionBwdFilterAlgoPerf_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdFilterAlgo_t\b/hipdnnConvolutionBwdFilterAlgo_t/g; + $ft{'type'} += s/\bcudnnConvolutionBwdFilterPreference_t\b/hipdnnConvolutionBwdFilterPreference_t/g; + $ft{'type'} += s/\bcudnnConvolutionDescriptor_t\b/hipdnnConvolutionDescriptor_t/g; + $ft{'type'} += s/\bcudnnConvolutionFwdAlgoPerf_t\b/hipdnnConvolutionFwdAlgoPerf_t/g; + $ft{'type'} += s/\bcudnnConvolutionFwdAlgo_t\b/hipdnnConvolutionFwdAlgo_t/g; + $ft{'type'} += s/\bcudnnConvolutionFwdPreference_t\b/hipdnnConvolutionFwdPreference_t/g; + $ft{'type'} += s/\bcudnnConvolutionMode_t\b/hipdnnConvolutionMode_t/g; + $ft{'type'} += s/\bcudnnDataType_t\b/hipdnnDataType_t/g; + $ft{'type'} += s/\bcudnnDirectionMode_t\b/hipdnnDirectionMode_t/g; + $ft{'type'} += s/\bcudnnDropoutDescriptor_t\b/hipdnnDropoutDescriptor_t/g; + $ft{'type'} += s/\bcudnnFilterDescriptor_t\b/hipdnnFilterDescriptor_t/g; + $ft{'type'} += s/\bcudnnHandle_t\b/hipdnnHandle_t/g; + $ft{'type'} += s/\bcudnnIndicesType_t\b/hipdnnIndicesType_t/g; + $ft{'type'} += s/\bcudnnLRNDescriptor_t\b/hipdnnLRNDescriptor_t/g; + $ft{'type'} += s/\bcudnnLRNMode_t\b/hipdnnLRNMode_t/g; + $ft{'type'} += s/\bcudnnMathType_t\b/hipdnnMathType_t/g; + $ft{'type'} += s/\bcudnnNanPropagation_t\b/hipdnnNanPropagation_t/g; + $ft{'type'} += s/\bcudnnOpTensorDescriptor_t\b/hipdnnOpTensorDescriptor_t/g; + $ft{'type'} += s/\bcudnnOpTensorOp_t\b/hipdnnOpTensorOp_t/g; + $ft{'type'} += s/\bcudnnPersistentRNNPlan_t\b/hipdnnPersistentRNNPlan_t/g; + $ft{'type'} += s/\bcudnnPoolingDescriptor_t\b/hipdnnPoolingDescriptor_t/g; + $ft{'type'} += s/\bcudnnPoolingMode_t\b/hipdnnPoolingMode_t/g; + $ft{'type'} += s/\bcudnnRNNAlgo_t\b/hipdnnRNNAlgo_t/g; + $ft{'type'} += s/\bcudnnRNNBiasMode_t\b/hipdnnRNNBiasMode_t/g; + $ft{'type'} += s/\bcudnnRNNDescriptor_t\b/hipdnnRNNDescriptor_t/g; + $ft{'type'} += s/\bcudnnRNNInputMode_t\b/hipdnnRNNInputMode_t/g; + $ft{'type'} += s/\bcudnnRNNMode_t\b/hipdnnRNNMode_t/g; + $ft{'type'} += s/\bcudnnReduceTensorDescriptor_t\b/hipdnnReduceTensorDescriptor_t/g; + $ft{'type'} += s/\bcudnnReduceTensorIndices_t\b/hipdnnReduceTensorIndices_t/g; + $ft{'type'} += s/\bcudnnReduceTensorOp_t\b/hipdnnReduceTensorOp_t/g; + $ft{'type'} += s/\bcudnnSoftmaxAlgorithm_t\b/hipdnnSoftmaxAlgorithm_t/g; + $ft{'type'} += s/\bcudnnSoftmaxMode_t\b/hipdnnSoftmaxMode_t/g; + $ft{'type'} += s/\bcudnnStatus_t\b/hipdnnStatus_t/g; + $ft{'type'} += s/\bcudnnTensorDescriptor_t\b/hipdnnTensorDescriptor_t/g; + $ft{'type'} += s/\bcudnnTensorFormat_t\b/hipdnnTensorFormat_t/g; + $ft{'type'} += s/\bcufftComplex\b/hipfftComplex/g; + $ft{'type'} += s/\bcufftDoubleComplex\b/hipfftDoubleComplex/g; + $ft{'type'} += s/\bcufftDoubleReal\b/hipfftDoubleReal/g; + $ft{'type'} += s/\bcufftHandle\b/hipfftHandle/g; + $ft{'type'} += s/\bcufftReal\b/hipfftReal/g; + $ft{'type'} += s/\bcufftResult\b/hipfftResult/g; + $ft{'type'} += s/\bcufftResult_t\b/hipfftResult_t/g; + $ft{'type'} += s/\bcufftType\b/hipfftType/g; + $ft{'type'} += s/\bcufftType_t\b/hipfftType_t/g; + $ft{'type'} += s/\bcurandDirectionVectors32_t\b/hiprandDirectionVectors32_t/g; + $ft{'type'} += s/\bcurandDiscreteDistribution_st\b/hiprandDiscreteDistribution_st/g; + $ft{'type'} += s/\bcurandDiscreteDistribution_t\b/hiprandDiscreteDistribution_t/g; + $ft{'type'} += s/\bcurandGenerator_st\b/hiprandGenerator_st/g; + $ft{'type'} += s/\bcurandGenerator_t\b/hiprandGenerator_t/g; + $ft{'type'} += s/\bcurandRngType\b/hiprandRngType_t/g; + $ft{'type'} += s/\bcurandRngType_t\b/hiprandRngType_t/g; + $ft{'type'} += s/\bcurandState\b/hiprandState/g; + $ft{'type'} += s/\bcurandStateMRG32k3a\b/hiprandStateMRG32k3a/g; + $ft{'type'} += s/\bcurandStateMRG32k3a_t\b/hiprandStateMRG32k3a_t/g; + $ft{'type'} += s/\bcurandStateMtgp32\b/hiprandStateMtgp32/g; + $ft{'type'} += s/\bcurandStateMtgp32_t\b/hiprandStateMtgp32_t/g; + $ft{'type'} += s/\bcurandStatePhilox4_32_10\b/hiprandStatePhilox4_32_10/g; + $ft{'type'} += s/\bcurandStatePhilox4_32_10_t\b/hiprandStatePhilox4_32_10_t/g; + $ft{'type'} += s/\bcurandStateSobol32\b/hiprandStateSobol32/g; + $ft{'type'} += s/\bcurandStateSobol32_t\b/hiprandStateSobol32_t/g; + $ft{'type'} += s/\bcurandStateXORWOW\b/hiprandStateXORWOW/g; + $ft{'type'} += s/\bcurandStateXORWOW_t\b/hiprandStateXORWOW_t/g; + $ft{'type'} += s/\bcurandState_t\b/hiprandState_t/g; + $ft{'type'} += s/\bcurandStatus\b/hiprandStatus_t/g; + $ft{'type'} += s/\bcurandStatus_t\b/hiprandStatus_t/g; + $ft{'type'} += s/\bcusparseAction_t\b/hipsparseAction_t/g; + $ft{'type'} += s/\bcusparseDiagType_t\b/hipsparseDiagType_t/g; + $ft{'type'} += s/\bcusparseFillMode_t\b/hipsparseFillMode_t/g; + $ft{'type'} += s/\bcusparseHandle_t\b/hipsparseHandle_t/g; + $ft{'type'} += s/\bcusparseHybMat_t\b/hipsparseHybMat_t/g; + $ft{'type'} += s/\bcusparseHybPartition_t\b/hipsparseHybPartition_t/g; + $ft{'type'} += s/\bcusparseIndexBase_t\b/hipsparseIndexBase_t/g; + $ft{'type'} += s/\bcusparseMatDescr_t\b/hipsparseMatDescr_t/g; + $ft{'type'} += s/\bcusparseMatrixType_t\b/hipsparseMatrixType_t/g; + $ft{'type'} += s/\bcusparseOperation_t\b/hipsparseOperation_t/g; + $ft{'type'} += s/\bcusparsePointerMode_t\b/hipsparsePointerMode_t/g; + $ft{'type'} += s/\bcusparseSolvePolicy_t\b/hipsparseSolvePolicy_t/g; + $ft{'type'} += s/\bcusparseStatus_t\b/hipsparseStatus_t/g; + $ft{'type'} += s/\bwarpSize\b/hipWarpSize/g; + $ft{'numeric_literal'} += s/\bCUBLAS_DIAG_NON_UNIT\b/HIPBLAS_DIAG_NON_UNIT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_DIAG_UNIT\b/HIPBLAS_DIAG_UNIT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_FULL\b/HIPBLAS_FILL_MODE_FULL/g; + $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_LOWER\b/HIPBLAS_FILL_MODE_LOWER/g; + $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_UPPER\b/HIPBLAS_FILL_MODE_UPPER/g; + $ft{'numeric_literal'} += s/\bCUBLAS_GEMM_DEFAULT\b/HIPBLAS_GEMM_DEFAULT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_GEMM_DFALT\b/HIPBLAS_GEMM_DEFAULT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_OP_C\b/HIPBLAS_OP_C/g; + $ft{'numeric_literal'} += s/\bCUBLAS_OP_HERMITAN\b/HIPBLAS_OP_C/g; + $ft{'numeric_literal'} += s/\bCUBLAS_OP_N\b/HIPBLAS_OP_N/g; + $ft{'numeric_literal'} += s/\bCUBLAS_OP_T\b/HIPBLAS_OP_T/g; + $ft{'numeric_literal'} += s/\bCUBLAS_POINTER_MODE_DEVICE\b/HIPBLAS_POINTER_MODE_DEVICE/g; + $ft{'numeric_literal'} += s/\bCUBLAS_POINTER_MODE_HOST\b/HIPBLAS_POINTER_MODE_HOST/g; + $ft{'numeric_literal'} += s/\bCUBLAS_SIDE_LEFT\b/HIPBLAS_SIDE_LEFT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_SIDE_RIGHT\b/HIPBLAS_SIDE_RIGHT/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_ALLOC_FAILED\b/HIPBLAS_STATUS_ALLOC_FAILED/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_ARCH_MISMATCH\b/HIPBLAS_STATUS_ARCH_MISMATCH/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_EXECUTION_FAILED\b/HIPBLAS_STATUS_EXECUTION_FAILED/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_INTERNAL_ERROR\b/HIPBLAS_STATUS_INTERNAL_ERROR/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_INVALID_VALUE\b/HIPBLAS_STATUS_INVALID_VALUE/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_MAPPING_ERROR\b/HIPBLAS_STATUS_MAPPING_ERROR/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_NOT_INITIALIZED\b/HIPBLAS_STATUS_NOT_INITIALIZED/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_NOT_SUPPORTED\b/HIPBLAS_STATUS_NOT_SUPPORTED/g; + $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_SUCCESS\b/HIPBLAS_STATUS_SUCCESS/g; + $ft{'numeric_literal'} += s/\bCUDA_C_16F\b/HIPBLAS_C_16F/g; + $ft{'numeric_literal'} += s/\bCUDA_C_32F\b/HIPBLAS_C_32F/g; + $ft{'numeric_literal'} += s/\bCUDA_C_64F\b/HIPBLAS_C_64F/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ALREADY_ACQUIRED\b/hipErrorAlreadyAcquired/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ALREADY_MAPPED\b/hipErrorAlreadyMapped/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ARRAY_IS_MAPPED\b/hipErrorArrayIsMapped/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ASSERT\b/hipErrorAssert/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_CONTEXT_ALREADY_CURRENT\b/hipErrorContextAlreadyCurrent/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_CONTEXT_ALREADY_IN_USE\b/hipErrorContextAlreadyInUse/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_DEINITIALIZED\b/hipErrorDeinitialized/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ECC_UNCORRECTABLE\b/hipErrorECCNotCorrectable/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_FILE_NOT_FOUND\b/hipErrorFileNotFound/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED\b/hipErrorHostMemoryAlreadyRegistered/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_HOST_MEMORY_NOT_REGISTERED\b/hipErrorHostMemoryNotRegistered/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_ILLEGAL_ADDRESS\b/hipErrorIllegalAddress/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_CONTEXT\b/hipErrorInvalidContext/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_DEVICE\b/hipErrorInvalidDevice/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_GRAPHICS_CONTEXT\b/hipErrorInvalidGraphicsContext/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_HANDLE\b/hipErrorInvalidResourceHandle/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_IMAGE\b/hipErrorInvalidImage/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_PTX\b/hipErrorInvalidKernelFile/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_SOURCE\b/hipErrorInvalidSource/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_VALUE\b/hipErrorInvalidValue/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_FAILED\b/hipErrorLaunchFailure/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_OUT_OF_RESOURCES\b/hipErrorLaunchOutOfResources/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_TIMEOUT\b/hipErrorLaunchTimeOut/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_MAP_FAILED\b/hipErrorMapFailed/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_FOUND\b/hipErrorNotFound/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_INITIALIZED\b/hipErrorNotInitialized/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED\b/hipErrorNotMapped/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED_AS_ARRAY\b/hipErrorNotMappedAsArray/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED_AS_POINTER\b/hipErrorNotMappedAsPointer/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_READY\b/hipErrorNotReady/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NO_BINARY_FOR_GPU\b/hipErrorNoBinaryForGpu/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_NO_DEVICE\b/hipErrorNoDevice/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_OPERATING_SYSTEM\b/hipErrorOperatingSystem/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_OUT_OF_MEMORY\b/hipErrorMemoryAllocation/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED\b/hipErrorPeerAccessAlreadyEnabled/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_NOT_ENABLED\b/hipErrorPeerAccessNotEnabled/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_UNSUPPORTED\b/hipErrorPeerAccessUnsupported/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_ALREADY_STARTED\b/hipErrorProfilerAlreadyStarted/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_ALREADY_STOPPED\b/hipErrorProfilerAlreadyStopped/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_DISABLED\b/hipErrorProfilerDisabled/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_NOT_INITIALIZED\b/hipErrorProfilerNotInitialized/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_SHARED_OBJECT_INIT_FAILED\b/hipErrorSharedObjectInitFailed/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND\b/hipErrorSharedObjectSymbolNotFound/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNKNOWN\b/hipErrorUnknown/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNMAP_FAILED\b/hipErrorUnmapFailed/g; + $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNSUPPORTED_LIMIT\b/hipErrorUnsupportedLimit/g; + $ft{'numeric_literal'} += s/\bCUDA_R_16F\b/HIPBLAS_R_16F/g; + $ft{'numeric_literal'} += s/\bCUDA_R_32F\b/HIPBLAS_R_32F/g; + $ft{'numeric_literal'} += s/\bCUDA_R_64F\b/HIPBLAS_R_64F/g; + $ft{'numeric_literal'} += s/\bCUDA_SUCCESS\b/hipSuccess/g; + $ft{'numeric_literal'} += s/\bCUDNN_16BIT_INDICES\b/HIPDNN_16BIT_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_32BIT_INDICES\b/HIPDNN_32BIT_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_64BIT_INDICES\b/HIPDNN_64BIT_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_8BIT_INDICES\b/HIPDNN_8BIT_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_CLIPPED_RELU\b/HIPDNN_ACTIVATION_CLIPPED_RELU/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_ELU\b/HIPDNN_ACTIVATION_ELU/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_IDENTITY\b/HIPDNN_ACTIVATION_PATHTRU/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_RELU\b/HIPDNN_ACTIVATION_RELU/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_SIGMOID\b/HIPDNN_ACTIVATION_SIGMOID/g; + $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_TANH\b/HIPDNN_ACTIVATION_TANH/g; + $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_PER_ACTIVATION\b/HIPDNN_BATCHNORM_PER_ACTIVATION/g; + $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_SPATIAL\b/HIPDNN_BATCHNORM_SPATIAL/g; + $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_SPATIAL_PERSISTENT\b/HIPDNN_BATCHNORM_SPATIAL_PERSISTENT/g; + $ft{'numeric_literal'} += s/\bCUDNN_BIDIRECTIONAL\b/HIPDNN_BIDIRECTIONAL/g; + $ft{'numeric_literal'} += s/\bCUDNN_BN_MIN_EPSILON\b/HIPDNN_BN_MIN_EPSILON/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION\b/HIPDNN_CONVOLUTION/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_0\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_0/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_1\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_1/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_TRANSPOSE_GEMM/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_FFT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_BWD_DATA_NO_WORKSPACE/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_0\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_0/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_1\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_1/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_3\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_3/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT_TILING/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD_NONFUSED/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_BWD_FILTER_NO_WORKSPACE/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_BWD_FILTER_PREFER_FASTEST/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_COUNT\b/HIPDNN_CONVOLUTION_FWD_ALGO_COUNT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_DIRECT\b/HIPDNN_CONVOLUTION_FWD_ALGO_DIRECT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_FFT\b/HIPDNN_CONVOLUTION_FWD_ALGO_FFT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_FWD_ALGO_FFT_TILING/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_GEMM/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_GEMM/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_PRECOMP_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_PRECOMP_GEMM/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_FWD_ALGO_WINOGRAD/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_FWD_ALGO_WINOGRAD_NONFUSED/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_FWD_NO_WORKSPACE/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_FWD_PREFER_FASTEST/g; + $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT/g; + $ft{'numeric_literal'} += s/\bCUDNN_CROSS_CORRELATION\b/HIPDNN_CROSS_CORRELATION/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_DOUBLE\b/HIPDNN_DATA_DOUBLE/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_FLOAT\b/HIPDNN_DATA_FLOAT/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_HALF\b/HIPDNN_DATA_HALF/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT32\b/HIPDNN_DATA_INT32/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT8\b/HIPDNN_DATA_INT8/g; + $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT8x4\b/HIPDNN_DATA_INT8x4/g; + $ft{'numeric_literal'} += s/\bCUDNN_DEFAULT_MATH\b/HIPDNN_DEFAULT_MATH/g; + $ft{'numeric_literal'} += s/\bCUDNN_GRU\b/HIPDNN_GRU/g; + $ft{'numeric_literal'} += s/\bCUDNN_LINEAR_INPUT\b/HIPDNN_LINEAR_INPUT/g; + $ft{'numeric_literal'} += s/\bCUDNN_LRN_CROSS_CHANNEL_DIM1\b/HIPDNN_LRN_CROSS_CHANNEL/g; + $ft{'numeric_literal'} += s/\bCUDNN_LSTM\b/HIPDNN_LSTM/g; + $ft{'numeric_literal'} += s/\bCUDNN_NOT_PROPAGATE_NAN\b/HIPDNN_NOT_PROPAGATE_NAN/g; + $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_ADD\b/HIPDNN_OP_TENSOR_ADD/g; + $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MAX\b/HIPDNN_OP_TENSOR_MAX/g; + $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MIN\b/HIPDNN_OP_TENSOR_MIN/g; + $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MUL\b/HIPDNN_OP_TENSOR_MUL/g; + $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_SQRT\b/HIPDNN_OP_TENSOR_SQRT/g; + $ft{'numeric_literal'} += s/\bCUDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING\b/HIPDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING/g; + $ft{'numeric_literal'} += s/\bCUDNN_POOLING_AVERAGE_COUNT_INCLUDE_PADDING\b/HIPDNN_POOLING_AVERAGE_COUNT_INCLUDE_PADDING/g; + $ft{'numeric_literal'} += s/\bCUDNN_POOLING_MAX\b/HIPDNN_POOLING_MAX/g; + $ft{'numeric_literal'} += s/\bCUDNN_POOLING_MAX_DETERMINISTIC\b/HIPDNN_POOLING_MAX_DETERMINISTIC/g; + $ft{'numeric_literal'} += s/\bCUDNN_PROPAGATE_NAN\b/HIPDNN_PROPAGATE_NAN/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_ADD\b/HIPDNN_REDUCE_TENSOR_ADD/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_AMAX\b/HIPDNN_REDUCE_TENSOR_AMAX/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_AVG\b/HIPDNN_REDUCE_TENSOR_AVG/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_FLATTENED_INDICES\b/HIPDNN_REDUCE_TENSOR_FLATTENED_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MAX\b/HIPDNN_REDUCE_TENSOR_MAX/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MIN\b/HIPDNN_REDUCE_TENSOR_MIN/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MUL\b/HIPDNN_REDUCE_TENSOR_MUL/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MUL_NO_ZEROS\b/HIPDNN_REDUCE_TENSOR_MUL_NO_ZEROS/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NORM1\b/HIPDNN_REDUCE_TENSOR_NORM1/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NORM2\b/HIPDNN_REDUCE_TENSOR_NORM2/g; + $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NO_INDICES\b/HIPDNN_REDUCE_TENSOR_NO_INDICES/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_PERSIST_DYNAMIC\b/HIPDNN_RNN_ALGO_PERSIST_DYNAMIC/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_PERSIST_STATIC\b/HIPDNN_RNN_ALGO_PERSIST_STATIC/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_STANDARD\b/HIPDNN_RNN_ALGO_STANDARD/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_DOUBLE_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_NO_BIAS\b/HIPDNN_RNN_NO_BIAS/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_RELU\b/HIPDNN_RNN_RELU/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_SINGLE_INP_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_SINGLE_REC_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; + $ft{'numeric_literal'} += s/\bCUDNN_RNN_TANH\b/HIPDNN_RNN_TANH/g; + $ft{'numeric_literal'} += s/\bCUDNN_SKIP_INPUT\b/HIPDNN_SKIP_INPUT/g; + $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_ACCURATE\b/HIPDNN_SOFTMAX_ACCURATE/g; + $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_FAST\b/HIPDNN_SOFTMAX_FAST/g; + $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_LOG\b/HIPDNN_SOFTMAX_LOG/g; + $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_MODE_CHANNEL\b/HIPDNN_SOFTMAX_MODE_CHANNEL/g; + $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_MODE_INSTANCE\b/HIPDNN_SOFTMAX_MODE_INSTANCE/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_ALLOC_FAILED\b/HIPDNN_STATUS_ALLOC_FAILED/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_ARCH_MISMATCH\b/HIPDNN_STATUS_ARCH_MISMATCH/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_BAD_PARAM\b/HIPDNN_STATUS_BAD_PARAM/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_EXECUTION_FAILED\b/HIPDNN_STATUS_EXECUTION_FAILED/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_INTERNAL_ERROR\b/HIPDNN_STATUS_INTERNAL_ERROR/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_INVALID_VALUE\b/HIPDNN_STATUS_INVALID_VALUE/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_LICENSE_ERROR\b/HIPDNN_STATUS_LICENSE_ERROR/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_MAPPING_ERROR\b/HIPDNN_STATUS_MAPPING_ERROR/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_NOT_INITIALIZED\b/HIPDNN_STATUS_NOT_INITIALIZED/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_NOT_SUPPORTED\b/HIPDNN_STATUS_NOT_SUPPORTED/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING\b/HIPDNN_STATUS_RUNTIME_PREREQUISITE_MISSING/g; + $ft{'numeric_literal'} += s/\bCUDNN_STATUS_SUCCESS\b/HIPDNN_STATUS_SUCCESS/g; + $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NCHW\b/HIPDNN_TENSOR_NCHW/g; + $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NCHW_VECT_C\b/HIPDNN_TENSOR_NCHW_VECT_C/g; + $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NHWC\b/HIPDNN_TENSOR_NHWC/g; + $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_OP_MATH\b/HIPDNN_TENSOR_OP_MATH/g; + $ft{'numeric_literal'} += s/\bCUDNN_UNIDIRECTIONAL\b/HIPDNN_UNIDIRECTIONAL/g; + $ft{'numeric_literal'} += s/\bCUDNN_VERSION\b/HIPDNN_VERSION/g; + $ft{'numeric_literal'} += s/\bCUFFT_ALLOC_FAILED\b/HIPFFT_ALLOC_FAILED/g; + $ft{'numeric_literal'} += s/\bCUFFT_C2C\b/HIPFFT_C2C/g; + $ft{'numeric_literal'} += s/\bCUFFT_C2R\b/HIPFFT_C2R/g; + $ft{'numeric_literal'} += s/\bCUFFT_D2Z\b/HIPFFT_D2Z/g; + $ft{'numeric_literal'} += s/\bCUFFT_EXEC_FAILED\b/HIPFFT_EXEC_FAILED/g; + $ft{'numeric_literal'} += s/\bCUFFT_FORWARD\b/HIPFFT_FORWARD/g; + $ft{'numeric_literal'} += s/\bCUFFT_INCOMPLETE_PARAMETER_LIST\b/HIPFFT_INCOMPLETE_PARAMETER_LIST/g; + $ft{'numeric_literal'} += s/\bCUFFT_INTERNAL_ERROR\b/HIPFFT_INTERNAL_ERROR/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVALID_DEVICE\b/HIPFFT_INVALID_DEVICE/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVALID_PLAN\b/HIPFFT_INVALID_PLAN/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVALID_SIZE\b/HIPFFT_INVALID_SIZE/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVALID_TYPE\b/HIPFFT_INVALID_TYPE/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVALID_VALUE\b/HIPFFT_INVALID_VALUE/g; + $ft{'numeric_literal'} += s/\bCUFFT_INVERSE\b/HIPFFT_BACKWARD/g; + $ft{'numeric_literal'} += s/\bCUFFT_NOT_IMPLEMENTED\b/HIPFFT_NOT_IMPLEMENTED/g; + $ft{'numeric_literal'} += s/\bCUFFT_NOT_SUPPORTED\b/HIPFFT_NOT_SUPPORTED/g; + $ft{'numeric_literal'} += s/\bCUFFT_NO_WORKSPACE\b/HIPFFT_NO_WORKSPACE/g; + $ft{'numeric_literal'} += s/\bCUFFT_PARSE_ERROR\b/HIPFFT_PARSE_ERROR/g; + $ft{'numeric_literal'} += s/\bCUFFT_R2C\b/HIPFFT_R2C/g; + $ft{'numeric_literal'} += s/\bCUFFT_SETUP_FAILED\b/HIPFFT_SETUP_FAILED/g; + $ft{'numeric_literal'} += s/\bCUFFT_SUCCESS\b/HIPFFT_SUCCESS/g; + $ft{'numeric_literal'} += s/\bCUFFT_UNALIGNED_DATA\b/HIPFFT_UNALIGNED_DATA/g; + $ft{'numeric_literal'} += s/\bCUFFT_Z2D\b/HIPFFT_Z2D/g; + $ft{'numeric_literal'} += s/\bCUFFT_Z2Z\b/HIPFFT_Z2Z/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_DEFAULT\b/HIPRAND_RNG_PSEUDO_DEFAULT/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MRG32K3A\b/HIPRAND_RNG_PSEUDO_MRG32K3A/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MT19937\b/HIPRAND_RNG_PSEUDO_MT19937/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MTGP32\b/HIPRAND_RNG_PSEUDO_MTGP32/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_PHILOX4_32_10\b/HIPRAND_RNG_PSEUDO_PHILOX4_32_10/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_XORWOW\b/HIPRAND_RNG_PSEUDO_XORWOW/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_DEFAULT\b/HIPRAND_RNG_QUASI_DEFAULT/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SCRAMBLED_SOBOL32\b/HIPRAND_RNG_QUASI_SCRAMBLED_SOBOL32/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SCRAMBLED_SOBOL64\b/HIPRAND_RNG_QUASI_SCRAMBLED_SOBOL64/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SOBOL32\b/HIPRAND_RNG_QUASI_SOBOL32/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SOBOL64\b/HIPRAND_RNG_QUASI_SOBOL64/g; + $ft{'numeric_literal'} += s/\bCURAND_RNG_TEST\b/HIPRAND_RNG_TEST/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_ALLOCATION_FAILED\b/HIPRAND_STATUS_ALLOCATION_FAILED/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_ARCH_MISMATCH\b/HIPRAND_STATUS_ARCH_MISMATCH/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_DOUBLE_PRECISION_REQUIRED\b/HIPRAND_STATUS_DOUBLE_PRECISION_REQUIRED/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_INITIALIZATION_FAILED\b/HIPRAND_STATUS_INITIALIZATION_FAILED/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_INTERNAL_ERROR\b/HIPRAND_STATUS_INTERNAL_ERROR/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_LAUNCH_FAILURE\b/HIPRAND_STATUS_LAUNCH_FAILURE/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_LENGTH_NOT_MULTIPLE\b/HIPRAND_STATUS_LENGTH_NOT_MULTIPLE/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_NOT_INITIALIZED\b/HIPRAND_STATUS_NOT_INITIALIZED/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_OUT_OF_RANGE\b/HIPRAND_STATUS_OUT_OF_RANGE/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_PREEXISTING_FAILURE\b/HIPRAND_STATUS_PREEXISTING_FAILURE/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_SUCCESS\b/HIPRAND_STATUS_SUCCESS/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_TYPE_ERROR\b/HIPRAND_STATUS_TYPE_ERROR/g; + $ft{'numeric_literal'} += s/\bCURAND_STATUS_VERSION_MISMATCH\b/HIPRAND_STATUS_VERSION_MISMATCH/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_ACTION_NUMERIC\b/HIPSPARSE_ACTION_NUMERIC/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_ACTION_SYMBOLIC\b/HIPSPARSE_ACTION_SYMBOLIC/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_DIAG_TYPE_NON_UNIT\b/HIPSPARSE_DIAG_TYPE_NON_UNIT/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_DIAG_TYPE_UNIT\b/HIPSPARSE_DIAG_TYPE_UNIT/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_FILL_MODE_LOWER\b/HIPSPARSE_FILL_MODE_LOWER/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_FILL_MODE_UPPER\b/HIPSPARSE_FILL_MODE_UPPER/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_AUTO\b/HIPSPARSE_HYB_PARTITION_AUTO/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_MAX\b/HIPSPARSE_HYB_PARTITION_MAX/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_USER\b/HIPSPARSE_HYB_PARTITION_USER/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_INDEX_BASE_ONE\b/HIPSPARSE_INDEX_BASE_ONE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_INDEX_BASE_ZERO\b/HIPSPARSE_INDEX_BASE_ZERO/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_GENERAL\b/HIPSPARSE_MATRIX_TYPE_GENERAL/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_HERMITIAN\b/HIPSPARSE_MATRIX_TYPE_HERMITIAN/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_SYMMETRIC\b/HIPSPARSE_MATRIX_TYPE_SYMMETRIC/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_TRIANGULAR\b/HIPSPARSE_MATRIX_TYPE_TRIANGULAR/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_CONJUGATE_TRANSPOSE\b/HIPSPARSE_OPERATION_CONJUGATE_TRANSPOSE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_NON_TRANSPOSE\b/HIPSPARSE_OPERATION_NON_TRANSPOSE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_TRANSPOSE\b/HIPSPARSE_OPERATION_TRANSPOSE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_POINTER_MODE_DEVICE\b/HIPSPARSE_POINTER_MODE_DEVICE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_POINTER_MODE_HOST\b/HIPSPARSE_POINTER_MODE_HOST/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_SOLVE_POLICY_NO_LEVEL\b/HIPSPARSE_SOLVE_POLICY_NO_LEVEL/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_SOLVE_POLICY_USE_LEVEL\b/HIPSPARSE_SOLVE_POLICY_USE_LEVEL/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ALLOC_FAILED\b/HIPSPARSE_STATUS_ALLOC_FAILED/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ARCH_MISMATCH\b/HIPSPARSE_STATUS_ARCH_MISMATCH/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_EXECUTION_FAILED\b/HIPSPARSE_STATUS_EXECUTION_FAILED/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_INTERNAL_ERROR\b/HIPSPARSE_STATUS_INTERNAL_ERROR/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_INVALID_VALUE\b/HIPSPARSE_STATUS_INVALID_VALUE/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_MAPPING_ERROR\b/HIPSPARSE_STATUS_MAPPING_ERROR/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED\b/HIPSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_NOT_INITIALIZED\b/HIPSPARSE_STATUS_NOT_INITIALIZED/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_SUCCESS\b/HIPSPARSE_STATUS_SUCCESS/g; + $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ZERO_PIVOT\b/HIPSPARSE_STATUS_ZERO_PIVOT/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_FLOAT\b/HIP_AD_FORMAT_FLOAT/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_HALF\b/HIP_AD_FORMAT_HALF/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT16\b/HIP_AD_FORMAT_SIGNED_INT16/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT32\b/HIP_AD_FORMAT_SIGNED_INT32/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT8\b/HIP_AD_FORMAT_SIGNED_INT8/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT16\b/HIP_AD_FORMAT_UNSIGNED_INT16/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT32\b/HIP_AD_FORMAT_UNSIGNED_INT32/g; + $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT8\b/HIP_AD_FORMAT_UNSIGNED_INT8/g; + $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_DEFAULT\b/hipComputeModeDefault/g; + $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_EXCLUSIVE\b/hipComputeModeExclusive/g; + $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_EXCLUSIVE_PROCESS\b/hipComputeModeExclusiveProcess/g; + $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_PROHIBITED\b/hipComputeModeProhibited/g; + $ft{'numeric_literal'} += s/\bCU_CTX_BLOCKING_SYNC\b/hipDeviceScheduleBlockingSync/g; + $ft{'numeric_literal'} += s/\bCU_CTX_LMEM_RESIZE_TO_MAX\b/hipDeviceLmemResizeToMax/g; + $ft{'numeric_literal'} += s/\bCU_CTX_MAP_HOST\b/hipDeviceMapHost/g; + $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_AUTO\b/hipDeviceScheduleAuto/g; + $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_BLOCKING_SYNC\b/hipDeviceScheduleBlockingSync/g; + $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_MASK\b/hipDeviceScheduleMask/g; + $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_SPIN\b/hipDeviceScheduleSpin/g; + $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_YIELD\b/hipDeviceScheduleYield/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY\b/hipDeviceAttributeCanMapHostMemory/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CLOCK_RATE\b/hipDeviceAttributeClockRate/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR\b/hipDeviceAttributeComputeCapabilityMajor/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR\b/hipDeviceAttributeComputeCapabilityMinor/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_MODE\b/hipDeviceAttributeComputeMode/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS\b/hipDeviceAttributeConcurrentKernels/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH\b/hipDeviceAttributeCooperativeLaunch/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH\b/hipDeviceAttributeCooperativeMultiDeviceLaunch/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_ECC_ENABLED\b/hipDeviceAttributeEccEnabled/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH\b/hipDeviceAttributeMemoryBusWidth/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_INTEGRATED\b/hipDeviceAttributeIntegrated/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT\b/hipDeviceAttributeKernelExecTimeout/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE\b/hipDeviceAttributeL2CacheSize/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH\b/hipDeviceAttributeMaxTexture1DWidth/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT\b/hipDeviceAttributeMaxTexture2DHeight/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH\b/hipDeviceAttributeMaxTexture2DWidth/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH\b/hipDeviceAttributeMaxTexture3DDepth/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT\b/hipDeviceAttributeMaxTexture3DHeight/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH\b/hipDeviceAttributeMaxTexture3DWidth/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X\b/hipDeviceAttributeMaxBlockDimX/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y\b/hipDeviceAttributeMaxBlockDimY/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z\b/hipDeviceAttributeMaxBlockDimZ/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X\b/hipDeviceAttributeMaxGridDimX/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y\b/hipDeviceAttributeMaxGridDimY/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z\b/hipDeviceAttributeMaxGridDimZ/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_PITCH\b/hipDeviceAttributeMaxPitch/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK\b/hipDeviceAttributeMaxRegistersPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR\b/hipDeviceAttributeMaxSharedMemoryPerMultiprocessor/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK\b/hipDeviceAttributeMaxThreadsPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR\b/hipDeviceAttributeMaxThreadsPerMultiProcessor/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE\b/hipDeviceAttributeMemoryClockRate/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT\b/hipDeviceAttributeMultiprocessorCount/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD\b/hipDeviceAttributeIsMultiGpuBoard/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_PCI_BUS_ID\b/hipDeviceAttributePciBusId/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID\b/hipDeviceAttributePciDeviceId/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK\b/hipDeviceAttributeMaxRegistersPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT\b/hipDeviceAttributeTextureAlignment/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY\b/hipDeviceAttributeTotalConstantMemory/g; + $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_WARP_SIZE\b/hipDeviceAttributeWarpSize/g; + $ft{'numeric_literal'} += s/\bCU_EVENT_BLOCKING_SYNC\b/hipEventBlockingSync/g; + $ft{'numeric_literal'} += s/\bCU_EVENT_DEFAULT\b/hipEventDefault/g; + $ft{'numeric_literal'} += s/\bCU_EVENT_DISABLE_TIMING\b/hipEventDisableTiming/g; + $ft{'numeric_literal'} += s/\bCU_EVENT_INTERPROCESS\b/hipEventInterprocess/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_BINARY_VERSION\b/HIP_FUNC_ATTRIBUTE_BINARY_VERSION/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_CACHE_MODE_CA\b/HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX\b/HIP_FUNC_ATTRIBUTE_MAX/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK\b/HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_NUM_REGS\b/HIP_FUNC_ATTRIBUTE_NUM_REGS/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT\b/HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_PTX_VERSION\b/HIP_FUNC_ATTRIBUTE_PTX_VERSION/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_EQUAL\b/hipFuncCachePreferEqual/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_L1\b/hipFuncCachePreferL1/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_NONE\b/hipFuncCachePreferNone/g; + $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_SHARED\b/hipFuncCachePreferShared/g; + $ft{'numeric_literal'} += s/\bCU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS\b/hipIpcMemLazyEnablePeerAccess/g; + $ft{'numeric_literal'} += s/\bCU_JIT_CACHE_MODE\b/hipJitOptionCacheMode/g; + $ft{'numeric_literal'} += s/\bCU_JIT_ERROR_LOG_BUFFER\b/hipJitOptionErrorLogBuffer/g; + $ft{'numeric_literal'} += s/\bCU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES\b/hipJitOptionErrorLogBufferSizeBytes/g; + $ft{'numeric_literal'} += s/\bCU_JIT_FALLBACK_STRATEGY\b/hipJitOptionFallbackStrategy/g; + $ft{'numeric_literal'} += s/\bCU_JIT_FAST_COMPILE\b/hipJitOptionFastCompile/g; + $ft{'numeric_literal'} += s/\bCU_JIT_GENERATE_DEBUG_INFO\b/hipJitOptionGenerateDebugInfo/g; + $ft{'numeric_literal'} += s/\bCU_JIT_GENERATE_LINE_INFO\b/hipJitOptionGenerateLineInfo/g; + $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_ADDRESSES\b/hipJitGlobalSymbolAddresses/g; + $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_COUNT\b/hipJitGlobalSymbolCount/g; + $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_NAMES\b/hipJitGlobalSymbolNames/g; + $ft{'numeric_literal'} += s/\bCU_JIT_INFO_LOG_BUFFER\b/hipJitOptionInfoLogBuffer/g; + $ft{'numeric_literal'} += s/\bCU_JIT_INFO_LOG_BUFFER_SIZE_BYTES\b/hipJitOptionInfoLogBufferSizeBytes/g; + $ft{'numeric_literal'} += s/\bCU_JIT_LOG_VERBOSE\b/hipJitOptionLogVerbose/g; + $ft{'numeric_literal'} += s/\bCU_JIT_MAX_REGISTERS\b/hipJitOptionMaxRegisters/g; + $ft{'numeric_literal'} += s/\bCU_JIT_NEW_SM3X_OPT\b/hipJitOptionSm3xOpt/g; + $ft{'numeric_literal'} += s/\bCU_JIT_NUM_OPTIONS\b/hipJitOptionNumOptions/g; + $ft{'numeric_literal'} += s/\bCU_JIT_OPTIMIZATION_LEVEL\b/hipJitOptionOptimizationLevel/g; + $ft{'numeric_literal'} += s/\bCU_JIT_TARGET\b/hipJitOptionTarget/g; + $ft{'numeric_literal'} += s/\bCU_JIT_TARGET_FROM_CUCONTEXT\b/hipJitOptionTargetFromContext/g; + $ft{'numeric_literal'} += s/\bCU_JIT_THREADS_PER_BLOCK\b/hipJitOptionThreadsPerBlock/g; + $ft{'numeric_literal'} += s/\bCU_JIT_WALL_TIME\b/hipJitOptionWallTime/g; + $ft{'numeric_literal'} += s/\bCU_LIMIT_MALLOC_HEAP_SIZE\b/hipLimitMallocHeapSize/g; + $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_ARRAY\b/hipMemoryTypeArray/g; + $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_DEVICE\b/hipMemoryTypeDevice/g; + $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_HOST\b/hipMemoryTypeHost/g; + $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_UNIFIED\b/hipMemoryTypeUnified/g; + $ft{'numeric_literal'} += s/\bCU_MEM_ATTACH_GLOBAL\b/hipMemAttachGlobal/g; + $ft{'numeric_literal'} += s/\bCU_MEM_ATTACH_HOST\b/hipMemAttachHost/g; + $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_ARRAY\b/hipResourceTypeArray/g; + $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_LINEAR\b/hipResourceTypeLinear/g; + $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_MIPMAPPED_ARRAY\b/hipResourceTypeMipmappedArray/g; + $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_PITCH2D\b/hipResourceTypePitch2D/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_1X16\b/hipResViewFormatHalf1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_1X32\b/hipResViewFormatFloat1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_2X16\b/hipResViewFormatHalf2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_2X32\b/hipResViewFormatFloat2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_4X16\b/hipResViewFormatHalf4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_4X32\b/hipResViewFormatFloat4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_NONE\b/hipResViewFormatNone/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC4\b/hipResViewFormatSignedBlockCompressed4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC5\b/hipResViewFormatSignedBlockCompressed5/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC6H\b/hipResViewFormatSignedBlockCompressed6H/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X16\b/hipResViewFormatSignedShort1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X32\b/hipResViewFormatSignedInt1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X8\b/hipResViewFormatSignedChar1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X16\b/hipResViewFormatSignedShort2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X32\b/hipResViewFormatSignedInt2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X8\b/hipResViewFormatSignedChar2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X16\b/hipResViewFormatSignedShort4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X32\b/hipResViewFormatSignedInt4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X8\b/hipResViewFormatSignedChar4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X16\b/hipResViewFormatUnsignedShort1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X32\b/hipResViewFormatUnsignedInt1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X8\b/hipResViewFormatUnsignedChar1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X16\b/hipResViewFormatUnsignedShort2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X32\b/hipResViewFormatUnsignedInt2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X8\b/hipResViewFormatUnsignedChar2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X16\b/hipResViewFormatUnsignedShort4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X32\b/hipResViewFormatUnsignedInt4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X8\b/hipResViewFormatUnsignedChar4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC1\b/hipResViewFormatUnsignedBlockCompressed1/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC2\b/hipResViewFormatUnsignedBlockCompressed2/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC3\b/hipResViewFormatUnsignedBlockCompressed3/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC4\b/hipResViewFormatUnsignedBlockCompressed4/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC5\b/hipResViewFormatUnsignedBlockCompressed5/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC6H\b/hipResViewFormatUnsignedBlockCompressed6H/g; + $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC7\b/hipResViewFormatUnsignedBlockCompressed7/g; + $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE\b/hipSharedMemBankSizeDefault/g; + $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE\b/hipSharedMemBankSizeEightByte/g; + $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE\b/hipSharedMemBankSizeFourByte/g; + $ft{'numeric_literal'} += s/\bCU_STREAM_DEFAULT\b/hipStreamDefault/g; + $ft{'numeric_literal'} += s/\bCU_STREAM_NON_BLOCKING\b/hipStreamNonBlocking/g; + $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_BORDER\b/hipAddressModeBorder/g; + $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_CLAMP\b/hipAddressModeClamp/g; + $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_MIRROR\b/hipAddressModeMirror/g; + $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_WRAP\b/hipAddressModeWrap/g; + $ft{'numeric_literal'} += s/\bCU_TR_FILTER_MODE_LINEAR\b/hipFilterModeLinear/g; + $ft{'numeric_literal'} += s/\bCU_TR_FILTER_MODE_POINT\b/hipFilterModePoint/g; + $ft{'numeric_literal'} += s/\bcudaAddressModeBorder\b/hipAddressModeBorder/g; + $ft{'numeric_literal'} += s/\bcudaAddressModeClamp\b/hipAddressModeClamp/g; + $ft{'numeric_literal'} += s/\bcudaAddressModeMirror\b/hipAddressModeMirror/g; + $ft{'numeric_literal'} += s/\bcudaAddressModeWrap\b/hipAddressModeWrap/g; + $ft{'numeric_literal'} += s/\bcudaBoundaryModeClamp\b/hipBoundaryModeClamp/g; + $ft{'numeric_literal'} += s/\bcudaBoundaryModeTrap\b/hipBoundaryModeTrap/g; + $ft{'numeric_literal'} += s/\bcudaBoundaryModeZero\b/hipBoundaryModeZero/g; + $ft{'numeric_literal'} += s/\bcudaChannelFormatKindFloat\b/hipChannelFormatKindFloat/g; + $ft{'numeric_literal'} += s/\bcudaChannelFormatKindNone\b/hipChannelFormatKindNone/g; + $ft{'numeric_literal'} += s/\bcudaChannelFormatKindSigned\b/hipChannelFormatKindSigned/g; + $ft{'numeric_literal'} += s/\bcudaChannelFormatKindUnsigned\b/hipChannelFormatKindUnsigned/g; + $ft{'numeric_literal'} += s/\bcudaComputeModeDefault\b/hipComputeModeDefault/g; + $ft{'numeric_literal'} += s/\bcudaComputeModeExclusive\b/hipComputeModeExclusive/g; + $ft{'numeric_literal'} += s/\bcudaComputeModeExclusiveProcess\b/hipComputeModeExclusiveProcess/g; + $ft{'numeric_literal'} += s/\bcudaComputeModeProhibited\b/hipComputeModeProhibited/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrCanMapHostMemory\b/hipDeviceAttributeCanMapHostMemory/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrClockRate\b/hipDeviceAttributeClockRate/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrComputeCapabilityMajor\b/hipDeviceAttributeComputeCapabilityMajor/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrComputeCapabilityMinor\b/hipDeviceAttributeComputeCapabilityMinor/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrComputeMode\b/hipDeviceAttributeComputeMode/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrConcurrentKernels\b/hipDeviceAttributeConcurrentKernels/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrCooperativeLaunch\b/hipDeviceAttributeCooperativeLaunch/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrCooperativeMultiDeviceLaunch\b/hipDeviceAttributeCooperativeMultiDeviceLaunch/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrEccEnabled\b/hipDeviceAttributeEccEnabled/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrGlobalMemoryBusWidth\b/hipDeviceAttributeMemoryBusWidth/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrIntegrated\b/hipDeviceAttributeIntegrated/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrIsMultiGpuBoard\b/hipDeviceAttributeIsMultiGpuBoard/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrKernelExecTimeout\b/hipDeviceAttributeKernelExecTimeout/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrL2CacheSize\b/hipDeviceAttributeL2CacheSize/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimX\b/hipDeviceAttributeMaxBlockDimX/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimY\b/hipDeviceAttributeMaxBlockDimY/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimZ\b/hipDeviceAttributeMaxBlockDimZ/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimX\b/hipDeviceAttributeMaxGridDimX/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimY\b/hipDeviceAttributeMaxGridDimY/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimZ\b/hipDeviceAttributeMaxGridDimZ/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxPitch\b/hipDeviceAttributeMaxPitch/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxRegistersPerBlock\b/hipDeviceAttributeMaxRegistersPerBlock/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxSharedMemoryPerBlock\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxSharedMemoryPerMultiprocessor\b/hipDeviceAttributeMaxSharedMemoryPerMultiprocessor/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture1DWidth\b/hipDeviceAttributeMaxTexture1DWidth/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture2DHeight\b/hipDeviceAttributeMaxTexture2DHeight/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture2DWidth\b/hipDeviceAttributeMaxTexture2DWidth/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DDepth\b/hipDeviceAttributeMaxTexture3DDepth/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DHeight\b/hipDeviceAttributeMaxTexture3DHeight/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DWidth\b/hipDeviceAttributeMaxTexture3DWidth/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxThreadsPerBlock\b/hipDeviceAttributeMaxThreadsPerBlock/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMaxThreadsPerMultiProcessor\b/hipDeviceAttributeMaxThreadsPerMultiProcessor/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMemoryClockRate\b/hipDeviceAttributeMemoryClockRate/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrMultiProcessorCount\b/hipDeviceAttributeMultiprocessorCount/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrPciBusId\b/hipDeviceAttributePciBusId/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrPciDeviceId\b/hipDeviceAttributePciDeviceId/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrTextureAlignment\b/hipDeviceAttributeTextureAlignment/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrTotalConstantMemory\b/hipDeviceAttributeTotalConstantMemory/g; + $ft{'numeric_literal'} += s/\bcudaDevAttrWarpSize\b/hipDeviceAttributeWarpSize/g; + $ft{'numeric_literal'} += s/\bcudaErrorAssert\b/hipErrorAssert/g; + $ft{'numeric_literal'} += s/\bcudaErrorECCUncorrectable\b/hipErrorECCNotCorrectable/g; + $ft{'numeric_literal'} += s/\bcudaErrorHostMemoryAlreadyRegistered\b/hipErrorHostMemoryAlreadyRegistered/g; + $ft{'numeric_literal'} += s/\bcudaErrorHostMemoryNotRegistered\b/hipErrorHostMemoryNotRegistered/g; + $ft{'numeric_literal'} += s/\bcudaErrorIllegalAddress\b/hipErrorIllegalAddress/g; + $ft{'numeric_literal'} += s/\bcudaErrorInitializationError\b/hipErrorInitializationError/g; + $ft{'numeric_literal'} += s/\bcudaErrorInsufficientDriver\b/hipErrorInsufficientDriver/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidConfiguration\b/hipErrorInvalidConfiguration/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidDevice\b/hipErrorInvalidDevice/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidDeviceFunction\b/hipErrorInvalidDeviceFunction/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidDevicePointer\b/hipErrorInvalidDevicePointer/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidGraphicsContext\b/hipErrorInvalidGraphicsContext/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidKernelImage\b/hipErrorInvalidImage/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidMemcpyDirection\b/hipErrorInvalidMemcpyDirection/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidPtx\b/hipErrorInvalidKernelFile/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidResourceHandle\b/hipErrorInvalidResourceHandle/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidSymbol\b/hipErrorInvalidSymbol/g; + $ft{'numeric_literal'} += s/\bcudaErrorInvalidValue\b/hipErrorInvalidValue/g; + $ft{'numeric_literal'} += s/\bcudaErrorLaunchFailure\b/hipErrorLaunchFailure/g; + $ft{'numeric_literal'} += s/\bcudaErrorLaunchOutOfResources\b/hipErrorLaunchOutOfResources/g; + $ft{'numeric_literal'} += s/\bcudaErrorLaunchTimeout\b/hipErrorLaunchTimeOut/g; + $ft{'numeric_literal'} += s/\bcudaErrorMapBufferObjectFailed\b/hipErrorMapFailed/g; + $ft{'numeric_literal'} += s/\bcudaErrorMemoryAllocation\b/hipErrorMemoryAllocation/g; + $ft{'numeric_literal'} += s/\bcudaErrorMissingConfiguration\b/hipErrorMissingConfiguration/g; + $ft{'numeric_literal'} += s/\bcudaErrorNoDevice\b/hipErrorNoDevice/g; + $ft{'numeric_literal'} += s/\bcudaErrorNoKernelImageForDevice\b/hipErrorNoBinaryForGpu/g; + $ft{'numeric_literal'} += s/\bcudaErrorNotReady\b/hipErrorNotReady/g; + $ft{'numeric_literal'} += s/\bcudaErrorOperatingSystem\b/hipErrorOperatingSystem/g; + $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessAlreadyEnabled\b/hipErrorPeerAccessAlreadyEnabled/g; + $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessNotEnabled\b/hipErrorPeerAccessNotEnabled/g; + $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessUnsupported\b/hipErrorPeerAccessUnsupported/g; + $ft{'numeric_literal'} += s/\bcudaErrorPriorLaunchFailure\b/hipErrorPriorLaunchFailure/g; + $ft{'numeric_literal'} += s/\bcudaErrorProfilerAlreadyStarted\b/hipErrorProfilerAlreadyStarted/g; + $ft{'numeric_literal'} += s/\bcudaErrorProfilerAlreadyStopped\b/hipErrorProfilerAlreadyStopped/g; + $ft{'numeric_literal'} += s/\bcudaErrorProfilerDisabled\b/hipErrorProfilerDisabled/g; + $ft{'numeric_literal'} += s/\bcudaErrorProfilerNotInitialized\b/hipErrorProfilerNotInitialized/g; + $ft{'numeric_literal'} += s/\bcudaErrorSharedObjectInitFailed\b/hipErrorSharedObjectInitFailed/g; + $ft{'numeric_literal'} += s/\bcudaErrorSharedObjectSymbolNotFound\b/hipErrorSharedObjectSymbolNotFound/g; + $ft{'numeric_literal'} += s/\bcudaErrorUnknown\b/hipErrorUnknown/g; + $ft{'numeric_literal'} += s/\bcudaErrorUnmapBufferObjectFailed\b/hipErrorUnmapFailed/g; + $ft{'numeric_literal'} += s/\bcudaErrorUnsupportedLimit\b/hipErrorUnsupportedLimit/g; + $ft{'numeric_literal'} += s/\bcudaFilterModeLinear\b/hipFilterModeLinear/g; + $ft{'numeric_literal'} += s/\bcudaFilterModePoint\b/hipFilterModePoint/g; + $ft{'numeric_literal'} += s/\bcudaFuncCachePreferEqual\b/hipFuncCachePreferEqual/g; + $ft{'numeric_literal'} += s/\bcudaFuncCachePreferL1\b/hipFuncCachePreferL1/g; + $ft{'numeric_literal'} += s/\bcudaFuncCachePreferNone\b/hipFuncCachePreferNone/g; + $ft{'numeric_literal'} += s/\bcudaFuncCachePreferShared\b/hipFuncCachePreferShared/g; + $ft{'numeric_literal'} += s/\bcudaLimitMallocHeapSize\b/hipLimitMallocHeapSize/g; + $ft{'numeric_literal'} += s/\bcudaMemcpyDefault\b/hipMemcpyDefault/g; + $ft{'numeric_literal'} += s/\bcudaMemcpyDeviceToDevice\b/hipMemcpyDeviceToDevice/g; + $ft{'numeric_literal'} += s/\bcudaMemcpyDeviceToHost\b/hipMemcpyDeviceToHost/g; + $ft{'numeric_literal'} += s/\bcudaMemcpyHostToDevice\b/hipMemcpyHostToDevice/g; + $ft{'numeric_literal'} += s/\bcudaMemcpyHostToHost\b/hipMemcpyHostToHost/g; + $ft{'numeric_literal'} += s/\bcudaReadModeElementType\b/hipReadModeElementType/g; + $ft{'numeric_literal'} += s/\bcudaReadModeNormalizedFloat\b/hipReadModeNormalizedFloat/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat1\b/hipResViewFormatFloat1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat2\b/hipResViewFormatFloat2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat4\b/hipResViewFormatFloat4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf1\b/hipResViewFormatHalf1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf2\b/hipResViewFormatHalf2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf4\b/hipResViewFormatHalf4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatNone\b/hipResViewFormatNone/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed4\b/hipResViewFormatSignedBlockCompressed4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed5\b/hipResViewFormatSignedBlockCompressed5/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed6H\b/hipResViewFormatSignedBlockCompressed6H/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar1\b/hipResViewFormatSignedChar1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar2\b/hipResViewFormatSignedChar2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar4\b/hipResViewFormatSignedChar4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt1\b/hipResViewFormatSignedInt1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt2\b/hipResViewFormatSignedInt2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt4\b/hipResViewFormatSignedInt4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort1\b/hipResViewFormatSignedShort1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort2\b/hipResViewFormatSignedShort2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort4\b/hipResViewFormatSignedShort4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed1\b/hipResViewFormatUnsignedBlockCompressed1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed2\b/hipResViewFormatUnsignedBlockCompressed2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed3\b/hipResViewFormatUnsignedBlockCompressed3/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed4\b/hipResViewFormatUnsignedBlockCompressed4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed5\b/hipResViewFormatUnsignedBlockCompressed5/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed6H\b/hipResViewFormatUnsignedBlockCompressed6H/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed7\b/hipResViewFormatUnsignedBlockCompressed7/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar1\b/hipResViewFormatUnsignedChar1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar2\b/hipResViewFormatUnsignedChar2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar4\b/hipResViewFormatUnsignedChar4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt1\b/hipResViewFormatUnsignedInt1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt2\b/hipResViewFormatUnsignedInt2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt4\b/hipResViewFormatUnsignedInt4/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort1\b/hipResViewFormatUnsignedShort1/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort2\b/hipResViewFormatUnsignedShort2/g; + $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort4\b/hipResViewFormatUnsignedShort4/g; + $ft{'numeric_literal'} += s/\bcudaResourceTypeArray\b/hipResourceTypeArray/g; + $ft{'numeric_literal'} += s/\bcudaResourceTypeLinear\b/hipResourceTypeLinear/g; + $ft{'numeric_literal'} += s/\bcudaResourceTypeMipmappedArray\b/hipResourceTypeMipmappedArray/g; + $ft{'numeric_literal'} += s/\bcudaResourceTypePitch2D\b/hipResourceTypePitch2D/g; + $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeDefault\b/hipSharedMemBankSizeDefault/g; + $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeEightByte\b/hipSharedMemBankSizeEightByte/g; + $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeFourByte\b/hipSharedMemBankSizeFourByte/g; + $ft{'numeric_literal'} += s/\bcudaSuccess\b/hipSuccess/g; + $ft{'define'} += s/\bCUDA_ARRAY3D_CUBEMAP\b/hipArrayCubemap/g; + $ft{'define'} += s/\bCUDA_ARRAY3D_LAYERED\b/hipArrayLayered/g; + $ft{'define'} += s/\bCUDA_ARRAY3D_SURFACE_LDST\b/hipArraySurfaceLoadStore/g; + $ft{'define'} += s/\bCUDA_ARRAY3D_TEXTURE_GATHER\b/hipArrayTextureGather/g; + $ft{'define'} += s/\bCU_LAUNCH_PARAM_BUFFER_POINTER\b/HIP_LAUNCH_PARAM_BUFFER_POINTER/g; + $ft{'define'} += s/\bCU_LAUNCH_PARAM_BUFFER_SIZE\b/HIP_LAUNCH_PARAM_BUFFER_SIZE/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_PORTABLE\b/hipHostMallocPortable/g; + $ft{'define'} += s/\bCU_MEMHOSTALLOC_WRITECOMBINED\b/hipHostAllocWriteCombined/g; + $ft{'define'} += s/\bCU_MEMHOSTREGISTER_DEVICEMAP\b/hipHostRegisterMapped/g; + $ft{'define'} += s/\bCU_MEMHOSTREGISTER_IOMEMORY\b/hipHostRegisterIoMemory/g; + $ft{'define'} += s/\bCU_MEMHOSTREGISTER_PORTABLE\b/hipHostRegisterPortable/g; + $ft{'define'} += s/\bCU_TRSA_OVERRIDE_FORMAT\b/HIP_TRSA_OVERRIDE_FORMAT/g; + $ft{'define'} += s/\bCU_TRSF_NORMALIZED_COORDINATES\b/HIP_TRSF_NORMALIZED_COORDINATES/g; + $ft{'define'} += s/\bCU_TRSF_READ_AS_INTEGER\b/HIP_TRSF_READ_AS_INTEGER/g; + $ft{'define'} += s/\bREGISTER_CUDA_OPERATOR\b/REGISTER_HIP_OPERATOR/g; + $ft{'define'} += s/\bREGISTER_CUDA_OPERATOR_CREATOR\b/REGISTER_HIP_OPERATOR_CREATOR/g; + $ft{'define'} += s/\b__CUDACC__\b/__HIPCC__/g; + $ft{'define'} += s/\bcudaArrayCubemap\b/hipArrayCubemap/g; + $ft{'define'} += s/\bcudaArrayDefault\b/hipArrayDefault/g; + $ft{'define'} += s/\bcudaArrayLayered\b/hipArrayLayered/g; + $ft{'define'} += s/\bcudaArraySurfaceLoadStore\b/hipArraySurfaceLoadStore/g; + $ft{'define'} += s/\bcudaArrayTextureGather\b/hipArrayTextureGather/g; + $ft{'define'} += s/\bcudaDeviceBlockingSync\b/hipDeviceScheduleBlockingSync/g; + $ft{'define'} += s/\bcudaDeviceLmemResizeToMax\b/hipDeviceLmemResizeToMax/g; + $ft{'define'} += s/\bcudaDeviceMapHost\b/hipDeviceMapHost/g; + $ft{'define'} += s/\bcudaDeviceScheduleAuto\b/hipDeviceScheduleAuto/g; + $ft{'define'} += s/\bcudaDeviceScheduleBlockingSync\b/hipDeviceScheduleBlockingSync/g; + $ft{'define'} += s/\bcudaDeviceScheduleMask\b/hipDeviceScheduleMask/g; + $ft{'define'} += s/\bcudaDeviceScheduleSpin\b/hipDeviceScheduleSpin/g; + $ft{'define'} += s/\bcudaDeviceScheduleYield\b/hipDeviceScheduleYield/g; + $ft{'define'} += s/\bcudaEventBlockingSync\b/hipEventBlockingSync/g; + $ft{'define'} += s/\bcudaEventDefault\b/hipEventDefault/g; + $ft{'define'} += s/\bcudaEventDisableTiming\b/hipEventDisableTiming/g; + $ft{'define'} += s/\bcudaEventInterprocess\b/hipEventInterprocess/g; + $ft{'define'} += s/\bcudaHostAllocDefault\b/hipHostMallocDefault/g; + $ft{'define'} += s/\bcudaHostAllocMapped\b/hipHostMallocMapped/g; + $ft{'define'} += s/\bcudaHostAllocPortable\b/hipHostMallocPortable/g; + $ft{'define'} += s/\bcudaHostAllocWriteCombined\b/hipHostAllocWriteCombined/g; + $ft{'define'} += s/\bcudaHostRegisterDefault\b/hipHostRegisterDefault/g; + $ft{'define'} += s/\bcudaHostRegisterIoMemory\b/hipHostRegisterIoMemory/g; + $ft{'define'} += s/\bcudaHostRegisterMapped\b/hipHostRegisterMapped/g; + $ft{'define'} += s/\bcudaHostRegisterPortable\b/hipHostRegisterPortable/g; + $ft{'define'} += s/\bcudaIpcMemLazyEnablePeerAccess\b/hipIpcMemLazyEnablePeerAccess/g; + $ft{'define'} += s/\bcudaMemAttachGlobal\b/hipMemAttachGlobal/g; + $ft{'define'} += s/\bcudaMemAttachHost\b/hipMemAttachHost/g; + $ft{'define'} += s/\bcudaStreamDefault\b/hipStreamDefault/g; + $ft{'define'} += s/\bcudaStreamNonBlocking\b/hipStreamNonBlocking/g; + $ft{'define'} += s/\bcudaTextureType1D\b/hipTextureType1D/g; + $ft{'define'} += s/\bcudaTextureType1DLayered\b/hipTextureType1DLayered/g; + $ft{'define'} += s/\bcudaTextureType2D\b/hipTextureType2D/g; + $ft{'define'} += s/\bcudaTextureType2DLayered\b/hipTextureType2DLayered/g; + $ft{'define'} += s/\bcudaTextureType3D\b/hipTextureType3D/g; + $ft{'define'} += s/\bcudaTextureTypeCubemap\b/hipTextureTypeCubemap/g; + $ft{'define'} += s/\bcudaTextureTypeCubemapLayered\b/hipTextureTypeCubemapLayered/g; +} + # Count of transforms in all files my %tt; clearStats(\%tt, \@statNames); @@ -153,1488 +1638,7 @@ while (@ARGV) { # Read whole file at once, so we can match newlines while () { - $ft{'error'} += s/\bcudaGetErrorName\b/hipGetErrorName/g; - $ft{'error'} += s/\bcudaGetErrorString\b/hipGetErrorString/g; - $ft{'error'} += s/\bcudaGetLastError\b/hipGetLastError/g; - $ft{'error'} += s/\bcudaPeekAtLastError\b/hipPeekAtLastError/g; - $ft{'init'} += s/\bcuInit\b/hipInit/g; - $ft{'version'} += s/\bcuDriverGetVersion\b/hipDriverGetVersion/g; - $ft{'version'} += s/\bcudaDriverGetVersion\b/hipDriverGetVersion/g; - $ft{'version'} += s/\bcudaRuntimeGetVersion\b/hipRuntimeGetVersion/g; - $ft{'device'} += s/\bcuDeviceComputeCapability\b/hipDeviceComputeCapability/g; - $ft{'device'} += s/\bcuDeviceGet\b/hipGetDevice/g; - $ft{'device'} += s/\bcuDeviceGetAttribute\b/hipDeviceGetAttribute/g; - $ft{'device'} += s/\bcuDeviceGetCount\b/hipGetDeviceCount/g; - $ft{'device'} += s/\bcuDeviceGetName\b/hipDeviceGetName/g; - $ft{'device'} += s/\bcuDeviceTotalMem\b/hipDeviceTotalMem/g; - $ft{'device'} += s/\bcuDeviceTotalMem_v2\b/hipDeviceTotalMem/g; - $ft{'device'} += s/\bcudaChooseDevice\b/hipChooseDevice/g; - $ft{'device'} += s/\bcudaDeviceGetAttribute\b/hipDeviceGetAttribute/g; - $ft{'device'} += s/\bcudaDeviceGetByPCIBusId\b/hipDeviceGetByPCIBusId/g; - $ft{'device'} += s/\bcudaDeviceGetCacheConfig\b/hipDeviceGetCacheConfig/g; - $ft{'device'} += s/\bcudaDeviceGetLimit\b/hipDeviceGetLimit/g; - $ft{'device'} += s/\bcudaDeviceGetPCIBusId\b/hipDeviceGetPCIBusId/g; - $ft{'device'} += s/\bcudaDeviceGetSharedMemConfig\b/hipDeviceGetSharedMemConfig/g; - $ft{'device'} += s/\bcudaDeviceGetStreamPriorityRange\b/hipDeviceGetStreamPriorityRange/g; - $ft{'device'} += s/\bcudaDeviceReset\b/hipDeviceReset/g; - $ft{'device'} += s/\bcudaDeviceSetCacheConfig\b/hipDeviceSetCacheConfig/g; - $ft{'device'} += s/\bcudaDeviceSetLimit\b/hipDeviceSetLimit/g; - $ft{'device'} += s/\bcudaDeviceSetSharedMemConfig\b/hipDeviceSetSharedMemConfig/g; - $ft{'device'} += s/\bcudaDeviceSynchronize\b/hipDeviceSynchronize/g; - $ft{'device'} += s/\bcudaFuncSetCacheConfig\b/hipFuncSetCacheConfig/g; - $ft{'device'} += s/\bcudaGetDevice\b/hipGetDevice/g; - $ft{'device'} += s/\bcudaGetDeviceCount\b/hipGetDeviceCount/g; - $ft{'device'} += s/\bcudaGetDeviceFlags\b/hipCtxGetFlags/g; - $ft{'device'} += s/\bcudaGetDeviceProperties\b/hipGetDeviceProperties/g; - $ft{'device'} += s/\bcudaIpcCloseMemHandle\b/hipIpcCloseMemHandle/g; - $ft{'device'} += s/\bcudaIpcGetEventHandle\b/hipIpcGetEventHandle/g; - $ft{'device'} += s/\bcudaIpcGetMemHandle\b/hipIpcGetMemHandle/g; - $ft{'device'} += s/\bcudaIpcOpenEventHandle\b/hipIpcOpenEventHandle/g; - $ft{'device'} += s/\bcudaIpcOpenMemHandle\b/hipIpcOpenMemHandle/g; - $ft{'device'} += s/\bcudaSetDevice\b/hipSetDevice/g; - $ft{'device'} += s/\bcudaSetDeviceFlags\b/hipSetDeviceFlags/g; - $ft{'context'} += s/\bcuCtxCreate\b/hipCtxCreate/g; - $ft{'context'} += s/\bcuCtxCreate_v2\b/hipCtxCreate/g; - $ft{'context'} += s/\bcuCtxDestroy\b/hipCtxDestroy/g; - $ft{'context'} += s/\bcuCtxDestroy_v2\b/hipCtxDestroy/g; - $ft{'context'} += s/\bcuCtxGetApiVersion\b/hipCtxGetApiVersion/g; - $ft{'context'} += s/\bcuCtxGetCacheConfig\b/hipCtxGetCacheConfig/g; - $ft{'context'} += s/\bcuCtxGetCurrent\b/hipCtxGetCurrent/g; - $ft{'context'} += s/\bcuCtxGetDevice\b/hipCtxGetDevice/g; - $ft{'context'} += s/\bcuCtxGetFlags\b/hipCtxGetFlags/g; - $ft{'context'} += s/\bcuCtxGetLimit\b/hipDeviceGetLimit/g; - $ft{'context'} += s/\bcuCtxGetSharedMemConfig\b/hipCtxGetSharedMemConfig/g; - $ft{'context'} += s/\bcuCtxGetStreamPriorityRange\b/hipDeviceGetStreamPriorityRange/g; - $ft{'context'} += s/\bcuCtxPopCurrent\b/hipCtxPopCurrent/g; - $ft{'context'} += s/\bcuCtxPopCurrent_v2\b/hipCtxPopCurrent/g; - $ft{'context'} += s/\bcuCtxPushCurrent\b/hipCtxPushCurrent/g; - $ft{'context'} += s/\bcuCtxPushCurrent_v2\b/hipCtxPushCurrent/g; - $ft{'context'} += s/\bcuCtxSetCacheConfig\b/hipCtxSetCacheConfig/g; - $ft{'context'} += s/\bcuCtxSetCurrent\b/hipCtxSetCurrent/g; - $ft{'context'} += s/\bcuCtxSetLimit\b/hipDeviceSetLimit/g; - $ft{'context'} += s/\bcuCtxSetSharedMemConfig\b/hipCtxSetSharedMemConfig/g; - $ft{'context'} += s/\bcuCtxSynchronize\b/hipCtxSynchronize/g; - $ft{'context'} += s/\bcuDevicePrimaryCtxGetState\b/hipDevicePrimaryCtxGetState/g; - $ft{'context'} += s/\bcuDevicePrimaryCtxRelease\b/hipDevicePrimaryCtxRelease/g; - $ft{'context'} += s/\bcuDevicePrimaryCtxReset\b/hipDevicePrimaryCtxReset/g; - $ft{'context'} += s/\bcuDevicePrimaryCtxRetain\b/hipDevicePrimaryCtxRetain/g; - $ft{'context'} += s/\bcuDevicePrimaryCtxSetFlags\b/hipDevicePrimaryCtxSetFlags/g; - $ft{'module'} += s/\bcuModuleGetFunction\b/hipModuleGetFunction/g; - $ft{'module'} += s/\bcuModuleGetGlobal\b/hipModuleGetGlobal/g; - $ft{'module'} += s/\bcuModuleGetGlobal_v2\b/hipModuleGetGlobal/g; - $ft{'module'} += s/\bcuModuleGetTexRef\b/hipModuleGetTexRef/g; - $ft{'module'} += s/\bcuModuleLoad\b/hipModuleLoad/g; - $ft{'module'} += s/\bcuModuleLoadData\b/hipModuleLoadData/g; - $ft{'module'} += s/\bcuModuleLoadDataEx\b/hipModuleLoadDataEx/g; - $ft{'module'} += s/\bcuModuleUnload\b/hipModuleUnload/g; - $ft{'memory'} += s/\bcuArray3DCreate\b/hipArray3DCreate/g; - $ft{'memory'} += s/\bcuArray3DCreate_v2\b/hipArray3DCreate/g; - $ft{'memory'} += s/\bcuArrayCreate\b/hipArrayCreate/g; - $ft{'memory'} += s/\bcuArrayCreate_v2\b/hipArrayCreate/g; - $ft{'memory'} += s/\bcuDeviceGetByPCIBusId\b/hipDeviceGetByPCIBusId/g; - $ft{'memory'} += s/\bcuDeviceGetPCIBusId\b/hipDeviceGetPCIBusId/g; - $ft{'memory'} += s/\bcuIpcCloseMemHandle\b/hipIpcCloseMemHandle/g; - $ft{'memory'} += s/\bcuIpcGetMemHandle\b/hipIpcGetMemHandle/g; - $ft{'memory'} += s/\bcuIpcOpenMemHandle\b/hipIpcOpenMemHandle/g; - $ft{'memory'} += s/\bcuMemAlloc\b/hipMalloc/g; - $ft{'memory'} += s/\bcuMemAllocManaged\b/hipMemAllocManaged/g; - $ft{'memory'} += s/\bcuMemAlloc_v2\b/hipMalloc/g; - $ft{'memory'} += s/\bcuMemFree\b/hipFree/g; - $ft{'memory'} += s/\bcuMemFreeHost\b/hipHostFree/g; - $ft{'memory'} += s/\bcuMemFree_v2\b/hipFree/g; - $ft{'memory'} += s/\bcuMemGetAddressRange\b/hipMemGetAddressRange/g; - $ft{'memory'} += s/\bcuMemGetAddressRange_v2\b/hipMemGetAddressRange/g; - $ft{'memory'} += s/\bcuMemGetInfo\b/hipMemGetInfo/g; - $ft{'memory'} += s/\bcuMemGetInfo_v2\b/hipMemGetInfo/g; - $ft{'memory'} += s/\bcuMemHostAlloc\b/hipHostMalloc/g; - $ft{'memory'} += s/\bcuMemHostGetDevicePointer\b/hipHostGetDevicePointer/g; - $ft{'memory'} += s/\bcuMemHostGetDevicePointer_v2\b/hipHostGetDevicePointer/g; - $ft{'memory'} += s/\bcuMemHostGetFlags\b/hipMemHostGetFlags/g; - $ft{'memory'} += s/\bcuMemHostRegister\b/hipHostRegister/g; - $ft{'memory'} += s/\bcuMemHostRegister_v2\b/hipHostRegister/g; - $ft{'memory'} += s/\bcuMemHostUnregister\b/hipHostUnregister/g; - $ft{'memory'} += s/\bcuMemcpy2D\b/hipMemcpyParam2D/g; - $ft{'memory'} += s/\bcuMemcpy2DAsync\b/hipMemcpyParam2DAsync/g; - $ft{'memory'} += s/\bcuMemcpy2DAsync_v2\b/hipMemcpyParam2DAsync/g; - $ft{'memory'} += s/\bcuMemcpy2D_v2\b/hipMemcpyParam2D/g; - $ft{'memory'} += s/\bcuMemcpyAtoH\b/hipMemcpyAtoH/g; - $ft{'memory'} += s/\bcuMemcpyAtoH_v2\b/hipMemcpyAtoH/g; - $ft{'memory'} += s/\bcuMemcpyDtoD\b/hipMemcpyDtoD/g; - $ft{'memory'} += s/\bcuMemcpyDtoDAsync\b/hipMemcpyDtoDAsync/g; - $ft{'memory'} += s/\bcuMemcpyDtoDAsync_v2\b/hipMemcpyDtoDAsync/g; - $ft{'memory'} += s/\bcuMemcpyDtoD_v2\b/hipMemcpyDtoD/g; - $ft{'memory'} += s/\bcuMemcpyDtoH\b/hipMemcpyDtoH/g; - $ft{'memory'} += s/\bcuMemcpyDtoHAsync\b/hipMemcpyDtoHAsync/g; - $ft{'memory'} += s/\bcuMemcpyDtoHAsync_v2\b/hipMemcpyDtoHAsync/g; - $ft{'memory'} += s/\bcuMemcpyDtoH_v2\b/hipMemcpyDtoH/g; - $ft{'memory'} += s/\bcuMemcpyHtoA\b/hipMemcpyHtoA/g; - $ft{'memory'} += s/\bcuMemcpyHtoA_v2\b/hipMemcpyHtoA/g; - $ft{'memory'} += s/\bcuMemcpyHtoD\b/hipMemcpyHtoD/g; - $ft{'memory'} += s/\bcuMemcpyHtoDAsync\b/hipMemcpyHtoDAsync/g; - $ft{'memory'} += s/\bcuMemcpyHtoDAsync_v2\b/hipMemcpyHtoDAsync/g; - $ft{'memory'} += s/\bcuMemcpyHtoD_v2\b/hipMemcpyHtoD/g; - $ft{'memory'} += s/\bcuMemsetD32\b/hipMemsetD32/g; - $ft{'memory'} += s/\bcuMemsetD32Async\b/hipMemsetD32Async/g; - $ft{'memory'} += s/\bcuMemsetD32_v2\b/hipMemsetD32/g; - $ft{'memory'} += s/\bcuMemsetD8\b/hipMemsetD8/g; - $ft{'memory'} += s/\bcuMemsetD8_v2\b/hipMemsetD8/g; - $ft{'memory'} += s/\bcudaFree\b/hipFree/g; - $ft{'memory'} += s/\bcudaFreeArray\b/hipFreeArray/g; - $ft{'memory'} += s/\bcudaFreeHost\b/hipHostFree/g; - $ft{'memory'} += s/\bcudaGetSymbolAddress\b/hipGetSymbolAddress/g; - $ft{'memory'} += s/\bcudaGetSymbolSize\b/hipGetSymbolSize/g; - $ft{'memory'} += s/\bcudaHostAlloc\b/hipHostMalloc/g; - $ft{'memory'} += s/\bcudaHostGetDevicePointer\b/hipHostGetDevicePointer/g; - $ft{'memory'} += s/\bcudaHostGetFlags\b/hipHostGetFlags/g; - $ft{'memory'} += s/\bcudaHostRegister\b/hipHostRegister/g; - $ft{'memory'} += s/\bcudaHostUnregister\b/hipHostUnregister/g; - $ft{'memory'} += s/\bcudaMalloc\b/hipMalloc/g; - $ft{'memory'} += s/\bcudaMalloc3D\b/hipMalloc3D/g; - $ft{'memory'} += s/\bcudaMalloc3DArray\b/hipMalloc3DArray/g; - $ft{'memory'} += s/\bcudaMallocArray\b/hipMallocArray/g; - $ft{'memory'} += s/\bcudaMallocHost\b/hipHostMalloc/g; - $ft{'memory'} += s/\bcudaMallocManaged\b/hipMallocManaged/g; - $ft{'memory'} += s/\bcudaMallocPitch\b/hipMallocPitch/g; - $ft{'memory'} += s/\bcudaMemGetInfo\b/hipMemGetInfo/g; - $ft{'memory'} += s/\bcudaMemcpy\b/hipMemcpy/g; - $ft{'memory'} += s/\bcudaMemcpy2D\b/hipMemcpy2D/g; - $ft{'memory'} += s/\bcudaMemcpy2DAsync\b/hipMemcpy2DAsync/g; - $ft{'memory'} += s/\bcudaMemcpy2DToArray\b/hipMemcpy2DToArray/g; - $ft{'memory'} += s/\bcudaMemcpy3D\b/hipMemcpy3D/g; - $ft{'memory'} += s/\bcudaMemcpyAsync\b/hipMemcpyAsync/g; - $ft{'memory'} += s/\bcudaMemcpyFromArray\b/hipMemcpyFromArray/g; - $ft{'memory'} += s/\bcudaMemcpyFromSymbol\b/hipMemcpyFromSymbol/g; - $ft{'memory'} += s/\bcudaMemcpyFromSymbolAsync\b/hipMemcpyFromSymbolAsync/g; - $ft{'memory'} += s/\bcudaMemcpyPeer\b/hipMemcpyPeer/g; - $ft{'memory'} += s/\bcudaMemcpyPeerAsync\b/hipMemcpyPeerAsync/g; - $ft{'memory'} += s/\bcudaMemcpyToArray\b/hipMemcpyToArray/g; - $ft{'memory'} += s/\bcudaMemcpyToArrayAsync\b/hipMemcpyToArrayAsync/g; - $ft{'memory'} += s/\bcudaMemcpyToSymbol\b/hipMemcpyToSymbol/g; - $ft{'memory'} += s/\bcudaMemcpyToSymbolAsync\b/hipMemcpyToSymbolAsync/g; - $ft{'memory'} += s/\bcudaMemset\b/hipMemset/g; - $ft{'memory'} += s/\bcudaMemset2D\b/hipMemset2D/g; - $ft{'memory'} += s/\bcudaMemset2DAsync\b/hipMemset2DAsync/g; - $ft{'memory'} += s/\bcudaMemsetAsync\b/hipMemsetAsync/g; - $ft{'memory'} += s/\bmake_cudaExtent\b/make_hipExtent/g; - $ft{'memory'} += s/\bmake_cudaPitchedPtr\b/make_hipPitchedPtr/g; - $ft{'memory'} += s/\bmake_cudaPos\b/make_hipPos/g; - $ft{'addressing'} += s/\bcudaPointerGetAttributes\b/hipPointerGetAttributes/g; - $ft{'stream'} += s/\bcuStreamAddCallback\b/hipStreamAddCallback/g; - $ft{'stream'} += s/\bcuStreamCreate\b/hipStreamCreateWithFlags/g; - $ft{'stream'} += s/\bcuStreamCreateWithPriority\b/hipStreamCreateWithPriority/g; - $ft{'stream'} += s/\bcuStreamDestroy\b/hipStreamDestroy/g; - $ft{'stream'} += s/\bcuStreamDestroy_v2\b/hipStreamDestroy/g; - $ft{'stream'} += s/\bcuStreamGetFlags\b/hipStreamGetFlags/g; - $ft{'stream'} += s/\bcuStreamGetPriority\b/hipStreamGetPriority/g; - $ft{'stream'} += s/\bcuStreamQuery\b/hipStreamQuery/g; - $ft{'stream'} += s/\bcuStreamSynchronize\b/hipStreamSynchronize/g; - $ft{'stream'} += s/\bcuStreamWaitEvent\b/hipStreamWaitEvent/g; - $ft{'stream'} += s/\bcudaStreamAddCallback\b/hipStreamAddCallback/g; - $ft{'stream'} += s/\bcudaStreamCreate\b/hipStreamCreate/g; - $ft{'stream'} += s/\bcudaStreamCreateWithFlags\b/hipStreamCreateWithFlags/g; - $ft{'stream'} += s/\bcudaStreamCreateWithPriority\b/hipStreamCreateWithPriority/g; - $ft{'stream'} += s/\bcudaStreamDestroy\b/hipStreamDestroy/g; - $ft{'stream'} += s/\bcudaStreamGetFlags\b/hipStreamGetFlags/g; - $ft{'stream'} += s/\bcudaStreamGetPriority\b/hipStreamGetPriority/g; - $ft{'stream'} += s/\bcudaStreamQuery\b/hipStreamQuery/g; - $ft{'stream'} += s/\bcudaStreamSynchronize\b/hipStreamSynchronize/g; - $ft{'stream'} += s/\bcudaStreamWaitEvent\b/hipStreamWaitEvent/g; - $ft{'event'} += s/\bcuEventCreate\b/hipEventCreateWithFlags/g; - $ft{'event'} += s/\bcuEventDestroy\b/hipEventDestroy/g; - $ft{'event'} += s/\bcuEventDestroy_v2\b/hipEventDestroy/g; - $ft{'event'} += s/\bcuEventElapsedTime\b/hipEventElapsedTime/g; - $ft{'event'} += s/\bcuEventQuery\b/hipEventQuery/g; - $ft{'event'} += s/\bcuEventRecord\b/hipEventRecord/g; - $ft{'event'} += s/\bcuEventSynchronize\b/hipEventSynchronize/g; - $ft{'event'} += s/\bcudaEventCreate\b/hipEventCreate/g; - $ft{'event'} += s/\bcudaEventCreateWithFlags\b/hipEventCreateWithFlags/g; - $ft{'event'} += s/\bcudaEventDestroy\b/hipEventDestroy/g; - $ft{'event'} += s/\bcudaEventElapsedTime\b/hipEventElapsedTime/g; - $ft{'event'} += s/\bcudaEventQuery\b/hipEventQuery/g; - $ft{'event'} += s/\bcudaEventRecord\b/hipEventRecord/g; - $ft{'event'} += s/\bcudaEventSynchronize\b/hipEventSynchronize/g; - $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; - $ft{'execution'} += s/\bcudaLaunchKernel\b/hipLaunchKernel/g; - $ft{'execution'} += s/\bcudaSetupArgument\b/hipSetupArgument/g; - $ft{'occupancy'} += s/\bcuOccupancyMaxActiveBlocksPerMultiprocessor\b/hipOccupancyMaxActiveBlocksPerMultiprocessor/g; - $ft{'occupancy'} += s/\bcuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\b/hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags/g; - $ft{'occupancy'} += s/\bcuOccupancyMaxPotentialBlockSize\b/hipOccupancyMaxPotentialBlockSize/g; - $ft{'occupancy'} += s/\bcudaOccupancyMaxActiveBlocksPerMultiprocessor\b/hipOccupancyMaxActiveBlocksPerMultiprocessor/g; - $ft{'occupancy'} += s/\bcudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\b/hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags/g; - $ft{'occupancy'} += s/\bcudaOccupancyMaxPotentialBlockSize\b/hipOccupancyMaxPotentialBlockSize/g; - $ft{'texture'} += s/\bcuTexRefSetAddress\b/hipTexRefSetAddress/g; - $ft{'texture'} += s/\bcuTexRefSetAddress2D\b/hipTexRefSetAddress2D/g; - $ft{'texture'} += s/\bcuTexRefSetAddress2D_v2\b/hipTexRefSetAddress2D/g; - $ft{'texture'} += s/\bcuTexRefSetAddress2D_v3\b/hipTexRefSetAddress2D/g; - $ft{'texture'} += s/\bcuTexRefSetAddressMode\b/hipTexRefSetAddressMode/g; - $ft{'texture'} += s/\bcuTexRefSetAddress_v2\b/hipTexRefSetAddress/g; - $ft{'texture'} += s/\bcuTexRefSetArray\b/hipTexRefSetArray/g; - $ft{'texture'} += s/\bcuTexRefSetFilterMode\b/hipTexRefSetFilterMode/g; - $ft{'texture'} += s/\bcuTexRefSetFlags\b/hipTexRefSetFlags/g; - $ft{'texture'} += s/\bcuTexRefSetFormat\b/hipTexRefSetFormat/g; - $ft{'texture'} += s/\bcudaBindTexture\b/hipBindTexture/g; - $ft{'texture'} += s/\bcudaBindTexture2D\b/hipBindTexture2D/g; - $ft{'texture'} += s/\bcudaBindTextureToArray\b/hipBindTextureToArray/g; - $ft{'texture'} += s/\bcudaBindTextureToMipmappedArray\b/hipBindTextureToMipmappedArray/g; - $ft{'texture'} += s/\bcudaCreateChannelDesc\b/hipCreateChannelDesc/g; - $ft{'texture'} += s/\bcudaCreateTextureObject\b/hipCreateTextureObject/g; - $ft{'texture'} += s/\bcudaDestroyTextureObject\b/hipDestroyTextureObject/g; - $ft{'texture'} += s/\bcudaGetChannelDesc\b/hipGetChannelDesc/g; - $ft{'texture'} += s/\bcudaGetTextureAlignmentOffset\b/hipGetTextureAlignmentOffset/g; - $ft{'texture'} += s/\bcudaGetTextureObjectResourceDesc\b/hipGetTextureObjectResourceDesc/g; - $ft{'texture'} += s/\bcudaGetTextureObjectResourceViewDesc\b/hipGetTextureObjectResourceViewDesc/g; - $ft{'texture'} += s/\bcudaGetTextureReference\b/hipGetTextureReference/g; - $ft{'texture'} += s/\bcudaUnbindTexture\b/hipUnbindTexture/g; - $ft{'surface'} += s/\bcudaCreateSurfaceObject\b/hipCreateSurfaceObject/g; - $ft{'surface'} += s/\bcudaDestroySurfaceObject\b/hipDestroySurfaceObject/g; - $ft{'peer'} += s/\bcuCtxDisablePeerAccess\b/hipCtxDisablePeerAccess/g; - $ft{'peer'} += s/\bcuCtxEnablePeerAccess\b/hipCtxEnablePeerAccess/g; - $ft{'peer'} += s/\bcuDeviceCanAccessPeer\b/hipDeviceCanAccessPeer/g; - $ft{'peer'} += s/\bcudaDeviceCanAccessPeer\b/hipDeviceCanAccessPeer/g; - $ft{'peer'} += s/\bcudaDeviceDisablePeerAccess\b/hipDeviceDisablePeerAccess/g; - $ft{'peer'} += s/\bcudaDeviceEnablePeerAccess\b/hipDeviceEnablePeerAccess/g; - $ft{'profiler'} += s/\bcuProfilerStart\b/hipProfilerStart/g; - $ft{'profiler'} += s/\bcuProfilerStop\b/hipProfilerStop/g; - $ft{'profiler'} += s/\bcudaProfilerStart\b/hipProfilerStart/g; - $ft{'profiler'} += s/\bcudaProfilerStop\b/hipProfilerStop/g; - $ft{'thread'} += s/\bcudaThreadExit\b/hipDeviceReset/g; - $ft{'thread'} += s/\bcudaThreadGetCacheConfig\b/hipDeviceGetCacheConfig/g; - $ft{'thread'} += s/\bcudaThreadSetCacheConfig\b/hipDeviceSetCacheConfig/g; - $ft{'thread'} += s/\bcudaThreadSynchronize\b/hipDeviceSynchronize/g; - $ft{'complex'} += s/\bcuCabs\b/hipCabs/g; - $ft{'complex'} += s/\bcuCabsf\b/hipCabsf/g; - $ft{'complex'} += s/\bcuCadd\b/hipCadd/g; - $ft{'complex'} += s/\bcuCaddf\b/hipCaddf/g; - $ft{'complex'} += s/\bcuCdiv\b/hipCdiv/g; - $ft{'complex'} += s/\bcuCdivf\b/hipCdivf/g; - $ft{'complex'} += s/\bcuCfma\b/hipCfma/g; - $ft{'complex'} += s/\bcuCfmaf\b/hipCfmaf/g; - $ft{'complex'} += s/\bcuCimag\b/hipCimag/g; - $ft{'complex'} += s/\bcuCimagf\b/hipCimagf/g; - $ft{'complex'} += s/\bcuCmul\b/hipCmul/g; - $ft{'complex'} += s/\bcuCmulf\b/hipCmulf/g; - $ft{'complex'} += s/\bcuComplexDoubleToFloat\b/hipComplexDoubleToFloat/g; - $ft{'complex'} += s/\bcuComplexFloatToDouble\b/hipComplexFloatToDouble/g; - $ft{'complex'} += s/\bcuConj\b/hipConj/g; - $ft{'complex'} += s/\bcuConjf\b/hipConjf/g; - $ft{'complex'} += s/\bcuCreal\b/hipCreal/g; - $ft{'complex'} += s/\bcuCrealf\b/hipCrealf/g; - $ft{'complex'} += s/\bcuCsub\b/hipCsub/g; - $ft{'complex'} += s/\bcuCsubf\b/hipCsubf/g; - $ft{'complex'} += s/\bmake_cuComplex\b/make_hipComplex/g; - $ft{'complex'} += s/\bmake_cuDoubleComplex\b/make_hipDoubleComplex/g; - $ft{'complex'} += s/\bmake_cuFloatComplex\b/make_hipFloatComplex/g; - $ft{'library'} += s/\bcublasCreate\b/hipblasCreate/g; - $ft{'library'} += s/\bcublasCreate_v2\b/hipblasCreate/g; - $ft{'library'} += s/\bcublasDasum\b/hipblasDasum/g; - $ft{'library'} += s/\bcublasDasum_v2\b/hipblasDasum/g; - $ft{'library'} += s/\bcublasDaxpy\b/hipblasDaxpy/g; - $ft{'library'} += s/\bcublasDaxpy_v2\b/hipblasDaxpy/g; - $ft{'library'} += s/\bcublasDcopy\b/hipblasDcopy/g; - $ft{'library'} += s/\bcublasDcopy_v2\b/hipblasDcopy/g; - $ft{'library'} += s/\bcublasDdot\b/hipblasDdot/g; - $ft{'library'} += s/\bcublasDdot_v2\b/hipblasDdot/g; - $ft{'library'} += s/\bcublasDestroy\b/hipblasDestroy/g; - $ft{'library'} += s/\bcublasDestroy_v2\b/hipblasDestroy/g; - $ft{'library'} += s/\bcublasDgeam\b/hipblasDgeam/g; - $ft{'library'} += s/\bcublasDgemm\b/hipblasDgemm/g; - $ft{'library'} += s/\bcublasDgemmBatched\b/hipblasDgemmBatched/g; - $ft{'library'} += s/\bcublasDgemmStridedBatched\b/hipblasDgemmStridedBatched/g; - $ft{'library'} += s/\bcublasDgemm_v2\b/hipblasDgemm/g; - $ft{'library'} += s/\bcublasDgemv\b/hipblasDgemv/g; - $ft{'library'} += s/\bcublasDgemv_v2\b/hipblasDgemv/g; - $ft{'library'} += s/\bcublasDger\b/hipblasDger/g; - $ft{'library'} += s/\bcublasDger_v2\b/hipblasDger/g; - $ft{'library'} += s/\bcublasDnrm2\b/hipblasDnrm2/g; - $ft{'library'} += s/\bcublasDnrm2_v2\b/hipblasDnrm2/g; - $ft{'library'} += s/\bcublasDscal\b/hipblasDscal/g; - $ft{'library'} += s/\bcublasDscal_v2\b/hipblasDscal/g; - $ft{'library'} += s/\bcublasDtrsm\b/hipblasDtrsm/g; - $ft{'library'} += s/\bcublasDtrsm_v2\b/hipblasDtrsm/g; - $ft{'library'} += s/\bcublasGemmEx\b/hipblasGemmEx/g; - $ft{'library'} += s/\bcublasGetMatrix\b/hipblasGetMatrix/g; - $ft{'library'} += s/\bcublasGetPointerMode\b/hipblasGetPointerMode/g; - $ft{'library'} += s/\bcublasGetPointerMode_v2\b/hipblasGetPointerMode/g; - $ft{'library'} += s/\bcublasGetStream\b/hipblasGetStream/g; - $ft{'library'} += s/\bcublasGetStream_v2\b/hipblasGetStream/g; - $ft{'library'} += s/\bcublasGetVector\b/hipblasGetVector/g; - $ft{'library'} += s/\bcublasHgemm\b/hipblasHgemm/g; - $ft{'library'} += s/\bcublasIdamax\b/hipblasIdamax/g; - $ft{'library'} += s/\bcublasIdamax_v2\b/hipblasIdamax/g; - $ft{'library'} += s/\bcublasIsamax\b/hipblasIsamax/g; - $ft{'library'} += s/\bcublasIsamax_v2\b/hipblasIsamax/g; - $ft{'library'} += s/\bcublasSasum\b/hipblasSasum/g; - $ft{'library'} += s/\bcublasSasum_v2\b/hipblasSasum/g; - $ft{'library'} += s/\bcublasSaxpy\b/hipblasSaxpy/g; - $ft{'library'} += s/\bcublasSaxpy_v2\b/hipblasSaxpy/g; - $ft{'library'} += s/\bcublasScopy\b/hipblasScopy/g; - $ft{'library'} += s/\bcublasScopy_v2\b/hipblasScopy/g; - $ft{'library'} += s/\bcublasSdot\b/hipblasSdot/g; - $ft{'library'} += s/\bcublasSdot_v2\b/hipblasSdot/g; - $ft{'library'} += s/\bcublasSetMatrix\b/hipblasSetMatrix/g; - $ft{'library'} += s/\bcublasSetPointerMode\b/hipblasSetPointerMode/g; - $ft{'library'} += s/\bcublasSetPointerMode_v2\b/hipblasSetPointerMode/g; - $ft{'library'} += s/\bcublasSetStream\b/hipblasSetStream/g; - $ft{'library'} += s/\bcublasSetStream_v2\b/hipblasSetStream/g; - $ft{'library'} += s/\bcublasSetVector\b/hipblasSetVector/g; - $ft{'library'} += s/\bcublasSgeam\b/hipblasSgeam/g; - $ft{'library'} += s/\bcublasSgemm\b/hipblasSgemm/g; - $ft{'library'} += s/\bcublasSgemmBatched\b/hipblasSgemmBatched/g; - $ft{'library'} += s/\bcublasSgemmStridedBatched\b/hipblasSgemmStridedBatched/g; - $ft{'library'} += s/\bcublasSgemm_v2\b/hipblasSgemm/g; - $ft{'library'} += s/\bcublasSgemv\b/hipblasSgemv/g; - $ft{'library'} += s/\bcublasSgemv_v2\b/hipblasSgemv/g; - $ft{'library'} += s/\bcublasSger\b/hipblasSger/g; - $ft{'library'} += s/\bcublasSger_v2\b/hipblasSger/g; - $ft{'library'} += s/\bcublasSnrm2\b/hipblasSnrm2/g; - $ft{'library'} += s/\bcublasSnrm2_v2\b/hipblasSnrm2/g; - $ft{'library'} += s/\bcublasSscal\b/hipblasSscal/g; - $ft{'library'} += s/\bcublasSscal_v2\b/hipblasSscal/g; - $ft{'library'} += s/\bcublasStrsm\b/hipblasStrsm/g; - $ft{'library'} += s/\bcublasStrsm_v2\b/hipblasStrsm/g; - $ft{'library'} += s/\bcuda_stream\b/hip_stream/g; - $ft{'library'} += s/\bcudnnActivationBackward\b/hipdnnActivationBackward/g; - $ft{'library'} += s/\bcudnnActivationForward\b/hipdnnActivationForward/g; - $ft{'library'} += s/\bcudnnAddTensor\b/hipdnnAddTensor/g; - $ft{'library'} += s/\bcudnnBatchNormalizationBackward\b/hipdnnBatchNormalizationBackward/g; - $ft{'library'} += s/\bcudnnBatchNormalizationForwardInference\b/hipdnnBatchNormalizationForwardInference/g; - $ft{'library'} += s/\bcudnnBatchNormalizationForwardTraining\b/hipdnnBatchNormalizationForwardTraining/g; - $ft{'library'} += s/\bcudnnConvolutionBackwardBias\b/hipdnnConvolutionBackwardBias/g; - $ft{'library'} += s/\bcudnnConvolutionBackwardData\b/hipdnnConvolutionBackwardData/g; - $ft{'library'} += s/\bcudnnConvolutionBackwardFilter\b/hipdnnConvolutionBackwardFilter/g; - $ft{'library'} += s/\bcudnnConvolutionForward\b/hipdnnConvolutionForward/g; - $ft{'library'} += s/\bcudnnCreate\b/hipdnnCreate/g; - $ft{'library'} += s/\bcudnnCreateActivationDescriptor\b/hipdnnCreateActivationDescriptor/g; - $ft{'library'} += s/\bcudnnCreateConvolutionDescriptor\b/hipdnnCreateConvolutionDescriptor/g; - $ft{'library'} += s/\bcudnnCreateDropoutDescriptor\b/hipdnnCreateDropoutDescriptor/g; - $ft{'library'} += s/\bcudnnCreateFilterDescriptor\b/hipdnnCreateFilterDescriptor/g; - $ft{'library'} += s/\bcudnnCreateLRNDescriptor\b/hipdnnCreateLRNDescriptor/g; - $ft{'library'} += s/\bcudnnCreateOpTensorDescriptor\b/hipdnnCreateOpTensorDescriptor/g; - $ft{'library'} += s/\bcudnnCreatePersistentRNNPlan\b/hipdnnCreatePersistentRNNPlan/g; - $ft{'library'} += s/\bcudnnCreatePoolingDescriptor\b/hipdnnCreatePoolingDescriptor/g; - $ft{'library'} += s/\bcudnnCreateRNNDescriptor\b/hipdnnCreateRNNDescriptor/g; - $ft{'library'} += s/\bcudnnCreateReduceTensorDescriptor\b/hipdnnCreateReduceTensorDescriptor/g; - $ft{'library'} += s/\bcudnnCreateTensorDescriptor\b/hipdnnCreateTensorDescriptor/g; - $ft{'library'} += s/\bcudnnDeriveBNTensorDescriptor\b/hipdnnDeriveBNTensorDescriptor/g; - $ft{'library'} += s/\bcudnnDestroy\b/hipdnnDestroy/g; - $ft{'library'} += s/\bcudnnDestroyActivationDescriptor\b/hipdnnDestroyActivationDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyConvolutionDescriptor\b/hipdnnDestroyConvolutionDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyDropoutDescriptor\b/hipdnnDestroyDropoutDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyFilterDescriptor\b/hipdnnDestroyFilterDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyLRNDescriptor\b/hipdnnDestroyLRNDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyOpTensorDescriptor\b/hipdnnDestroyOpTensorDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyPersistentRNNPlan\b/hipdnnDestroyPersistentRNNPlan/g; - $ft{'library'} += s/\bcudnnDestroyPoolingDescriptor\b/hipdnnDestroyPoolingDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyRNNDescriptor\b/hipdnnDestroyRNNDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyReduceTensorDescriptor\b/hipdnnDestroyReduceTensorDescriptor/g; - $ft{'library'} += s/\bcudnnDestroyTensorDescriptor\b/hipdnnDestroyTensorDescriptor/g; - $ft{'library'} += s/\bcudnnDropoutGetStatesSize\b/hipdnnDropoutGetStatesSize/g; - $ft{'library'} += s/\bcudnnFindConvolutionBackwardDataAlgorithm\b/hipdnnFindConvolutionBackwardDataAlgorithm/g; - $ft{'library'} += s/\bcudnnFindConvolutionBackwardDataAlgorithmEx\b/hipdnnFindConvolutionBackwardDataAlgorithmEx/g; - $ft{'library'} += s/\bcudnnFindConvolutionBackwardFilterAlgorithm\b/hipdnnFindConvolutionBackwardFilterAlgorithm/g; - $ft{'library'} += s/\bcudnnFindConvolutionBackwardFilterAlgorithmEx\b/hipdnnFindConvolutionBackwardFilterAlgorithmEx/g; - $ft{'library'} += s/\bcudnnFindConvolutionForwardAlgorithm\b/hipdnnFindConvolutionForwardAlgorithm/g; - $ft{'library'} += s/\bcudnnFindConvolutionForwardAlgorithmEx\b/hipdnnFindConvolutionForwardAlgorithmEx/g; - $ft{'library'} += s/\bcudnnGetActivationDescriptor\b/hipdnnGetActivationDescriptor/g; - $ft{'library'} += s/\bcudnnGetConvolution2dDescriptor\b/hipdnnGetConvolution2dDescriptor/g; - $ft{'library'} += s/\bcudnnGetConvolution2dForwardOutputDim\b/hipdnnGetConvolution2dForwardOutputDim/g; - $ft{'library'} += s/\bcudnnGetConvolutionBackwardDataAlgorithm\b/hipdnnGetConvolutionBackwardDataAlgorithm/g; - $ft{'library'} += s/\bcudnnGetConvolutionBackwardDataWorkspaceSize\b/hipdnnGetConvolutionBackwardDataWorkspaceSize/g; - $ft{'library'} += s/\bcudnnGetConvolutionBackwardFilterAlgorithm\b/hipdnnGetConvolutionBackwardFilterAlgorithm/g; - $ft{'library'} += s/\bcudnnGetConvolutionBackwardFilterWorkspaceSize\b/hipdnnGetConvolutionBackwardFilterWorkspaceSize/g; - $ft{'library'} += s/\bcudnnGetConvolutionForwardAlgorithm\b/hipdnnGetConvolutionForwardAlgorithm/g; - $ft{'library'} += s/\bcudnnGetConvolutionForwardWorkspaceSize\b/hipdnnGetConvolutionForwardWorkspaceSize/g; - $ft{'library'} += s/\bcudnnGetErrorString\b/hipdnnGetErrorString/g; - $ft{'library'} += s/\bcudnnGetFilter4dDescriptor\b/hipdnnGetFilter4dDescriptor/g; - $ft{'library'} += s/\bcudnnGetFilterNdDescriptor\b/hipdnnGetFilterNdDescriptor/g; - $ft{'library'} += s/\bcudnnGetLRNDescriptor\b/hipdnnGetLRNDescriptor/g; - $ft{'library'} += s/\bcudnnGetOpTensorDescriptor\b/hipdnnGetOpTensorDescriptor/g; - $ft{'library'} += s/\bcudnnGetPooling2dDescriptor\b/hipdnnGetPooling2dDescriptor/g; - $ft{'library'} += s/\bcudnnGetPooling2dForwardOutputDim\b/hipdnnGetPooling2dForwardOutputDim/g; - $ft{'library'} += s/\bcudnnGetRNNDescriptor\b/hipdnnGetRNNDescriptor/g; - $ft{'library'} += s/\bcudnnGetRNNLinLayerBiasParams\b/hipdnnGetRNNLinLayerBiasParams/g; - $ft{'library'} += s/\bcudnnGetRNNLinLayerMatrixParams\b/hipdnnGetRNNLinLayerMatrixParams/g; - $ft{'library'} += s/\bcudnnGetRNNParamsSize\b/hipdnnGetRNNParamsSize/g; - $ft{'library'} += s/\bcudnnGetRNNTrainingReserveSize\b/hipdnnGetRNNTrainingReserveSize/g; - $ft{'library'} += s/\bcudnnGetRNNWorkspaceSize\b/hipdnnGetRNNWorkspaceSize/g; - $ft{'library'} += s/\bcudnnGetReduceTensorDescriptor\b/hipdnnGetReduceTensorDescriptor/g; - $ft{'library'} += s/\bcudnnGetReductionWorkspaceSize\b/hipdnnGetReductionWorkspaceSize/g; - $ft{'library'} += s/\bcudnnGetStream\b/hipdnnGetStream/g; - $ft{'library'} += s/\bcudnnGetTensor4dDescriptor\b/hipdnnGetTensor4dDescriptor/g; - $ft{'library'} += s/\bcudnnGetTensorNdDescriptor\b/hipdnnGetTensorNdDescriptor/g; - $ft{'library'} += s/\bcudnnGetVersion\b/hipdnnGetVersion/g; - $ft{'library'} += s/\bcudnnLRNCrossChannelBackward\b/hipdnnLRNCrossChannelBackward/g; - $ft{'library'} += s/\bcudnnLRNCrossChannelForward\b/hipdnnLRNCrossChannelForward/g; - $ft{'library'} += s/\bcudnnOpTensor\b/hipdnnOpTensor/g; - $ft{'library'} += s/\bcudnnPoolingBackward\b/hipdnnPoolingBackward/g; - $ft{'library'} += s/\bcudnnPoolingForward\b/hipdnnPoolingForward/g; - $ft{'library'} += s/\bcudnnRNNBackwardData\b/hipdnnRNNBackwardData/g; - $ft{'library'} += s/\bcudnnRNNBackwardWeights\b/hipdnnRNNBackwardWeights/g; - $ft{'library'} += s/\bcudnnRNNForwardInference\b/hipdnnRNNForwardInference/g; - $ft{'library'} += s/\bcudnnRNNForwardTraining\b/hipdnnRNNForwardTraining/g; - $ft{'library'} += s/\bcudnnReduceTensor\b/hipdnnReduceTensor/g; - $ft{'library'} += s/\bcudnnScaleTensor\b/hipdnnScaleTensor/g; - $ft{'library'} += s/\bcudnnSetActivationDescriptor\b/hipdnnSetActivationDescriptor/g; - $ft{'library'} += s/\bcudnnSetConvolution2dDescriptor\b/hipdnnSetConvolution2dDescriptor/g; - $ft{'library'} += s/\bcudnnSetConvolutionGroupCount\b/hipdnnSetConvolutionGroupCount/g; - $ft{'library'} += s/\bcudnnSetConvolutionMathType\b/hipdnnSetConvolutionMathType/g; - $ft{'library'} += s/\bcudnnSetConvolutionNdDescriptor\b/hipdnnSetConvolutionNdDescriptor/g; - $ft{'library'} += s/\bcudnnSetDropoutDescriptor\b/hipdnnSetDropoutDescriptor/g; - $ft{'library'} += s/\bcudnnSetFilter4dDescriptor\b/hipdnnSetFilter4dDescriptor/g; - $ft{'library'} += s/\bcudnnSetFilterNdDescriptor\b/hipdnnSetFilterNdDescriptor/g; - $ft{'library'} += s/\bcudnnSetLRNDescriptor\b/hipdnnSetLRNDescriptor/g; - $ft{'library'} += s/\bcudnnSetOpTensorDescriptor\b/hipdnnSetOpTensorDescriptor/g; - $ft{'library'} += s/\bcudnnSetPersistentRNNPlan\b/hipdnnSetPersistentRNNPlan/g; - $ft{'library'} += s/\bcudnnSetPooling2dDescriptor\b/hipdnnSetPooling2dDescriptor/g; - $ft{'library'} += s/\bcudnnSetPoolingNdDescriptor\b/hipdnnSetPoolingNdDescriptor/g; - $ft{'library'} += s/\bcudnnSetRNNDescriptor\b/hipdnnSetRNNDescriptor/g; - $ft{'library'} += s/\bcudnnSetRNNDescriptor_v5\b/hipdnnSetRNNDescriptor_v5/g; - $ft{'library'} += s/\bcudnnSetRNNDescriptor_v6\b/hipdnnSetRNNDescriptor_v6/g; - $ft{'library'} += s/\bcudnnSetReduceTensorDescriptor\b/hipdnnSetReduceTensorDescriptor/g; - $ft{'library'} += s/\bcudnnSetStream\b/hipdnnSetStream/g; - $ft{'library'} += s/\bcudnnSetTensor\b/hipdnnSetTensor/g; - $ft{'library'} += s/\bcudnnSetTensor4dDescriptor\b/hipdnnSetTensor4dDescriptor/g; - $ft{'library'} += s/\bcudnnSetTensor4dDescriptorEx\b/hipdnnSetTensor4dDescriptorEx/g; - $ft{'library'} += s/\bcudnnSetTensorNdDescriptor\b/hipdnnSetTensorNdDescriptor/g; - $ft{'library'} += s/\bcudnnSoftmaxBackward\b/hipdnnSoftmaxBackward/g; - $ft{'library'} += s/\bcudnnSoftmaxForward\b/hipdnnSoftmaxForward/g; - $ft{'library'} += s/\bcufftCreate\b/hipfftCreate/g; - $ft{'library'} += s/\bcufftDestroy\b/hipfftDestroy/g; - $ft{'library'} += s/\bcufftEstimate1d\b/hipfftEstimate1d/g; - $ft{'library'} += s/\bcufftEstimate2d\b/hipfftEstimate2d/g; - $ft{'library'} += s/\bcufftEstimate3d\b/hipfftEstimate3d/g; - $ft{'library'} += s/\bcufftEstimateMany\b/hipfftEstimateMany/g; - $ft{'library'} += s/\bcufftExecC2C\b/hipfftExecC2C/g; - $ft{'library'} += s/\bcufftExecC2R\b/hipfftExecC2R/g; - $ft{'library'} += s/\bcufftExecD2Z\b/hipfftExecD2Z/g; - $ft{'library'} += s/\bcufftExecR2C\b/hipfftExecR2C/g; - $ft{'library'} += s/\bcufftExecZ2D\b/hipfftExecZ2D/g; - $ft{'library'} += s/\bcufftExecZ2Z\b/hipfftExecZ2Z/g; - $ft{'library'} += s/\bcufftGetSize\b/hipfftGetSize/g; - $ft{'library'} += s/\bcufftGetSize1d\b/hipfftGetSize1d/g; - $ft{'library'} += s/\bcufftGetSize2d\b/hipfftGetSize2d/g; - $ft{'library'} += s/\bcufftGetSize3d\b/hipfftGetSize3d/g; - $ft{'library'} += s/\bcufftGetSizeMany\b/hipfftGetSizeMany/g; - $ft{'library'} += s/\bcufftGetSizeMany64\b/hipfftGetSizeMany64/g; - $ft{'library'} += s/\bcufftGetVersion\b/hipfftGetVersion/g; - $ft{'library'} += s/\bcufftMakePlan1d\b/hipfftMakePlan1d/g; - $ft{'library'} += s/\bcufftMakePlan2d\b/hipfftMakePlan2d/g; - $ft{'library'} += s/\bcufftMakePlan3d\b/hipfftMakePlan3d/g; - $ft{'library'} += s/\bcufftMakePlanMany\b/hipfftMakePlanMany/g; - $ft{'library'} += s/\bcufftMakePlanMany64\b/hipfftMakePlanMany64/g; - $ft{'library'} += s/\bcufftPlan1d\b/hipfftPlan1d/g; - $ft{'library'} += s/\bcufftPlan2d\b/hipfftPlan2d/g; - $ft{'library'} += s/\bcufftPlan3d\b/hipfftPlan3d/g; - $ft{'library'} += s/\bcufftPlanMany\b/hipfftPlanMany/g; - $ft{'library'} += s/\bcufftSetAutoAllocation\b/hipfftSetAutoAllocation/g; - $ft{'library'} += s/\bcufftSetStream\b/hipfftSetStream/g; - $ft{'library'} += s/\bcufftSetWorkArea\b/hipfftSetWorkArea/g; - $ft{'library'} += s/\bcurandCreateGenerator\b/hiprandCreateGenerator/g; - $ft{'library'} += s/\bcurandCreateGeneratorHost\b/hiprandCreateGeneratorHost/g; - $ft{'library'} += s/\bcurandCreatePoissonDistribution\b/hiprandCreatePoissonDistribution/g; - $ft{'library'} += s/\bcurandDestroyDistribution\b/hiprandDestroyDistribution/g; - $ft{'library'} += s/\bcurandDestroyGenerator\b/hiprandDestroyGenerator/g; - $ft{'library'} += s/\bcurandGenerate\b/hiprandGenerate/g; - $ft{'library'} += s/\bcurandGenerateLogNormal\b/hiprandGenerateLogNormal/g; - $ft{'library'} += s/\bcurandGenerateLogNormalDouble\b/hiprandGenerateLogNormalDouble/g; - $ft{'library'} += s/\bcurandGenerateNormal\b/hiprandGenerateNormal/g; - $ft{'library'} += s/\bcurandGenerateNormalDouble\b/hiprandGenerateNormalDouble/g; - $ft{'library'} += s/\bcurandGeneratePoisson\b/hiprandGeneratePoisson/g; - $ft{'library'} += s/\bcurandGenerateSeeds\b/hiprandGenerateSeeds/g; - $ft{'library'} += s/\bcurandGenerateUniform\b/hiprandGenerateUniform/g; - $ft{'library'} += s/\bcurandGenerateUniformDouble\b/hiprandGenerateUniformDouble/g; - $ft{'library'} += s/\bcurandGetVersion\b/hiprandGetVersion/g; - $ft{'library'} += s/\bcurandMakeMTGP32Constants\b/hiprandMakeMTGP32Constants/g; - $ft{'library'} += s/\bcurandMakeMTGP32KernelState\b/hiprandMakeMTGP32KernelState/g; - $ft{'library'} += s/\bcurandSetGeneratorOffset\b/hiprandSetGeneratorOffset/g; - $ft{'library'} += s/\bcurandSetPseudoRandomGeneratorSeed\b/hiprandSetPseudoRandomGeneratorSeed/g; - $ft{'library'} += s/\bcurandSetQuasiRandomGeneratorDimensions\b/hiprandSetQuasiRandomGeneratorDimensions/g; - $ft{'library'} += s/\bcurandSetStream\b/hiprandSetStream/g; - $ft{'library'} += s/\bcusparseCreate\b/hipsparseCreate/g; - $ft{'library'} += s/\bcusparseCreateCsrilu02Info\b/hipsparseCreateCsrilu02Info/g; - $ft{'library'} += s/\bcusparseCreateCsrsv2Info\b/hipsparseCreateCsrsv2Info/g; - $ft{'library'} += s/\bcusparseCreateHybMat\b/hipsparseCreateHybMat/g; - $ft{'library'} += s/\bcusparseCreateIdentityPermutation\b/hipsparseCreateIdentityPermutation/g; - $ft{'library'} += s/\bcusparseCreateMatDescr\b/hipsparseCreateMatDescr/g; - $ft{'library'} += s/\bcusparseDaxpyi\b/hipsparseDaxpyi/g; - $ft{'library'} += s/\bcusparseDcsr2csc\b/hipsparseDcsr2csc/g; - $ft{'library'} += s/\bcusparseDcsr2hyb\b/hipsparseDcsr2hyb/g; - $ft{'library'} += s/\bcusparseDcsrilu02\b/hipsparseDcsrilu02/g; - $ft{'library'} += s/\bcusparseDcsrilu02_analysis\b/hipsparseDcsrilu02_analysis/g; - $ft{'library'} += s/\bcusparseDcsrilu02_bufferSize\b/hipsparseDcsrilu02_bufferSize/g; - $ft{'library'} += s/\bcusparseDcsrilu02_bufferSizeExt\b/hipsparseDcsrilu02_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseDcsrmm\b/hipsparseDcsrmm/g; - $ft{'library'} += s/\bcusparseDcsrmm2\b/hipsparseDcsrmm2/g; - $ft{'library'} += s/\bcusparseDcsrmv\b/hipsparseDcsrmv/g; - $ft{'library'} += s/\bcusparseDcsrsv2_analysis\b/hipsparseDcsrsv2_analysis/g; - $ft{'library'} += s/\bcusparseDcsrsv2_bufferSize\b/hipsparseDcsrsv2_bufferSize/g; - $ft{'library'} += s/\bcusparseDcsrsv2_bufferSizeExt\b/hipsparseDcsrsv2_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseDcsrsv2_solve\b/hipsparseDcsrsv2_solve/g; - $ft{'library'} += s/\bcusparseDdoti\b/hipsparseDdoti/g; - $ft{'library'} += s/\bcusparseDestroy\b/hipsparseDestroy/g; - $ft{'library'} += s/\bcusparseDestroyCsrilu02Info\b/hipsparseDestroyCsrilu02Info/g; - $ft{'library'} += s/\bcusparseDestroyCsrsv2Info\b/hipsparseDestroyCsrsv2Info/g; - $ft{'library'} += s/\bcusparseDestroyHybMat\b/hipsparseDestroyHybMat/g; - $ft{'library'} += s/\bcusparseDestroyMatDescr\b/hipsparseDestroyMatDescr/g; - $ft{'library'} += s/\bcusparseDgthr\b/hipsparseDgthr/g; - $ft{'library'} += s/\bcusparseDgthrz\b/hipsparseDgthrz/g; - $ft{'library'} += s/\bcusparseDhybmv\b/hipsparseDhybmv/g; - $ft{'library'} += s/\bcusparseDroti\b/hipsparseDroti/g; - $ft{'library'} += s/\bcusparseDsctr\b/hipsparseDsctr/g; - $ft{'library'} += s/\bcusparseGetMatDiagType\b/hipsparseGetMatDiagType/g; - $ft{'library'} += s/\bcusparseGetMatFillMode\b/hipsparseGetMatFillMode/g; - $ft{'library'} += s/\bcusparseGetMatIndexBase\b/hipsparseGetMatIndexBase/g; - $ft{'library'} += s/\bcusparseGetMatType\b/hipsparseGetMatType/g; - $ft{'library'} += s/\bcusparseGetPointerMode\b/hipsparseGetPointerMode/g; - $ft{'library'} += s/\bcusparseGetStream\b/hipsparseGetStream/g; - $ft{'library'} += s/\bcusparseGetVersion\b/hipsparseGetVersion/g; - $ft{'library'} += s/\bcusparseSaxpyi\b/hipsparseSaxpyi/g; - $ft{'library'} += s/\bcusparseScsr2csc\b/hipsparseScsr2csc/g; - $ft{'library'} += s/\bcusparseScsr2hyb\b/hipsparseScsr2hyb/g; - $ft{'library'} += s/\bcusparseScsrilu02\b/hipsparseScsrilu02/g; - $ft{'library'} += s/\bcusparseScsrilu02_analysis\b/hipsparseScsrilu02_analysis/g; - $ft{'library'} += s/\bcusparseScsrilu02_bufferSize\b/hipsparseScsrilu02_bufferSize/g; - $ft{'library'} += s/\bcusparseScsrilu02_bufferSizeExt\b/hipsparseScsrilu02_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseScsrmm\b/hipsparseScsrmm/g; - $ft{'library'} += s/\bcusparseScsrmm2\b/hipsparseScsrmm2/g; - $ft{'library'} += s/\bcusparseScsrmv\b/hipsparseScsrmv/g; - $ft{'library'} += s/\bcusparseScsrsv2_analysis\b/hipsparseScsrsv2_analysis/g; - $ft{'library'} += s/\bcusparseScsrsv2_bufferSize\b/hipsparseScsrsv2_bufferSize/g; - $ft{'library'} += s/\bcusparseScsrsv2_bufferSizeExt\b/hipsparseScsrsv2_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseScsrsv2_solve\b/hipsparseScsrsv2_solve/g; - $ft{'library'} += s/\bcusparseSdoti\b/hipsparseSdoti/g; - $ft{'library'} += s/\bcusparseSetMatDiagType\b/hipsparseSetMatDiagType/g; - $ft{'library'} += s/\bcusparseSetMatFillMode\b/hipsparseSetMatFillMode/g; - $ft{'library'} += s/\bcusparseSetMatIndexBase\b/hipsparseSetMatIndexBase/g; - $ft{'library'} += s/\bcusparseSetMatType\b/hipsparseSetMatType/g; - $ft{'library'} += s/\bcusparseSetPointerMode\b/hipsparseSetPointerMode/g; - $ft{'library'} += s/\bcusparseSetStream\b/hipsparseSetStream/g; - $ft{'library'} += s/\bcusparseSgthr\b/hipsparseSgthr/g; - $ft{'library'} += s/\bcusparseSgthrz\b/hipsparseSgthrz/g; - $ft{'library'} += s/\bcusparseShybmv\b/hipsparseShybmv/g; - $ft{'library'} += s/\bcusparseSroti\b/hipsparseSroti/g; - $ft{'library'} += s/\bcusparseSsctr\b/hipsparseSsctr/g; - $ft{'library'} += s/\bcusparseXbsrilu02_zeroPivot\b/hipsparseXbsrilu02_zeroPivot/g; - $ft{'library'} += s/\bcusparseXcoo2csr\b/hipsparseXcoo2csr/g; - $ft{'library'} += s/\bcusparseXcoosortByColumn\b/hipsparseXcoosortByColumn/g; - $ft{'library'} += s/\bcusparseXcoosortByRow\b/hipsparseXcoosortByRow/g; - $ft{'library'} += s/\bcusparseXcoosort_bufferSizeExt\b/hipsparseXcoosort_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseXcsr2coo\b/hipsparseXcsr2coo/g; - $ft{'library'} += s/\bcusparseXcsrilu02_zeroPivot\b/hipsparseXcsrilu02_zeroPivot/g; - $ft{'library'} += s/\bcusparseXcsrsort\b/hipsparseXcsrsort/g; - $ft{'library'} += s/\bcusparseXcsrsort_bufferSizeExt\b/hipsparseXcsrsort_bufferSizeExt/g; - $ft{'library'} += s/\bcusparseXcsrsv2_zeroPivot\b/hipsparseXcsrsv2_zeroPivot/g; - $ft{'device_library'} += s/\bcurand\b/hiprand/g; - $ft{'device_library'} += s/\bcurand_discrete\b/hiprand_discrete/g; - $ft{'device_library'} += s/\bcurand_discrete4\b/hiprand_discrete4/g; - $ft{'device_library'} += s/\bcurand_init\b/hiprand_init/g; - $ft{'device_library'} += s/\bcurand_log_normal\b/hiprand_log_normal/g; - $ft{'device_library'} += s/\bcurand_log_normal2\b/hiprand_log_normal2/g; - $ft{'device_library'} += s/\bcurand_log_normal2_double\b/hiprand_log_normal2_double/g; - $ft{'device_library'} += s/\bcurand_log_normal4\b/hiprand_log_normal4/g; - $ft{'device_library'} += s/\bcurand_log_normal4_double\b/hiprand_log_normal4_double/g; - $ft{'device_library'} += s/\bcurand_log_normal_double\b/hiprand_log_normal_double/g; - $ft{'device_library'} += s/\bcurand_normal\b/hiprand_normal/g; - $ft{'device_library'} += s/\bcurand_normal2\b/hiprand_normal2/g; - $ft{'device_library'} += s/\bcurand_normal2_double\b/hiprand_normal2_double/g; - $ft{'device_library'} += s/\bcurand_normal4\b/hiprand_normal4/g; - $ft{'device_library'} += s/\bcurand_normal4_double\b/hiprand_normal4_double/g; - $ft{'device_library'} += s/\bcurand_normal_double\b/hiprand_normal_double/g; - $ft{'device_library'} += s/\bcurand_poisson\b/hiprand_poisson/g; - $ft{'device_library'} += s/\bcurand_poisson4\b/hiprand_poisson4/g; - $ft{'device_library'} += s/\bcurand_uniform\b/hiprand_uniform/g; - $ft{'device_library'} += s/\bcurand_uniform2_double\b/hiprand_uniform2_double/g; - $ft{'device_library'} += s/\bcurand_uniform4\b/hiprand_uniform4/g; - $ft{'device_library'} += s/\bcurand_uniform4_double\b/hiprand_uniform4_double/g; - $ft{'device_library'} += s/\bcurand_uniform_double\b/hiprand_uniform_double/g; - $ft{'include'} += s/\bcaffe2\/core\/common_cudnn.h\b/caffe2\/core\/hip\/common_miopen.h/g; - $ft{'include'} += s/\bcaffe2\/operators\/spatial_batch_norm_op.h\b/caffe2\/operators\/hip\/spatial_batch_norm_op_miopen.hip/g; - $ft{'include'} += s/\bchannel_descriptor.h\b/hip\/channel_descriptor.h/g; - $ft{'include'} += s/\bcooperative_groups.h\b/hip\/hip_cooperative_groups.h/g; - $ft{'include'} += s/\bcuda_fp16.h\b/hip\/hip_fp16.h/g; - $ft{'include'} += s/\bcuda_profiler_api.h\b/hip\/hip_profile.h/g; - $ft{'include'} += s/\bcuda_runtime_api.h\b/hip\/hip_runtime_api.h/g; - $ft{'include'} += s/\bcuda_texture_types.h\b/hip\/hip_texture_types.h/g; - $ft{'include'} += s/\bcurand_discrete.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_discrete2.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_globals.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_kernel.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_lognormal.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_mrg32k3a.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_mtgp32.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_mtgp32_host.h\b/hiprand_mtgp32_host.h/g; - $ft{'include'} += s/\bcurand_mtgp32_kernel.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_mtgp32dc_p_11213.h\b/rocrand_mtgp32_11213.h/g; - $ft{'include'} += s/\bcurand_normal.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_normal_static.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_philox4x32_x.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_poisson.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_precalc.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bcurand_uniform.h\b/hiprand_kernel.h/g; - $ft{'include'} += s/\bdevice_functions.h\b/hip\/device_functions.h/g; - $ft{'include'} += s/\bdriver_types.h\b/hip\/driver_types.h/g; - $ft{'include'} += s/\btexture_fetch_functions.h\b//g; - $ft{'include'} += s/\bvector_types.h\b/hip\/hip_vector_types.h/g; - $ft{'include_cuda_main_header'} += s/\bcuComplex.h\b/hip\/hip_complex.h/g; - $ft{'include_cuda_main_header'} += s/\bcublas.h\b/hipblas.h/g; - $ft{'include_cuda_main_header'} += s/\bcublas_v2.h\b/hipblas.h/g; - $ft{'include_cuda_main_header'} += s/\bcuda.h\b/hip\/hip_runtime.h/g; - $ft{'include_cuda_main_header'} += s/\bcuda_runtime.h\b/hip\/hip_runtime.h/g; - $ft{'include_cuda_main_header'} += s/\bcudnn.h\b/hipDNN.h/g; - $ft{'include_cuda_main_header'} += s/\bcufft.h\b/hipfft.h/g; - $ft{'include_cuda_main_header'} += s/\bcurand.h\b/hiprand.h/g; - $ft{'include_cuda_main_header'} += s/\bcusparse.h\b/hipsparse.h/g; - $ft{'include_cuda_main_header'} += s/\bcusparse_v2.h\b/hipsparse.h/g; - $ft{'type'} += s/\bCUDAContext\b/HIPContext/g; - $ft{'type'} += s/\bCUDA_ARRAY3D_DESCRIPTOR\b/HIP_ARRAY3D_DESCRIPTOR/g; - $ft{'type'} += s/\bCUDA_ARRAY3D_DESCRIPTOR_st\b/HIP_ARRAY3D_DESCRIPTOR/g; - $ft{'type'} += s/\bCUDA_ARRAY_DESCRIPTOR\b/HIP_ARRAY_DESCRIPTOR/g; - $ft{'type'} += s/\bCUDA_ARRAY_DESCRIPTOR_st\b/HIP_ARRAY_DESCRIPTOR/g; - $ft{'type'} += s/\bCUDA_MEMCPY2D\b/hip_Memcpy2D/g; - $ft{'type'} += s/\bCUDA_MEMCPY2D_st\b/hip_Memcpy2D/g; - $ft{'type'} += s/\bCUaddress_mode\b/hipTextureAddressMode/g; - $ft{'type'} += s/\bCUaddress_mode_enum\b/hipTextureAddressMode/g; - $ft{'type'} += s/\bCUarray\b/hipArray */g; - $ft{'type'} += s/\bCUarray_format\b/hipArray_format/g; - $ft{'type'} += s/\bCUarray_format_enum\b/hipArray_format/g; - $ft{'type'} += s/\bCUarray_st\b/hipArray/g; - $ft{'type'} += s/\bCUcomputemode\b/hipComputeMode/g; - $ft{'type'} += s/\bCUcomputemode_enum\b/hipComputeMode/g; - $ft{'type'} += s/\bCUcontext\b/hipCtx_t/g; - $ft{'type'} += s/\bCUctx_st\b/ihipCtx_t/g; - $ft{'type'} += s/\bCUdevice\b/hipDevice_t/g; - $ft{'type'} += s/\bCUdevice_attribute\b/hipDeviceAttribute_t/g; - $ft{'type'} += s/\bCUdevice_attribute_enum\b/hipDeviceAttribute_t/g; - $ft{'type'} += s/\bCUdeviceptr\b/hipDeviceptr_t/g; - $ft{'type'} += s/\bCUevent\b/hipEvent_t/g; - $ft{'type'} += s/\bCUevent_st\b/ihipEvent_t/g; - $ft{'type'} += s/\bCUfilter_mode\b/hipTextureFilterMode/g; - $ft{'type'} += s/\bCUfilter_mode_enum\b/hipTextureFilterMode/g; - $ft{'type'} += s/\bCUfunc_cache\b/hipFuncCache_t/g; - $ft{'type'} += s/\bCUfunc_cache_enum\b/hipFuncCache_t/g; - $ft{'type'} += s/\bCUfunc_st\b/ihipModuleSymbol_t/g; - $ft{'type'} += s/\bCUfunction\b/hipFunction_t/g; - $ft{'type'} += s/\bCUfunction_attribute\b/hipFunction_attribute/g; - $ft{'type'} += s/\bCUfunction_attribute_enum\b/hipFunction_attribute/g; - $ft{'type'} += s/\bCUipcEventHandle\b/ihipIpcEventHandle_t/g; - $ft{'type'} += s/\bCUipcEventHandle_st\b/ihipIpcEventHandle_t/g; - $ft{'type'} += s/\bCUipcMemHandle\b/hipIpcMemHandle_t/g; - $ft{'type'} += s/\bCUipcMemHandle_st\b/hipIpcMemHandle_st/g; - $ft{'type'} += s/\bCUjit_option\b/hipJitOption/g; - $ft{'type'} += s/\bCUjit_option_enum\b/hipJitOption/g; - $ft{'type'} += s/\bCUlimit\b/hipLimit_t/g; - $ft{'type'} += s/\bCUlimit_enum\b/hipLimit_t/g; - $ft{'type'} += s/\bCUmemorytype\b/hipMemoryType/g; - $ft{'type'} += s/\bCUmemorytype_enum\b/hipMemoryType/g; - $ft{'type'} += s/\bCUmipmappedArray\b/hipMipmappedArray_t/g; - $ft{'type'} += s/\bCUmipmappedArray_st\b/hipMipmappedArray_st/g; - $ft{'type'} += s/\bCUmod_st\b/ihipModule_t/g; - $ft{'type'} += s/\bCUmodule\b/hipModule_t/g; - $ft{'type'} += s/\bCUresourceViewFormat\b/hipResourceViewFormat/g; - $ft{'type'} += s/\bCUresourceViewFormat_enum\b/hipResourceViewFormat/g; - $ft{'type'} += s/\bCUresourcetype\b/hipResourceType/g; - $ft{'type'} += s/\bCUresourcetype_enum\b/hipResourceType/g; - $ft{'type'} += s/\bCUresult\b/hipError_t/g; - $ft{'type'} += s/\bCUsharedconfig\b/hipSharedMemConfig/g; - $ft{'type'} += s/\bCUsharedconfig_enum\b/hipSharedMemConfig/g; - $ft{'type'} += s/\bCUstream\b/hipStream_t/g; - $ft{'type'} += s/\bCUstreamCallback\b/hipStreamCallback_t/g; - $ft{'type'} += s/\bCUstream_st\b/ihipStream_t/g; - $ft{'type'} += s/\bCUtexObject\b/hipTextureObject_t/g; - $ft{'type'} += s/\bCUtexref_st\b/textureReference/g; - $ft{'type'} += s/\bcsrilu02Info_t\b/csrilu02Info_t/g; - $ft{'type'} += s/\bcsrsv2Info_t\b/csrsv2Info_t/g; - $ft{'type'} += s/\bcuComplex\b/hipComplex/g; - $ft{'type'} += s/\bcuDoubleComplex\b/hipDoubleComplex/g; - $ft{'type'} += s/\bcuFloatComplex\b/hipFloatComplex/g; - $ft{'type'} += s/\bcublasDataType_t\b/hipblasDatatype_t/g; - $ft{'type'} += s/\bcublasDiagType_t\b/hipblasDiagType_t/g; - $ft{'type'} += s/\bcublasFillMode_t\b/hipblasFillMode_t/g; - $ft{'type'} += s/\bcublasGemmAlgo_t\b/hipblasGemmAlgo_t/g; - $ft{'type'} += s/\bcublasHandle_t\b/hipblasHandle_t/g; - $ft{'type'} += s/\bcublasOperation_t\b/hipblasOperation_t/g; - $ft{'type'} += s/\bcublasPointerMode_t\b/hipblasPointerMode_t/g; - $ft{'type'} += s/\bcublasSideMode_t\b/hipblasSideMode_t/g; - $ft{'type'} += s/\bcublasStatus\b/hipblasStatus_t/g; - $ft{'type'} += s/\bcublasStatus_t\b/hipblasStatus_t/g; - $ft{'type'} += s/\bcudaArray\b/hipArray/g; - $ft{'type'} += s/\bcudaArray_const_t\b/hipArray_const_t/g; - $ft{'type'} += s/\bcudaArray_t\b/hipArray_t/g; - $ft{'type'} += s/\bcudaChannelFormatDesc\b/hipChannelFormatDesc/g; - $ft{'type'} += s/\bcudaChannelFormatKind\b/hipChannelFormatKind/g; - $ft{'type'} += s/\bcudaComputeMode\b/hipComputeMode/g; - $ft{'type'} += s/\bcudaDataType\b/hipblasDatatype_t/g; - $ft{'type'} += s/\bcudaDataType_t\b/hipblasDatatype_t/g; - $ft{'type'} += s/\bcudaDeviceAttr\b/hipDeviceAttribute_t/g; - $ft{'type'} += s/\bcudaDeviceProp\b/hipDeviceProp_t/g; - $ft{'type'} += s/\bcudaError\b/hipError_t/g; - $ft{'type'} += s/\bcudaError_enum\b/hipError_t/g; - $ft{'type'} += s/\bcudaError_t\b/hipError_t/g; - $ft{'type'} += s/\bcudaEvent_t\b/hipEvent_t/g; - $ft{'type'} += s/\bcudaExtent\b/hipExtent/g; - $ft{'type'} += s/\bcudaFuncAttributes\b/hipFuncAttributes/g; - $ft{'type'} += s/\bcudaFuncCache\b/hipFuncCache_t/g; - $ft{'type'} += s/\bcudaIpcEventHandle_st\b/ihipIpcEventHandle_t/g; - $ft{'type'} += s/\bcudaIpcEventHandle_t\b/ihipIpcEventHandle_t/g; - $ft{'type'} += s/\bcudaIpcMemHandle_st\b/hipIpcMemHandle_st/g; - $ft{'type'} += s/\bcudaIpcMemHandle_t\b/hipIpcMemHandle_t/g; - $ft{'type'} += s/\bcudaLaunchParams\b/hipLaunchParams/g; - $ft{'type'} += s/\bcudaLimit\b/hipLimit_t/g; - $ft{'type'} += s/\bcudaMemcpy3DParms\b/hipMemcpy3DParms/g; - $ft{'type'} += s/\bcudaMemcpyKind\b/hipMemcpyKind/g; - $ft{'type'} += s/\bcudaMipmappedArray\b/hipMipmappedArray/g; - $ft{'type'} += s/\bcudaMipmappedArray_const_t\b/hipMipmappedArray_const_t/g; - $ft{'type'} += s/\bcudaMipmappedArray_t\b/hipMipmappedArray_t/g; - $ft{'type'} += s/\bcudaPitchedPtr\b/hipPitchedPtr/g; - $ft{'type'} += s/\bcudaPointerAttributes\b/hipPointerAttribute_t/g; - $ft{'type'} += s/\bcudaPos\b/hipPos/g; - $ft{'type'} += s/\bcudaResourceDesc\b/hipResourceDesc/g; - $ft{'type'} += s/\bcudaResourceType\b/hipResourceType/g; - $ft{'type'} += s/\bcudaResourceViewDesc\b/hipResourceViewDesc/g; - $ft{'type'} += s/\bcudaResourceViewFormat\b/hipResourceViewFormat/g; - $ft{'type'} += s/\bcudaSharedMemConfig\b/hipSharedMemConfig/g; - $ft{'type'} += s/\bcudaStreamCallback_t\b/hipStreamCallback_t/g; - $ft{'type'} += s/\bcudaStream_t\b/hipStream_t/g; - $ft{'type'} += s/\bcudaSurfaceBoundaryMode\b/hipSurfaceBoundaryMode/g; - $ft{'type'} += s/\bcudaSurfaceObject_t\b/hipSurfaceObject_t/g; - $ft{'type'} += s/\bcudaTextureAddressMode\b/hipTextureAddressMode/g; - $ft{'type'} += s/\bcudaTextureDesc\b/hipTextureDesc/g; - $ft{'type'} += s/\bcudaTextureFilterMode\b/hipTextureFilterMode/g; - $ft{'type'} += s/\bcudaTextureObject_t\b/hipTextureObject_t/g; - $ft{'type'} += s/\bcudaTextureReadMode\b/hipTextureReadMode/g; - $ft{'type'} += s/\bcudnnActivationDescriptor_t\b/hipdnnActivationDescriptor_t/g; - $ft{'type'} += s/\bcudnnActivationMode_t\b/hipdnnActivationMode_t/g; - $ft{'type'} += s/\bcudnnBatchNormMode_t\b/hipdnnBatchNormMode_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdDataAlgoPerf_t\b/hipdnnConvolutionBwdDataAlgoPerf_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdDataAlgo_t\b/hipdnnConvolutionBwdDataAlgo_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdDataPreference_t\b/hipdnnConvolutionBwdDataPreference_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdFilterAlgoPerf_t\b/hipdnnConvolutionBwdFilterAlgoPerf_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdFilterAlgo_t\b/hipdnnConvolutionBwdFilterAlgo_t/g; - $ft{'type'} += s/\bcudnnConvolutionBwdFilterPreference_t\b/hipdnnConvolutionBwdFilterPreference_t/g; - $ft{'type'} += s/\bcudnnConvolutionDescriptor_t\b/hipdnnConvolutionDescriptor_t/g; - $ft{'type'} += s/\bcudnnConvolutionFwdAlgoPerf_t\b/hipdnnConvolutionFwdAlgoPerf_t/g; - $ft{'type'} += s/\bcudnnConvolutionFwdAlgo_t\b/hipdnnConvolutionFwdAlgo_t/g; - $ft{'type'} += s/\bcudnnConvolutionFwdPreference_t\b/hipdnnConvolutionFwdPreference_t/g; - $ft{'type'} += s/\bcudnnConvolutionMode_t\b/hipdnnConvolutionMode_t/g; - $ft{'type'} += s/\bcudnnDataType_t\b/hipdnnDataType_t/g; - $ft{'type'} += s/\bcudnnDirectionMode_t\b/hipdnnDirectionMode_t/g; - $ft{'type'} += s/\bcudnnDropoutDescriptor_t\b/hipdnnDropoutDescriptor_t/g; - $ft{'type'} += s/\bcudnnFilterDescriptor_t\b/hipdnnFilterDescriptor_t/g; - $ft{'type'} += s/\bcudnnHandle_t\b/hipdnnHandle_t/g; - $ft{'type'} += s/\bcudnnIndicesType_t\b/hipdnnIndicesType_t/g; - $ft{'type'} += s/\bcudnnLRNDescriptor_t\b/hipdnnLRNDescriptor_t/g; - $ft{'type'} += s/\bcudnnLRNMode_t\b/hipdnnLRNMode_t/g; - $ft{'type'} += s/\bcudnnMathType_t\b/hipdnnMathType_t/g; - $ft{'type'} += s/\bcudnnNanPropagation_t\b/hipdnnNanPropagation_t/g; - $ft{'type'} += s/\bcudnnOpTensorDescriptor_t\b/hipdnnOpTensorDescriptor_t/g; - $ft{'type'} += s/\bcudnnOpTensorOp_t\b/hipdnnOpTensorOp_t/g; - $ft{'type'} += s/\bcudnnPersistentRNNPlan_t\b/hipdnnPersistentRNNPlan_t/g; - $ft{'type'} += s/\bcudnnPoolingDescriptor_t\b/hipdnnPoolingDescriptor_t/g; - $ft{'type'} += s/\bcudnnPoolingMode_t\b/hipdnnPoolingMode_t/g; - $ft{'type'} += s/\bcudnnRNNAlgo_t\b/hipdnnRNNAlgo_t/g; - $ft{'type'} += s/\bcudnnRNNBiasMode_t\b/hipdnnRNNBiasMode_t/g; - $ft{'type'} += s/\bcudnnRNNDescriptor_t\b/hipdnnRNNDescriptor_t/g; - $ft{'type'} += s/\bcudnnRNNInputMode_t\b/hipdnnRNNInputMode_t/g; - $ft{'type'} += s/\bcudnnRNNMode_t\b/hipdnnRNNMode_t/g; - $ft{'type'} += s/\bcudnnReduceTensorDescriptor_t\b/hipdnnReduceTensorDescriptor_t/g; - $ft{'type'} += s/\bcudnnReduceTensorIndices_t\b/hipdnnReduceTensorIndices_t/g; - $ft{'type'} += s/\bcudnnReduceTensorOp_t\b/hipdnnReduceTensorOp_t/g; - $ft{'type'} += s/\bcudnnSoftmaxAlgorithm_t\b/hipdnnSoftmaxAlgorithm_t/g; - $ft{'type'} += s/\bcudnnSoftmaxMode_t\b/hipdnnSoftmaxMode_t/g; - $ft{'type'} += s/\bcudnnStatus_t\b/hipdnnStatus_t/g; - $ft{'type'} += s/\bcudnnTensorDescriptor_t\b/hipdnnTensorDescriptor_t/g; - $ft{'type'} += s/\bcudnnTensorFormat_t\b/hipdnnTensorFormat_t/g; - $ft{'type'} += s/\bcufftComplex\b/hipfftComplex/g; - $ft{'type'} += s/\bcufftDoubleComplex\b/hipfftDoubleComplex/g; - $ft{'type'} += s/\bcufftDoubleReal\b/hipfftDoubleReal/g; - $ft{'type'} += s/\bcufftHandle\b/hipfftHandle/g; - $ft{'type'} += s/\bcufftReal\b/hipfftReal/g; - $ft{'type'} += s/\bcufftResult\b/hipfftResult/g; - $ft{'type'} += s/\bcufftResult_t\b/hipfftResult_t/g; - $ft{'type'} += s/\bcufftType\b/hipfftType/g; - $ft{'type'} += s/\bcufftType_t\b/hipfftType_t/g; - $ft{'type'} += s/\bcurandDirectionVectors32_t\b/hiprandDirectionVectors32_t/g; - $ft{'type'} += s/\bcurandDiscreteDistribution_st\b/hiprandDiscreteDistribution_st/g; - $ft{'type'} += s/\bcurandDiscreteDistribution_t\b/hiprandDiscreteDistribution_t/g; - $ft{'type'} += s/\bcurandGenerator_st\b/hiprandGenerator_st/g; - $ft{'type'} += s/\bcurandGenerator_t\b/hiprandGenerator_t/g; - $ft{'type'} += s/\bcurandRngType\b/hiprandRngType_t/g; - $ft{'type'} += s/\bcurandRngType_t\b/hiprandRngType_t/g; - $ft{'type'} += s/\bcurandState\b/hiprandState/g; - $ft{'type'} += s/\bcurandStateMRG32k3a\b/hiprandStateMRG32k3a/g; - $ft{'type'} += s/\bcurandStateMRG32k3a_t\b/hiprandStateMRG32k3a_t/g; - $ft{'type'} += s/\bcurandStateMtgp32\b/hiprandStateMtgp32/g; - $ft{'type'} += s/\bcurandStateMtgp32_t\b/hiprandStateMtgp32_t/g; - $ft{'type'} += s/\bcurandStatePhilox4_32_10\b/hiprandStatePhilox4_32_10/g; - $ft{'type'} += s/\bcurandStatePhilox4_32_10_t\b/hiprandStatePhilox4_32_10_t/g; - $ft{'type'} += s/\bcurandStateSobol32\b/hiprandStateSobol32/g; - $ft{'type'} += s/\bcurandStateSobol32_t\b/hiprandStateSobol32_t/g; - $ft{'type'} += s/\bcurandStateXORWOW\b/hiprandStateXORWOW/g; - $ft{'type'} += s/\bcurandStateXORWOW_t\b/hiprandStateXORWOW_t/g; - $ft{'type'} += s/\bcurandState_t\b/hiprandState_t/g; - $ft{'type'} += s/\bcurandStatus\b/hiprandStatus_t/g; - $ft{'type'} += s/\bcurandStatus_t\b/hiprandStatus_t/g; - $ft{'type'} += s/\bcusparseAction_t\b/hipsparseAction_t/g; - $ft{'type'} += s/\bcusparseDiagType_t\b/hipsparseDiagType_t/g; - $ft{'type'} += s/\bcusparseFillMode_t\b/hipsparseFillMode_t/g; - $ft{'type'} += s/\bcusparseHandle_t\b/hipsparseHandle_t/g; - $ft{'type'} += s/\bcusparseHybMat_t\b/hipsparseHybMat_t/g; - $ft{'type'} += s/\bcusparseHybPartition_t\b/hipsparseHybPartition_t/g; - $ft{'type'} += s/\bcusparseIndexBase_t\b/hipsparseIndexBase_t/g; - $ft{'type'} += s/\bcusparseMatDescr_t\b/hipsparseMatDescr_t/g; - $ft{'type'} += s/\bcusparseMatrixType_t\b/hipsparseMatrixType_t/g; - $ft{'type'} += s/\bcusparseOperation_t\b/hipsparseOperation_t/g; - $ft{'type'} += s/\bcusparsePointerMode_t\b/hipsparsePointerMode_t/g; - $ft{'type'} += s/\bcusparseSolvePolicy_t\b/hipsparseSolvePolicy_t/g; - $ft{'type'} += s/\bcusparseStatus_t\b/hipsparseStatus_t/g; - $ft{'type'} += s/\bwarpSize\b/hipWarpSize/g; - $ft{'numeric_literal'} += s/\bCUBLAS_DIAG_NON_UNIT\b/HIPBLAS_DIAG_NON_UNIT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_DIAG_UNIT\b/HIPBLAS_DIAG_UNIT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_FULL\b/HIPBLAS_FILL_MODE_FULL/g; - $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_LOWER\b/HIPBLAS_FILL_MODE_LOWER/g; - $ft{'numeric_literal'} += s/\bCUBLAS_FILL_MODE_UPPER\b/HIPBLAS_FILL_MODE_UPPER/g; - $ft{'numeric_literal'} += s/\bCUBLAS_GEMM_DEFAULT\b/HIPBLAS_GEMM_DEFAULT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_GEMM_DFALT\b/HIPBLAS_GEMM_DEFAULT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_OP_C\b/HIPBLAS_OP_C/g; - $ft{'numeric_literal'} += s/\bCUBLAS_OP_HERMITAN\b/HIPBLAS_OP_C/g; - $ft{'numeric_literal'} += s/\bCUBLAS_OP_N\b/HIPBLAS_OP_N/g; - $ft{'numeric_literal'} += s/\bCUBLAS_OP_T\b/HIPBLAS_OP_T/g; - $ft{'numeric_literal'} += s/\bCUBLAS_POINTER_MODE_DEVICE\b/HIPBLAS_POINTER_MODE_DEVICE/g; - $ft{'numeric_literal'} += s/\bCUBLAS_POINTER_MODE_HOST\b/HIPBLAS_POINTER_MODE_HOST/g; - $ft{'numeric_literal'} += s/\bCUBLAS_SIDE_LEFT\b/HIPBLAS_SIDE_LEFT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_SIDE_RIGHT\b/HIPBLAS_SIDE_RIGHT/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_ALLOC_FAILED\b/HIPBLAS_STATUS_ALLOC_FAILED/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_ARCH_MISMATCH\b/HIPBLAS_STATUS_ARCH_MISMATCH/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_EXECUTION_FAILED\b/HIPBLAS_STATUS_EXECUTION_FAILED/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_INTERNAL_ERROR\b/HIPBLAS_STATUS_INTERNAL_ERROR/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_INVALID_VALUE\b/HIPBLAS_STATUS_INVALID_VALUE/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_MAPPING_ERROR\b/HIPBLAS_STATUS_MAPPING_ERROR/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_NOT_INITIALIZED\b/HIPBLAS_STATUS_NOT_INITIALIZED/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_NOT_SUPPORTED\b/HIPBLAS_STATUS_NOT_SUPPORTED/g; - $ft{'numeric_literal'} += s/\bCUBLAS_STATUS_SUCCESS\b/HIPBLAS_STATUS_SUCCESS/g; - $ft{'numeric_literal'} += s/\bCUDA_C_16F\b/HIPBLAS_C_16F/g; - $ft{'numeric_literal'} += s/\bCUDA_C_32F\b/HIPBLAS_C_32F/g; - $ft{'numeric_literal'} += s/\bCUDA_C_64F\b/HIPBLAS_C_64F/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ALREADY_ACQUIRED\b/hipErrorAlreadyAcquired/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ALREADY_MAPPED\b/hipErrorAlreadyMapped/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ARRAY_IS_MAPPED\b/hipErrorArrayIsMapped/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ASSERT\b/hipErrorAssert/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_CONTEXT_ALREADY_CURRENT\b/hipErrorContextAlreadyCurrent/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_CONTEXT_ALREADY_IN_USE\b/hipErrorContextAlreadyInUse/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_DEINITIALIZED\b/hipErrorDeinitialized/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ECC_UNCORRECTABLE\b/hipErrorECCNotCorrectable/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_FILE_NOT_FOUND\b/hipErrorFileNotFound/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED\b/hipErrorHostMemoryAlreadyRegistered/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_HOST_MEMORY_NOT_REGISTERED\b/hipErrorHostMemoryNotRegistered/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_ILLEGAL_ADDRESS\b/hipErrorIllegalAddress/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_CONTEXT\b/hipErrorInvalidContext/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_DEVICE\b/hipErrorInvalidDevice/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_GRAPHICS_CONTEXT\b/hipErrorInvalidGraphicsContext/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_HANDLE\b/hipErrorInvalidResourceHandle/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_IMAGE\b/hipErrorInvalidImage/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_PTX\b/hipErrorInvalidKernelFile/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_SOURCE\b/hipErrorInvalidSource/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_INVALID_VALUE\b/hipErrorInvalidValue/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_FAILED\b/hipErrorLaunchFailure/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_OUT_OF_RESOURCES\b/hipErrorLaunchOutOfResources/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_LAUNCH_TIMEOUT\b/hipErrorLaunchTimeOut/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_MAP_FAILED\b/hipErrorMapFailed/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_FOUND\b/hipErrorNotFound/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_INITIALIZED\b/hipErrorNotInitialized/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED\b/hipErrorNotMapped/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED_AS_ARRAY\b/hipErrorNotMappedAsArray/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_MAPPED_AS_POINTER\b/hipErrorNotMappedAsPointer/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NOT_READY\b/hipErrorNotReady/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NO_BINARY_FOR_GPU\b/hipErrorNoBinaryForGpu/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_NO_DEVICE\b/hipErrorNoDevice/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_OPERATING_SYSTEM\b/hipErrorOperatingSystem/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_OUT_OF_MEMORY\b/hipErrorMemoryAllocation/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED\b/hipErrorPeerAccessAlreadyEnabled/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_NOT_ENABLED\b/hipErrorPeerAccessNotEnabled/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PEER_ACCESS_UNSUPPORTED\b/hipErrorPeerAccessUnsupported/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_ALREADY_STARTED\b/hipErrorProfilerAlreadyStarted/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_ALREADY_STOPPED\b/hipErrorProfilerAlreadyStopped/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_DISABLED\b/hipErrorProfilerDisabled/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_PROFILER_NOT_INITIALIZED\b/hipErrorProfilerNotInitialized/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_SHARED_OBJECT_INIT_FAILED\b/hipErrorSharedObjectInitFailed/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND\b/hipErrorSharedObjectSymbolNotFound/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNKNOWN\b/hipErrorUnknown/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNMAP_FAILED\b/hipErrorUnmapFailed/g; - $ft{'numeric_literal'} += s/\bCUDA_ERROR_UNSUPPORTED_LIMIT\b/hipErrorUnsupportedLimit/g; - $ft{'numeric_literal'} += s/\bCUDA_R_16F\b/HIPBLAS_R_16F/g; - $ft{'numeric_literal'} += s/\bCUDA_R_32F\b/HIPBLAS_R_32F/g; - $ft{'numeric_literal'} += s/\bCUDA_R_64F\b/HIPBLAS_R_64F/g; - $ft{'numeric_literal'} += s/\bCUDA_SUCCESS\b/hipSuccess/g; - $ft{'numeric_literal'} += s/\bCUDNN_16BIT_INDICES\b/HIPDNN_16BIT_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_32BIT_INDICES\b/HIPDNN_32BIT_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_64BIT_INDICES\b/HIPDNN_64BIT_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_8BIT_INDICES\b/HIPDNN_8BIT_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_CLIPPED_RELU\b/HIPDNN_ACTIVATION_CLIPPED_RELU/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_ELU\b/HIPDNN_ACTIVATION_ELU/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_IDENTITY\b/HIPDNN_ACTIVATION_PATHTRU/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_RELU\b/HIPDNN_ACTIVATION_RELU/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_SIGMOID\b/HIPDNN_ACTIVATION_SIGMOID/g; - $ft{'numeric_literal'} += s/\bCUDNN_ACTIVATION_TANH\b/HIPDNN_ACTIVATION_TANH/g; - $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_PER_ACTIVATION\b/HIPDNN_BATCHNORM_PER_ACTIVATION/g; - $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_SPATIAL\b/HIPDNN_BATCHNORM_SPATIAL/g; - $ft{'numeric_literal'} += s/\bCUDNN_BATCHNORM_SPATIAL_PERSISTENT\b/HIPDNN_BATCHNORM_SPATIAL_PERSISTENT/g; - $ft{'numeric_literal'} += s/\bCUDNN_BIDIRECTIONAL\b/HIPDNN_BIDIRECTIONAL/g; - $ft{'numeric_literal'} += s/\bCUDNN_BN_MIN_EPSILON\b/HIPDNN_BN_MIN_EPSILON/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION\b/HIPDNN_CONVOLUTION/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_0\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_0/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_1\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_1/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_TRANSPOSE_GEMM/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_FFT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_BWD_DATA_NO_WORKSPACE/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_BWD_DATA_SPECIFY_WORKSPACE_LIMIT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_0\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_0/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_1\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_1/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_3\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_3/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_FFT_TILING/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_BWD_FILTER_ALGO_WINOGRAD_NONFUSED/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_BWD_FILTER_NO_WORKSPACE/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_BWD_FILTER_PREFER_FASTEST/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_BWD_FILTER_SPECIFY_WORKSPACE_LIMIT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_COUNT\b/HIPDNN_CONVOLUTION_FWD_ALGO_COUNT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_DIRECT\b/HIPDNN_CONVOLUTION_FWD_ALGO_DIRECT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_FFT\b/HIPDNN_CONVOLUTION_FWD_ALGO_FFT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_FFT_TILING\b/HIPDNN_CONVOLUTION_FWD_ALGO_FFT_TILING/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_GEMM/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_GEMM/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_PRECOMP_GEMM\b/HIPDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_PRECOMP_GEMM/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_WINOGRAD\b/HIPDNN_CONVOLUTION_FWD_ALGO_WINOGRAD/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_ALGO_WINOGRAD_NONFUSED\b/HIPDNN_CONVOLUTION_FWD_ALGO_WINOGRAD_NONFUSED/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_NO_WORKSPACE\b/HIPDNN_CONVOLUTION_FWD_NO_WORKSPACE/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_PREFER_FASTEST\b/HIPDNN_CONVOLUTION_FWD_PREFER_FASTEST/g; - $ft{'numeric_literal'} += s/\bCUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT\b/HIPDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT/g; - $ft{'numeric_literal'} += s/\bCUDNN_CROSS_CORRELATION\b/HIPDNN_CROSS_CORRELATION/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_DOUBLE\b/HIPDNN_DATA_DOUBLE/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_FLOAT\b/HIPDNN_DATA_FLOAT/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_HALF\b/HIPDNN_DATA_HALF/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT32\b/HIPDNN_DATA_INT32/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT8\b/HIPDNN_DATA_INT8/g; - $ft{'numeric_literal'} += s/\bCUDNN_DATA_INT8x4\b/HIPDNN_DATA_INT8x4/g; - $ft{'numeric_literal'} += s/\bCUDNN_DEFAULT_MATH\b/HIPDNN_DEFAULT_MATH/g; - $ft{'numeric_literal'} += s/\bCUDNN_GRU\b/HIPDNN_GRU/g; - $ft{'numeric_literal'} += s/\bCUDNN_LINEAR_INPUT\b/HIPDNN_LINEAR_INPUT/g; - $ft{'numeric_literal'} += s/\bCUDNN_LRN_CROSS_CHANNEL_DIM1\b/HIPDNN_LRN_CROSS_CHANNEL/g; - $ft{'numeric_literal'} += s/\bCUDNN_LSTM\b/HIPDNN_LSTM/g; - $ft{'numeric_literal'} += s/\bCUDNN_NOT_PROPAGATE_NAN\b/HIPDNN_NOT_PROPAGATE_NAN/g; - $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_ADD\b/HIPDNN_OP_TENSOR_ADD/g; - $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MAX\b/HIPDNN_OP_TENSOR_MAX/g; - $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MIN\b/HIPDNN_OP_TENSOR_MIN/g; - $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_MUL\b/HIPDNN_OP_TENSOR_MUL/g; - $ft{'numeric_literal'} += s/\bCUDNN_OP_TENSOR_SQRT\b/HIPDNN_OP_TENSOR_SQRT/g; - $ft{'numeric_literal'} += s/\bCUDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING\b/HIPDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING/g; - $ft{'numeric_literal'} += s/\bCUDNN_POOLING_AVERAGE_COUNT_INCLUDE_PADDING\b/HIPDNN_POOLING_AVERAGE_COUNT_INCLUDE_PADDING/g; - $ft{'numeric_literal'} += s/\bCUDNN_POOLING_MAX\b/HIPDNN_POOLING_MAX/g; - $ft{'numeric_literal'} += s/\bCUDNN_POOLING_MAX_DETERMINISTIC\b/HIPDNN_POOLING_MAX_DETERMINISTIC/g; - $ft{'numeric_literal'} += s/\bCUDNN_PROPAGATE_NAN\b/HIPDNN_PROPAGATE_NAN/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_ADD\b/HIPDNN_REDUCE_TENSOR_ADD/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_AMAX\b/HIPDNN_REDUCE_TENSOR_AMAX/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_AVG\b/HIPDNN_REDUCE_TENSOR_AVG/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_FLATTENED_INDICES\b/HIPDNN_REDUCE_TENSOR_FLATTENED_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MAX\b/HIPDNN_REDUCE_TENSOR_MAX/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MIN\b/HIPDNN_REDUCE_TENSOR_MIN/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MUL\b/HIPDNN_REDUCE_TENSOR_MUL/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_MUL_NO_ZEROS\b/HIPDNN_REDUCE_TENSOR_MUL_NO_ZEROS/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NORM1\b/HIPDNN_REDUCE_TENSOR_NORM1/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NORM2\b/HIPDNN_REDUCE_TENSOR_NORM2/g; - $ft{'numeric_literal'} += s/\bCUDNN_REDUCE_TENSOR_NO_INDICES\b/HIPDNN_REDUCE_TENSOR_NO_INDICES/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_PERSIST_DYNAMIC\b/HIPDNN_RNN_ALGO_PERSIST_DYNAMIC/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_PERSIST_STATIC\b/HIPDNN_RNN_ALGO_PERSIST_STATIC/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_ALGO_STANDARD\b/HIPDNN_RNN_ALGO_STANDARD/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_DOUBLE_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_NO_BIAS\b/HIPDNN_RNN_NO_BIAS/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_RELU\b/HIPDNN_RNN_RELU/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_SINGLE_INP_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_SINGLE_REC_BIAS\b/HIPDNN_RNN_WITH_BIAS/g; - $ft{'numeric_literal'} += s/\bCUDNN_RNN_TANH\b/HIPDNN_RNN_TANH/g; - $ft{'numeric_literal'} += s/\bCUDNN_SKIP_INPUT\b/HIPDNN_SKIP_INPUT/g; - $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_ACCURATE\b/HIPDNN_SOFTMAX_ACCURATE/g; - $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_FAST\b/HIPDNN_SOFTMAX_FAST/g; - $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_LOG\b/HIPDNN_SOFTMAX_LOG/g; - $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_MODE_CHANNEL\b/HIPDNN_SOFTMAX_MODE_CHANNEL/g; - $ft{'numeric_literal'} += s/\bCUDNN_SOFTMAX_MODE_INSTANCE\b/HIPDNN_SOFTMAX_MODE_INSTANCE/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_ALLOC_FAILED\b/HIPDNN_STATUS_ALLOC_FAILED/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_ARCH_MISMATCH\b/HIPDNN_STATUS_ARCH_MISMATCH/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_BAD_PARAM\b/HIPDNN_STATUS_BAD_PARAM/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_EXECUTION_FAILED\b/HIPDNN_STATUS_EXECUTION_FAILED/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_INTERNAL_ERROR\b/HIPDNN_STATUS_INTERNAL_ERROR/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_INVALID_VALUE\b/HIPDNN_STATUS_INVALID_VALUE/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_LICENSE_ERROR\b/HIPDNN_STATUS_LICENSE_ERROR/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_MAPPING_ERROR\b/HIPDNN_STATUS_MAPPING_ERROR/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_NOT_INITIALIZED\b/HIPDNN_STATUS_NOT_INITIALIZED/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_NOT_SUPPORTED\b/HIPDNN_STATUS_NOT_SUPPORTED/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING\b/HIPDNN_STATUS_RUNTIME_PREREQUISITE_MISSING/g; - $ft{'numeric_literal'} += s/\bCUDNN_STATUS_SUCCESS\b/HIPDNN_STATUS_SUCCESS/g; - $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NCHW\b/HIPDNN_TENSOR_NCHW/g; - $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NCHW_VECT_C\b/HIPDNN_TENSOR_NCHW_VECT_C/g; - $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_NHWC\b/HIPDNN_TENSOR_NHWC/g; - $ft{'numeric_literal'} += s/\bCUDNN_TENSOR_OP_MATH\b/HIPDNN_TENSOR_OP_MATH/g; - $ft{'numeric_literal'} += s/\bCUDNN_UNIDIRECTIONAL\b/HIPDNN_UNIDIRECTIONAL/g; - $ft{'numeric_literal'} += s/\bCUDNN_VERSION\b/HIPDNN_VERSION/g; - $ft{'numeric_literal'} += s/\bCUFFT_ALLOC_FAILED\b/HIPFFT_ALLOC_FAILED/g; - $ft{'numeric_literal'} += s/\bCUFFT_C2C\b/HIPFFT_C2C/g; - $ft{'numeric_literal'} += s/\bCUFFT_C2R\b/HIPFFT_C2R/g; - $ft{'numeric_literal'} += s/\bCUFFT_D2Z\b/HIPFFT_D2Z/g; - $ft{'numeric_literal'} += s/\bCUFFT_EXEC_FAILED\b/HIPFFT_EXEC_FAILED/g; - $ft{'numeric_literal'} += s/\bCUFFT_FORWARD\b/HIPFFT_FORWARD/g; - $ft{'numeric_literal'} += s/\bCUFFT_INCOMPLETE_PARAMETER_LIST\b/HIPFFT_INCOMPLETE_PARAMETER_LIST/g; - $ft{'numeric_literal'} += s/\bCUFFT_INTERNAL_ERROR\b/HIPFFT_INTERNAL_ERROR/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVALID_DEVICE\b/HIPFFT_INVALID_DEVICE/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVALID_PLAN\b/HIPFFT_INVALID_PLAN/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVALID_SIZE\b/HIPFFT_INVALID_SIZE/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVALID_TYPE\b/HIPFFT_INVALID_TYPE/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVALID_VALUE\b/HIPFFT_INVALID_VALUE/g; - $ft{'numeric_literal'} += s/\bCUFFT_INVERSE\b/HIPFFT_BACKWARD/g; - $ft{'numeric_literal'} += s/\bCUFFT_NOT_IMPLEMENTED\b/HIPFFT_NOT_IMPLEMENTED/g; - $ft{'numeric_literal'} += s/\bCUFFT_NOT_SUPPORTED\b/HIPFFT_NOT_SUPPORTED/g; - $ft{'numeric_literal'} += s/\bCUFFT_NO_WORKSPACE\b/HIPFFT_NO_WORKSPACE/g; - $ft{'numeric_literal'} += s/\bCUFFT_PARSE_ERROR\b/HIPFFT_PARSE_ERROR/g; - $ft{'numeric_literal'} += s/\bCUFFT_R2C\b/HIPFFT_R2C/g; - $ft{'numeric_literal'} += s/\bCUFFT_SETUP_FAILED\b/HIPFFT_SETUP_FAILED/g; - $ft{'numeric_literal'} += s/\bCUFFT_SUCCESS\b/HIPFFT_SUCCESS/g; - $ft{'numeric_literal'} += s/\bCUFFT_UNALIGNED_DATA\b/HIPFFT_UNALIGNED_DATA/g; - $ft{'numeric_literal'} += s/\bCUFFT_Z2D\b/HIPFFT_Z2D/g; - $ft{'numeric_literal'} += s/\bCUFFT_Z2Z\b/HIPFFT_Z2Z/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_DEFAULT\b/HIPRAND_RNG_PSEUDO_DEFAULT/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MRG32K3A\b/HIPRAND_RNG_PSEUDO_MRG32K3A/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MT19937\b/HIPRAND_RNG_PSEUDO_MT19937/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_MTGP32\b/HIPRAND_RNG_PSEUDO_MTGP32/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_PHILOX4_32_10\b/HIPRAND_RNG_PSEUDO_PHILOX4_32_10/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_PSEUDO_XORWOW\b/HIPRAND_RNG_PSEUDO_XORWOW/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_DEFAULT\b/HIPRAND_RNG_QUASI_DEFAULT/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SCRAMBLED_SOBOL32\b/HIPRAND_RNG_QUASI_SCRAMBLED_SOBOL32/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SCRAMBLED_SOBOL64\b/HIPRAND_RNG_QUASI_SCRAMBLED_SOBOL64/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SOBOL32\b/HIPRAND_RNG_QUASI_SOBOL32/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_QUASI_SOBOL64\b/HIPRAND_RNG_QUASI_SOBOL64/g; - $ft{'numeric_literal'} += s/\bCURAND_RNG_TEST\b/HIPRAND_RNG_TEST/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_ALLOCATION_FAILED\b/HIPRAND_STATUS_ALLOCATION_FAILED/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_ARCH_MISMATCH\b/HIPRAND_STATUS_ARCH_MISMATCH/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_DOUBLE_PRECISION_REQUIRED\b/HIPRAND_STATUS_DOUBLE_PRECISION_REQUIRED/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_INITIALIZATION_FAILED\b/HIPRAND_STATUS_INITIALIZATION_FAILED/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_INTERNAL_ERROR\b/HIPRAND_STATUS_INTERNAL_ERROR/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_LAUNCH_FAILURE\b/HIPRAND_STATUS_LAUNCH_FAILURE/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_LENGTH_NOT_MULTIPLE\b/HIPRAND_STATUS_LENGTH_NOT_MULTIPLE/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_NOT_INITIALIZED\b/HIPRAND_STATUS_NOT_INITIALIZED/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_OUT_OF_RANGE\b/HIPRAND_STATUS_OUT_OF_RANGE/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_PREEXISTING_FAILURE\b/HIPRAND_STATUS_PREEXISTING_FAILURE/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_SUCCESS\b/HIPRAND_STATUS_SUCCESS/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_TYPE_ERROR\b/HIPRAND_STATUS_TYPE_ERROR/g; - $ft{'numeric_literal'} += s/\bCURAND_STATUS_VERSION_MISMATCH\b/HIPRAND_STATUS_VERSION_MISMATCH/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_ACTION_NUMERIC\b/HIPSPARSE_ACTION_NUMERIC/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_ACTION_SYMBOLIC\b/HIPSPARSE_ACTION_SYMBOLIC/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_DIAG_TYPE_NON_UNIT\b/HIPSPARSE_DIAG_TYPE_NON_UNIT/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_DIAG_TYPE_UNIT\b/HIPSPARSE_DIAG_TYPE_UNIT/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_FILL_MODE_LOWER\b/HIPSPARSE_FILL_MODE_LOWER/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_FILL_MODE_UPPER\b/HIPSPARSE_FILL_MODE_UPPER/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_AUTO\b/HIPSPARSE_HYB_PARTITION_AUTO/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_MAX\b/HIPSPARSE_HYB_PARTITION_MAX/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_HYB_PARTITION_USER\b/HIPSPARSE_HYB_PARTITION_USER/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_INDEX_BASE_ONE\b/HIPSPARSE_INDEX_BASE_ONE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_INDEX_BASE_ZERO\b/HIPSPARSE_INDEX_BASE_ZERO/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_GENERAL\b/HIPSPARSE_MATRIX_TYPE_GENERAL/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_HERMITIAN\b/HIPSPARSE_MATRIX_TYPE_HERMITIAN/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_SYMMETRIC\b/HIPSPARSE_MATRIX_TYPE_SYMMETRIC/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_MATRIX_TYPE_TRIANGULAR\b/HIPSPARSE_MATRIX_TYPE_TRIANGULAR/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_CONJUGATE_TRANSPOSE\b/HIPSPARSE_OPERATION_CONJUGATE_TRANSPOSE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_NON_TRANSPOSE\b/HIPSPARSE_OPERATION_NON_TRANSPOSE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_OPERATION_TRANSPOSE\b/HIPSPARSE_OPERATION_TRANSPOSE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_POINTER_MODE_DEVICE\b/HIPSPARSE_POINTER_MODE_DEVICE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_POINTER_MODE_HOST\b/HIPSPARSE_POINTER_MODE_HOST/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_SOLVE_POLICY_NO_LEVEL\b/HIPSPARSE_SOLVE_POLICY_NO_LEVEL/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_SOLVE_POLICY_USE_LEVEL\b/HIPSPARSE_SOLVE_POLICY_USE_LEVEL/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ALLOC_FAILED\b/HIPSPARSE_STATUS_ALLOC_FAILED/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ARCH_MISMATCH\b/HIPSPARSE_STATUS_ARCH_MISMATCH/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_EXECUTION_FAILED\b/HIPSPARSE_STATUS_EXECUTION_FAILED/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_INTERNAL_ERROR\b/HIPSPARSE_STATUS_INTERNAL_ERROR/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_INVALID_VALUE\b/HIPSPARSE_STATUS_INVALID_VALUE/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_MAPPING_ERROR\b/HIPSPARSE_STATUS_MAPPING_ERROR/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED\b/HIPSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_NOT_INITIALIZED\b/HIPSPARSE_STATUS_NOT_INITIALIZED/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_SUCCESS\b/HIPSPARSE_STATUS_SUCCESS/g; - $ft{'numeric_literal'} += s/\bCUSPARSE_STATUS_ZERO_PIVOT\b/HIPSPARSE_STATUS_ZERO_PIVOT/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_FLOAT\b/HIP_AD_FORMAT_FLOAT/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_HALF\b/HIP_AD_FORMAT_HALF/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT16\b/HIP_AD_FORMAT_SIGNED_INT16/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT32\b/HIP_AD_FORMAT_SIGNED_INT32/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_SIGNED_INT8\b/HIP_AD_FORMAT_SIGNED_INT8/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT16\b/HIP_AD_FORMAT_UNSIGNED_INT16/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT32\b/HIP_AD_FORMAT_UNSIGNED_INT32/g; - $ft{'numeric_literal'} += s/\bCU_AD_FORMAT_UNSIGNED_INT8\b/HIP_AD_FORMAT_UNSIGNED_INT8/g; - $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_DEFAULT\b/hipComputeModeDefault/g; - $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_EXCLUSIVE\b/hipComputeModeExclusive/g; - $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_EXCLUSIVE_PROCESS\b/hipComputeModeExclusiveProcess/g; - $ft{'numeric_literal'} += s/\bCU_COMPUTEMODE_PROHIBITED\b/hipComputeModeProhibited/g; - $ft{'numeric_literal'} += s/\bCU_CTX_BLOCKING_SYNC\b/hipDeviceScheduleBlockingSync/g; - $ft{'numeric_literal'} += s/\bCU_CTX_LMEM_RESIZE_TO_MAX\b/hipDeviceLmemResizeToMax/g; - $ft{'numeric_literal'} += s/\bCU_CTX_MAP_HOST\b/hipDeviceMapHost/g; - $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_AUTO\b/hipDeviceScheduleAuto/g; - $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_BLOCKING_SYNC\b/hipDeviceScheduleBlockingSync/g; - $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_MASK\b/hipDeviceScheduleMask/g; - $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_SPIN\b/hipDeviceScheduleSpin/g; - $ft{'numeric_literal'} += s/\bCU_CTX_SCHED_YIELD\b/hipDeviceScheduleYield/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY\b/hipDeviceAttributeCanMapHostMemory/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CLOCK_RATE\b/hipDeviceAttributeClockRate/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR\b/hipDeviceAttributeComputeCapabilityMajor/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR\b/hipDeviceAttributeComputeCapabilityMinor/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COMPUTE_MODE\b/hipDeviceAttributeComputeMode/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS\b/hipDeviceAttributeConcurrentKernels/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH\b/hipDeviceAttributeCooperativeLaunch/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH\b/hipDeviceAttributeCooperativeMultiDeviceLaunch/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_ECC_ENABLED\b/hipDeviceAttributeEccEnabled/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH\b/hipDeviceAttributeMemoryBusWidth/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_INTEGRATED\b/hipDeviceAttributeIntegrated/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT\b/hipDeviceAttributeKernelExecTimeout/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE\b/hipDeviceAttributeL2CacheSize/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH\b/hipDeviceAttributeMaxTexture1DWidth/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT\b/hipDeviceAttributeMaxTexture2DHeight/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH\b/hipDeviceAttributeMaxTexture2DWidth/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH\b/hipDeviceAttributeMaxTexture3DDepth/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT\b/hipDeviceAttributeMaxTexture3DHeight/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH\b/hipDeviceAttributeMaxTexture3DWidth/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X\b/hipDeviceAttributeMaxBlockDimX/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y\b/hipDeviceAttributeMaxBlockDimY/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z\b/hipDeviceAttributeMaxBlockDimZ/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X\b/hipDeviceAttributeMaxGridDimX/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y\b/hipDeviceAttributeMaxGridDimY/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z\b/hipDeviceAttributeMaxGridDimZ/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_PITCH\b/hipDeviceAttributeMaxPitch/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK\b/hipDeviceAttributeMaxRegistersPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR\b/hipDeviceAttributeMaxSharedMemoryPerMultiprocessor/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK\b/hipDeviceAttributeMaxThreadsPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR\b/hipDeviceAttributeMaxThreadsPerMultiProcessor/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE\b/hipDeviceAttributeMemoryClockRate/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT\b/hipDeviceAttributeMultiprocessorCount/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD\b/hipDeviceAttributeIsMultiGpuBoard/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_PCI_BUS_ID\b/hipDeviceAttributePciBusId/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID\b/hipDeviceAttributePciDeviceId/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK\b/hipDeviceAttributeMaxRegistersPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT\b/hipDeviceAttributeTextureAlignment/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY\b/hipDeviceAttributeTotalConstantMemory/g; - $ft{'numeric_literal'} += s/\bCU_DEVICE_ATTRIBUTE_WARP_SIZE\b/hipDeviceAttributeWarpSize/g; - $ft{'numeric_literal'} += s/\bCU_EVENT_BLOCKING_SYNC\b/hipEventBlockingSync/g; - $ft{'numeric_literal'} += s/\bCU_EVENT_DEFAULT\b/hipEventDefault/g; - $ft{'numeric_literal'} += s/\bCU_EVENT_DISABLE_TIMING\b/hipEventDisableTiming/g; - $ft{'numeric_literal'} += s/\bCU_EVENT_INTERPROCESS\b/hipEventInterprocess/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_BINARY_VERSION\b/HIP_FUNC_ATTRIBUTE_BINARY_VERSION/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_CACHE_MODE_CA\b/HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX\b/HIP_FUNC_ATTRIBUTE_MAX/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK\b/HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_NUM_REGS\b/HIP_FUNC_ATTRIBUTE_NUM_REGS/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT\b/HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_PTX_VERSION\b/HIP_FUNC_ATTRIBUTE_PTX_VERSION/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES\b/HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_EQUAL\b/hipFuncCachePreferEqual/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_L1\b/hipFuncCachePreferL1/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_NONE\b/hipFuncCachePreferNone/g; - $ft{'numeric_literal'} += s/\bCU_FUNC_CACHE_PREFER_SHARED\b/hipFuncCachePreferShared/g; - $ft{'numeric_literal'} += s/\bCU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS\b/hipIpcMemLazyEnablePeerAccess/g; - $ft{'numeric_literal'} += s/\bCU_JIT_CACHE_MODE\b/hipJitOptionCacheMode/g; - $ft{'numeric_literal'} += s/\bCU_JIT_ERROR_LOG_BUFFER\b/hipJitOptionErrorLogBuffer/g; - $ft{'numeric_literal'} += s/\bCU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES\b/hipJitOptionErrorLogBufferSizeBytes/g; - $ft{'numeric_literal'} += s/\bCU_JIT_FALLBACK_STRATEGY\b/hipJitOptionFallbackStrategy/g; - $ft{'numeric_literal'} += s/\bCU_JIT_FAST_COMPILE\b/hipJitOptionFastCompile/g; - $ft{'numeric_literal'} += s/\bCU_JIT_GENERATE_DEBUG_INFO\b/hipJitOptionGenerateDebugInfo/g; - $ft{'numeric_literal'} += s/\bCU_JIT_GENERATE_LINE_INFO\b/hipJitOptionGenerateLineInfo/g; - $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_ADDRESSES\b/hipJitGlobalSymbolAddresses/g; - $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_COUNT\b/hipJitGlobalSymbolCount/g; - $ft{'numeric_literal'} += s/\bCU_JIT_GLOBAL_SYMBOL_NAMES\b/hipJitGlobalSymbolNames/g; - $ft{'numeric_literal'} += s/\bCU_JIT_INFO_LOG_BUFFER\b/hipJitOptionInfoLogBuffer/g; - $ft{'numeric_literal'} += s/\bCU_JIT_INFO_LOG_BUFFER_SIZE_BYTES\b/hipJitOptionInfoLogBufferSizeBytes/g; - $ft{'numeric_literal'} += s/\bCU_JIT_LOG_VERBOSE\b/hipJitOptionLogVerbose/g; - $ft{'numeric_literal'} += s/\bCU_JIT_MAX_REGISTERS\b/hipJitOptionMaxRegisters/g; - $ft{'numeric_literal'} += s/\bCU_JIT_NEW_SM3X_OPT\b/hipJitOptionSm3xOpt/g; - $ft{'numeric_literal'} += s/\bCU_JIT_NUM_OPTIONS\b/hipJitOptionNumOptions/g; - $ft{'numeric_literal'} += s/\bCU_JIT_OPTIMIZATION_LEVEL\b/hipJitOptionOptimizationLevel/g; - $ft{'numeric_literal'} += s/\bCU_JIT_TARGET\b/hipJitOptionTarget/g; - $ft{'numeric_literal'} += s/\bCU_JIT_TARGET_FROM_CUCONTEXT\b/hipJitOptionTargetFromContext/g; - $ft{'numeric_literal'} += s/\bCU_JIT_THREADS_PER_BLOCK\b/hipJitOptionThreadsPerBlock/g; - $ft{'numeric_literal'} += s/\bCU_JIT_WALL_TIME\b/hipJitOptionWallTime/g; - $ft{'numeric_literal'} += s/\bCU_LIMIT_MALLOC_HEAP_SIZE\b/hipLimitMallocHeapSize/g; - $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_ARRAY\b/hipMemoryTypeArray/g; - $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_DEVICE\b/hipMemoryTypeDevice/g; - $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_HOST\b/hipMemoryTypeHost/g; - $ft{'numeric_literal'} += s/\bCU_MEMORYTYPE_UNIFIED\b/hipMemoryTypeUnified/g; - $ft{'numeric_literal'} += s/\bCU_MEM_ATTACH_GLOBAL\b/hipMemAttachGlobal/g; - $ft{'numeric_literal'} += s/\bCU_MEM_ATTACH_HOST\b/hipMemAttachHost/g; - $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_ARRAY\b/hipResourceTypeArray/g; - $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_LINEAR\b/hipResourceTypeLinear/g; - $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_MIPMAPPED_ARRAY\b/hipResourceTypeMipmappedArray/g; - $ft{'numeric_literal'} += s/\bCU_RESOURCE_TYPE_PITCH2D\b/hipResourceTypePitch2D/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_1X16\b/hipResViewFormatHalf1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_1X32\b/hipResViewFormatFloat1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_2X16\b/hipResViewFormatHalf2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_2X32\b/hipResViewFormatFloat2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_4X16\b/hipResViewFormatHalf4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_FLOAT_4X32\b/hipResViewFormatFloat4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_NONE\b/hipResViewFormatNone/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC4\b/hipResViewFormatSignedBlockCompressed4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC5\b/hipResViewFormatSignedBlockCompressed5/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SIGNED_BC6H\b/hipResViewFormatSignedBlockCompressed6H/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X16\b/hipResViewFormatSignedShort1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X32\b/hipResViewFormatSignedInt1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_1X8\b/hipResViewFormatSignedChar1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X16\b/hipResViewFormatSignedShort2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X32\b/hipResViewFormatSignedInt2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_2X8\b/hipResViewFormatSignedChar2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X16\b/hipResViewFormatSignedShort4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X32\b/hipResViewFormatSignedInt4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_SINT_4X8\b/hipResViewFormatSignedChar4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X16\b/hipResViewFormatUnsignedShort1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X32\b/hipResViewFormatUnsignedInt1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_1X8\b/hipResViewFormatUnsignedChar1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X16\b/hipResViewFormatUnsignedShort2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X32\b/hipResViewFormatUnsignedInt2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_2X8\b/hipResViewFormatUnsignedChar2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X16\b/hipResViewFormatUnsignedShort4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X32\b/hipResViewFormatUnsignedInt4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UINT_4X8\b/hipResViewFormatUnsignedChar4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC1\b/hipResViewFormatUnsignedBlockCompressed1/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC2\b/hipResViewFormatUnsignedBlockCompressed2/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC3\b/hipResViewFormatUnsignedBlockCompressed3/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC4\b/hipResViewFormatUnsignedBlockCompressed4/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC5\b/hipResViewFormatUnsignedBlockCompressed5/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC6H\b/hipResViewFormatUnsignedBlockCompressed6H/g; - $ft{'numeric_literal'} += s/\bCU_RES_VIEW_FORMAT_UNSIGNED_BC7\b/hipResViewFormatUnsignedBlockCompressed7/g; - $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE\b/hipSharedMemBankSizeDefault/g; - $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE\b/hipSharedMemBankSizeEightByte/g; - $ft{'numeric_literal'} += s/\bCU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE\b/hipSharedMemBankSizeFourByte/g; - $ft{'numeric_literal'} += s/\bCU_STREAM_DEFAULT\b/hipStreamDefault/g; - $ft{'numeric_literal'} += s/\bCU_STREAM_NON_BLOCKING\b/hipStreamNonBlocking/g; - $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_BORDER\b/hipAddressModeBorder/g; - $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_CLAMP\b/hipAddressModeClamp/g; - $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_MIRROR\b/hipAddressModeMirror/g; - $ft{'numeric_literal'} += s/\bCU_TR_ADDRESS_MODE_WRAP\b/hipAddressModeWrap/g; - $ft{'numeric_literal'} += s/\bCU_TR_FILTER_MODE_LINEAR\b/hipFilterModeLinear/g; - $ft{'numeric_literal'} += s/\bCU_TR_FILTER_MODE_POINT\b/hipFilterModePoint/g; - $ft{'numeric_literal'} += s/\bcudaAddressModeBorder\b/hipAddressModeBorder/g; - $ft{'numeric_literal'} += s/\bcudaAddressModeClamp\b/hipAddressModeClamp/g; - $ft{'numeric_literal'} += s/\bcudaAddressModeMirror\b/hipAddressModeMirror/g; - $ft{'numeric_literal'} += s/\bcudaAddressModeWrap\b/hipAddressModeWrap/g; - $ft{'numeric_literal'} += s/\bcudaBoundaryModeClamp\b/hipBoundaryModeClamp/g; - $ft{'numeric_literal'} += s/\bcudaBoundaryModeTrap\b/hipBoundaryModeTrap/g; - $ft{'numeric_literal'} += s/\bcudaBoundaryModeZero\b/hipBoundaryModeZero/g; - $ft{'numeric_literal'} += s/\bcudaChannelFormatKindFloat\b/hipChannelFormatKindFloat/g; - $ft{'numeric_literal'} += s/\bcudaChannelFormatKindNone\b/hipChannelFormatKindNone/g; - $ft{'numeric_literal'} += s/\bcudaChannelFormatKindSigned\b/hipChannelFormatKindSigned/g; - $ft{'numeric_literal'} += s/\bcudaChannelFormatKindUnsigned\b/hipChannelFormatKindUnsigned/g; - $ft{'numeric_literal'} += s/\bcudaComputeModeDefault\b/hipComputeModeDefault/g; - $ft{'numeric_literal'} += s/\bcudaComputeModeExclusive\b/hipComputeModeExclusive/g; - $ft{'numeric_literal'} += s/\bcudaComputeModeExclusiveProcess\b/hipComputeModeExclusiveProcess/g; - $ft{'numeric_literal'} += s/\bcudaComputeModeProhibited\b/hipComputeModeProhibited/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrCanMapHostMemory\b/hipDeviceAttributeCanMapHostMemory/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrClockRate\b/hipDeviceAttributeClockRate/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrComputeCapabilityMajor\b/hipDeviceAttributeComputeCapabilityMajor/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrComputeCapabilityMinor\b/hipDeviceAttributeComputeCapabilityMinor/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrComputeMode\b/hipDeviceAttributeComputeMode/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrConcurrentKernels\b/hipDeviceAttributeConcurrentKernels/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrCooperativeLaunch\b/hipDeviceAttributeCooperativeLaunch/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrCooperativeMultiDeviceLaunch\b/hipDeviceAttributeCooperativeMultiDeviceLaunch/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrEccEnabled\b/hipDeviceAttributeEccEnabled/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrGlobalMemoryBusWidth\b/hipDeviceAttributeMemoryBusWidth/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrIntegrated\b/hipDeviceAttributeIntegrated/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrIsMultiGpuBoard\b/hipDeviceAttributeIsMultiGpuBoard/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrKernelExecTimeout\b/hipDeviceAttributeKernelExecTimeout/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrL2CacheSize\b/hipDeviceAttributeL2CacheSize/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimX\b/hipDeviceAttributeMaxBlockDimX/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimY\b/hipDeviceAttributeMaxBlockDimY/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxBlockDimZ\b/hipDeviceAttributeMaxBlockDimZ/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimX\b/hipDeviceAttributeMaxGridDimX/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimY\b/hipDeviceAttributeMaxGridDimY/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxGridDimZ\b/hipDeviceAttributeMaxGridDimZ/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxPitch\b/hipDeviceAttributeMaxPitch/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxRegistersPerBlock\b/hipDeviceAttributeMaxRegistersPerBlock/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxSharedMemoryPerBlock\b/hipDeviceAttributeMaxSharedMemoryPerBlock/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxSharedMemoryPerMultiprocessor\b/hipDeviceAttributeMaxSharedMemoryPerMultiprocessor/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture1DWidth\b/hipDeviceAttributeMaxTexture1DWidth/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture2DHeight\b/hipDeviceAttributeMaxTexture2DHeight/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture2DWidth\b/hipDeviceAttributeMaxTexture2DWidth/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DDepth\b/hipDeviceAttributeMaxTexture3DDepth/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DHeight\b/hipDeviceAttributeMaxTexture3DHeight/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxTexture3DWidth\b/hipDeviceAttributeMaxTexture3DWidth/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxThreadsPerBlock\b/hipDeviceAttributeMaxThreadsPerBlock/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMaxThreadsPerMultiProcessor\b/hipDeviceAttributeMaxThreadsPerMultiProcessor/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMemoryClockRate\b/hipDeviceAttributeMemoryClockRate/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrMultiProcessorCount\b/hipDeviceAttributeMultiprocessorCount/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrPciBusId\b/hipDeviceAttributePciBusId/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrPciDeviceId\b/hipDeviceAttributePciDeviceId/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrTextureAlignment\b/hipDeviceAttributeTextureAlignment/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrTotalConstantMemory\b/hipDeviceAttributeTotalConstantMemory/g; - $ft{'numeric_literal'} += s/\bcudaDevAttrWarpSize\b/hipDeviceAttributeWarpSize/g; - $ft{'numeric_literal'} += s/\bcudaErrorAssert\b/hipErrorAssert/g; - $ft{'numeric_literal'} += s/\bcudaErrorECCUncorrectable\b/hipErrorECCNotCorrectable/g; - $ft{'numeric_literal'} += s/\bcudaErrorHostMemoryAlreadyRegistered\b/hipErrorHostMemoryAlreadyRegistered/g; - $ft{'numeric_literal'} += s/\bcudaErrorHostMemoryNotRegistered\b/hipErrorHostMemoryNotRegistered/g; - $ft{'numeric_literal'} += s/\bcudaErrorIllegalAddress\b/hipErrorIllegalAddress/g; - $ft{'numeric_literal'} += s/\bcudaErrorInitializationError\b/hipErrorInitializationError/g; - $ft{'numeric_literal'} += s/\bcudaErrorInsufficientDriver\b/hipErrorInsufficientDriver/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidConfiguration\b/hipErrorInvalidConfiguration/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidDevice\b/hipErrorInvalidDevice/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidDeviceFunction\b/hipErrorInvalidDeviceFunction/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidDevicePointer\b/hipErrorInvalidDevicePointer/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidGraphicsContext\b/hipErrorInvalidGraphicsContext/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidKernelImage\b/hipErrorInvalidImage/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidMemcpyDirection\b/hipErrorInvalidMemcpyDirection/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidPtx\b/hipErrorInvalidKernelFile/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidResourceHandle\b/hipErrorInvalidResourceHandle/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidSymbol\b/hipErrorInvalidSymbol/g; - $ft{'numeric_literal'} += s/\bcudaErrorInvalidValue\b/hipErrorInvalidValue/g; - $ft{'numeric_literal'} += s/\bcudaErrorLaunchFailure\b/hipErrorLaunchFailure/g; - $ft{'numeric_literal'} += s/\bcudaErrorLaunchOutOfResources\b/hipErrorLaunchOutOfResources/g; - $ft{'numeric_literal'} += s/\bcudaErrorLaunchTimeout\b/hipErrorLaunchTimeOut/g; - $ft{'numeric_literal'} += s/\bcudaErrorMapBufferObjectFailed\b/hipErrorMapFailed/g; - $ft{'numeric_literal'} += s/\bcudaErrorMemoryAllocation\b/hipErrorMemoryAllocation/g; - $ft{'numeric_literal'} += s/\bcudaErrorMissingConfiguration\b/hipErrorMissingConfiguration/g; - $ft{'numeric_literal'} += s/\bcudaErrorNoDevice\b/hipErrorNoDevice/g; - $ft{'numeric_literal'} += s/\bcudaErrorNoKernelImageForDevice\b/hipErrorNoBinaryForGpu/g; - $ft{'numeric_literal'} += s/\bcudaErrorNotReady\b/hipErrorNotReady/g; - $ft{'numeric_literal'} += s/\bcudaErrorOperatingSystem\b/hipErrorOperatingSystem/g; - $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessAlreadyEnabled\b/hipErrorPeerAccessAlreadyEnabled/g; - $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessNotEnabled\b/hipErrorPeerAccessNotEnabled/g; - $ft{'numeric_literal'} += s/\bcudaErrorPeerAccessUnsupported\b/hipErrorPeerAccessUnsupported/g; - $ft{'numeric_literal'} += s/\bcudaErrorPriorLaunchFailure\b/hipErrorPriorLaunchFailure/g; - $ft{'numeric_literal'} += s/\bcudaErrorProfilerAlreadyStarted\b/hipErrorProfilerAlreadyStarted/g; - $ft{'numeric_literal'} += s/\bcudaErrorProfilerAlreadyStopped\b/hipErrorProfilerAlreadyStopped/g; - $ft{'numeric_literal'} += s/\bcudaErrorProfilerDisabled\b/hipErrorProfilerDisabled/g; - $ft{'numeric_literal'} += s/\bcudaErrorProfilerNotInitialized\b/hipErrorProfilerNotInitialized/g; - $ft{'numeric_literal'} += s/\bcudaErrorSharedObjectInitFailed\b/hipErrorSharedObjectInitFailed/g; - $ft{'numeric_literal'} += s/\bcudaErrorSharedObjectSymbolNotFound\b/hipErrorSharedObjectSymbolNotFound/g; - $ft{'numeric_literal'} += s/\bcudaErrorUnknown\b/hipErrorUnknown/g; - $ft{'numeric_literal'} += s/\bcudaErrorUnmapBufferObjectFailed\b/hipErrorUnmapFailed/g; - $ft{'numeric_literal'} += s/\bcudaErrorUnsupportedLimit\b/hipErrorUnsupportedLimit/g; - $ft{'numeric_literal'} += s/\bcudaFilterModeLinear\b/hipFilterModeLinear/g; - $ft{'numeric_literal'} += s/\bcudaFilterModePoint\b/hipFilterModePoint/g; - $ft{'numeric_literal'} += s/\bcudaFuncCachePreferEqual\b/hipFuncCachePreferEqual/g; - $ft{'numeric_literal'} += s/\bcudaFuncCachePreferL1\b/hipFuncCachePreferL1/g; - $ft{'numeric_literal'} += s/\bcudaFuncCachePreferNone\b/hipFuncCachePreferNone/g; - $ft{'numeric_literal'} += s/\bcudaFuncCachePreferShared\b/hipFuncCachePreferShared/g; - $ft{'numeric_literal'} += s/\bcudaLimitMallocHeapSize\b/hipLimitMallocHeapSize/g; - $ft{'numeric_literal'} += s/\bcudaMemcpyDefault\b/hipMemcpyDefault/g; - $ft{'numeric_literal'} += s/\bcudaMemcpyDeviceToDevice\b/hipMemcpyDeviceToDevice/g; - $ft{'numeric_literal'} += s/\bcudaMemcpyDeviceToHost\b/hipMemcpyDeviceToHost/g; - $ft{'numeric_literal'} += s/\bcudaMemcpyHostToDevice\b/hipMemcpyHostToDevice/g; - $ft{'numeric_literal'} += s/\bcudaMemcpyHostToHost\b/hipMemcpyHostToHost/g; - $ft{'numeric_literal'} += s/\bcudaReadModeElementType\b/hipReadModeElementType/g; - $ft{'numeric_literal'} += s/\bcudaReadModeNormalizedFloat\b/hipReadModeNormalizedFloat/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat1\b/hipResViewFormatFloat1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat2\b/hipResViewFormatFloat2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatFloat4\b/hipResViewFormatFloat4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf1\b/hipResViewFormatHalf1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf2\b/hipResViewFormatHalf2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatHalf4\b/hipResViewFormatHalf4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatNone\b/hipResViewFormatNone/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed4\b/hipResViewFormatSignedBlockCompressed4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed5\b/hipResViewFormatSignedBlockCompressed5/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedBlockCompressed6H\b/hipResViewFormatSignedBlockCompressed6H/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar1\b/hipResViewFormatSignedChar1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar2\b/hipResViewFormatSignedChar2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedChar4\b/hipResViewFormatSignedChar4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt1\b/hipResViewFormatSignedInt1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt2\b/hipResViewFormatSignedInt2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedInt4\b/hipResViewFormatSignedInt4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort1\b/hipResViewFormatSignedShort1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort2\b/hipResViewFormatSignedShort2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatSignedShort4\b/hipResViewFormatSignedShort4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed1\b/hipResViewFormatUnsignedBlockCompressed1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed2\b/hipResViewFormatUnsignedBlockCompressed2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed3\b/hipResViewFormatUnsignedBlockCompressed3/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed4\b/hipResViewFormatUnsignedBlockCompressed4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed5\b/hipResViewFormatUnsignedBlockCompressed5/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed6H\b/hipResViewFormatUnsignedBlockCompressed6H/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedBlockCompressed7\b/hipResViewFormatUnsignedBlockCompressed7/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar1\b/hipResViewFormatUnsignedChar1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar2\b/hipResViewFormatUnsignedChar2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedChar4\b/hipResViewFormatUnsignedChar4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt1\b/hipResViewFormatUnsignedInt1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt2\b/hipResViewFormatUnsignedInt2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedInt4\b/hipResViewFormatUnsignedInt4/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort1\b/hipResViewFormatUnsignedShort1/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort2\b/hipResViewFormatUnsignedShort2/g; - $ft{'numeric_literal'} += s/\bcudaResViewFormatUnsignedShort4\b/hipResViewFormatUnsignedShort4/g; - $ft{'numeric_literal'} += s/\bcudaResourceTypeArray\b/hipResourceTypeArray/g; - $ft{'numeric_literal'} += s/\bcudaResourceTypeLinear\b/hipResourceTypeLinear/g; - $ft{'numeric_literal'} += s/\bcudaResourceTypeMipmappedArray\b/hipResourceTypeMipmappedArray/g; - $ft{'numeric_literal'} += s/\bcudaResourceTypePitch2D\b/hipResourceTypePitch2D/g; - $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeDefault\b/hipSharedMemBankSizeDefault/g; - $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeEightByte\b/hipSharedMemBankSizeEightByte/g; - $ft{'numeric_literal'} += s/\bcudaSharedMemBankSizeFourByte\b/hipSharedMemBankSizeFourByte/g; - $ft{'numeric_literal'} += s/\bcudaSuccess\b/hipSuccess/g; - $ft{'define'} += s/\bCUDA_ARRAY3D_CUBEMAP\b/hipArrayCubemap/g; - $ft{'define'} += s/\bCUDA_ARRAY3D_LAYERED\b/hipArrayLayered/g; - $ft{'define'} += s/\bCUDA_ARRAY3D_SURFACE_LDST\b/hipArraySurfaceLoadStore/g; - $ft{'define'} += s/\bCUDA_ARRAY3D_TEXTURE_GATHER\b/hipArrayTextureGather/g; - $ft{'define'} += s/\bCU_LAUNCH_PARAM_BUFFER_POINTER\b/HIP_LAUNCH_PARAM_BUFFER_POINTER/g; - $ft{'define'} += s/\bCU_LAUNCH_PARAM_BUFFER_SIZE\b/HIP_LAUNCH_PARAM_BUFFER_SIZE/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_PORTABLE\b/hipHostMallocPortable/g; - $ft{'define'} += s/\bCU_MEMHOSTALLOC_WRITECOMBINED\b/hipHostAllocWriteCombined/g; - $ft{'define'} += s/\bCU_MEMHOSTREGISTER_DEVICEMAP\b/hipHostRegisterMapped/g; - $ft{'define'} += s/\bCU_MEMHOSTREGISTER_IOMEMORY\b/hipHostRegisterIoMemory/g; - $ft{'define'} += s/\bCU_MEMHOSTREGISTER_PORTABLE\b/hipHostRegisterPortable/g; - $ft{'define'} += s/\bCU_TRSA_OVERRIDE_FORMAT\b/HIP_TRSA_OVERRIDE_FORMAT/g; - $ft{'define'} += s/\bCU_TRSF_NORMALIZED_COORDINATES\b/HIP_TRSF_NORMALIZED_COORDINATES/g; - $ft{'define'} += s/\bCU_TRSF_READ_AS_INTEGER\b/HIP_TRSF_READ_AS_INTEGER/g; - $ft{'define'} += s/\bREGISTER_CUDA_OPERATOR\b/REGISTER_HIP_OPERATOR/g; - $ft{'define'} += s/\bREGISTER_CUDA_OPERATOR_CREATOR\b/REGISTER_HIP_OPERATOR_CREATOR/g; - $ft{'define'} += s/\b__CUDACC__\b/__HIPCC__/g; - $ft{'define'} += s/\bcudaArrayCubemap\b/hipArrayCubemap/g; - $ft{'define'} += s/\bcudaArrayDefault\b/hipArrayDefault/g; - $ft{'define'} += s/\bcudaArrayLayered\b/hipArrayLayered/g; - $ft{'define'} += s/\bcudaArraySurfaceLoadStore\b/hipArraySurfaceLoadStore/g; - $ft{'define'} += s/\bcudaArrayTextureGather\b/hipArrayTextureGather/g; - $ft{'define'} += s/\bcudaDeviceBlockingSync\b/hipDeviceScheduleBlockingSync/g; - $ft{'define'} += s/\bcudaDeviceLmemResizeToMax\b/hipDeviceLmemResizeToMax/g; - $ft{'define'} += s/\bcudaDeviceMapHost\b/hipDeviceMapHost/g; - $ft{'define'} += s/\bcudaDeviceScheduleAuto\b/hipDeviceScheduleAuto/g; - $ft{'define'} += s/\bcudaDeviceScheduleBlockingSync\b/hipDeviceScheduleBlockingSync/g; - $ft{'define'} += s/\bcudaDeviceScheduleMask\b/hipDeviceScheduleMask/g; - $ft{'define'} += s/\bcudaDeviceScheduleSpin\b/hipDeviceScheduleSpin/g; - $ft{'define'} += s/\bcudaDeviceScheduleYield\b/hipDeviceScheduleYield/g; - $ft{'define'} += s/\bcudaEventBlockingSync\b/hipEventBlockingSync/g; - $ft{'define'} += s/\bcudaEventDefault\b/hipEventDefault/g; - $ft{'define'} += s/\bcudaEventDisableTiming\b/hipEventDisableTiming/g; - $ft{'define'} += s/\bcudaEventInterprocess\b/hipEventInterprocess/g; - $ft{'define'} += s/\bcudaHostAllocDefault\b/hipHostMallocDefault/g; - $ft{'define'} += s/\bcudaHostAllocMapped\b/hipHostMallocMapped/g; - $ft{'define'} += s/\bcudaHostAllocPortable\b/hipHostMallocPortable/g; - $ft{'define'} += s/\bcudaHostAllocWriteCombined\b/hipHostAllocWriteCombined/g; - $ft{'define'} += s/\bcudaHostRegisterDefault\b/hipHostRegisterDefault/g; - $ft{'define'} += s/\bcudaHostRegisterIoMemory\b/hipHostRegisterIoMemory/g; - $ft{'define'} += s/\bcudaHostRegisterMapped\b/hipHostRegisterMapped/g; - $ft{'define'} += s/\bcudaHostRegisterPortable\b/hipHostRegisterPortable/g; - $ft{'define'} += s/\bcudaIpcMemLazyEnablePeerAccess\b/hipIpcMemLazyEnablePeerAccess/g; - $ft{'define'} += s/\bcudaMemAttachGlobal\b/hipMemAttachGlobal/g; - $ft{'define'} += s/\bcudaMemAttachHost\b/hipMemAttachHost/g; - $ft{'define'} += s/\bcudaStreamDefault\b/hipStreamDefault/g; - $ft{'define'} += s/\bcudaStreamNonBlocking\b/hipStreamNonBlocking/g; - $ft{'define'} += s/\bcudaTextureType1D\b/hipTextureType1D/g; - $ft{'define'} += s/\bcudaTextureType1DLayered\b/hipTextureType1DLayered/g; - $ft{'define'} += s/\bcudaTextureType2D\b/hipTextureType2D/g; - $ft{'define'} += s/\bcudaTextureType2DLayered\b/hipTextureType2DLayered/g; - $ft{'define'} += s/\bcudaTextureType3D\b/hipTextureType3D/g; - $ft{'define'} += s/\bcudaTextureTypeCubemap\b/hipTextureTypeCubemap/g; - $ft{'define'} += s/\bcudaTextureTypeCubemapLayered\b/hipTextureTypeCubemapLayered/g; + simpleSubstitutions(); $countKeywords += m/__global__/; $countKeywords += m/__shared__/; @@ -1790,8 +1794,7 @@ if ($print_stats) { } } -sub transformHostFunctions -{ +sub transformHostFunctions { my $m = 0; foreach $func ( "hipMemcpyToSymbol", @@ -1824,8 +1827,7 @@ sub transformHostFunctions return $m; } -sub countSupportedDeviceFunctions -{ +sub countSupportedDeviceFunctions { my $m = 0; foreach $func ( "__brev", @@ -2287,8 +2289,7 @@ sub countSupportedDeviceFunctions return $m; } -sub warnUnsupportedDeviceFunctions -{ +sub warnUnsupportedDeviceFunctions { my $line_num = shift; my $m = 0; foreach $func ( diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp index db9831b315..e38a702f01 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp @@ -67,6 +67,7 @@ namespace perl { const std::string sReturn_m = "return $m;\n"; const std::string sForeach = "foreach $func (\n"; const std::string sMy = "my $m = 0;\n"; + const std::string sCudaDevice = "cudaDevice"; const std::string sCudaDeviceId = "cudaDeviceId"; const std::string sCudaDevices = "cudaDevices"; @@ -152,8 +153,34 @@ namespace perl { } } + void generateSimpleSubstitutions(std::unique_ptr& streamPtr) { + *streamPtr.get() << std::endl << sSub << " simpleSubstitutions" << " {" << std::endl; + for (int i = 0; i < NUM_CONV_TYPES; ++i) { + if (i == CONV_INCLUDE_CUDA_MAIN_H || i == CONV_INCLUDE) { + for (auto& ma : CUDA_INCLUDE_MAP) { + if (Statistics::isUnsupported(ma.second)) continue; + if (i == ma.second.type) { + std::string sCUDA = ma.first.str(); + std::string sHIP = ma.second.hipName.str(); + sCUDA = std::regex_replace(sCUDA, std::regex("/"), "\\/"); + sHIP = std::regex_replace(sHIP, std::regex("/"), "\\/"); + *streamPtr.get() << tab << "$ft{'" << counterNames[ma.second.type] << "'} += s/\\b" << sCUDA << "\\b/" << sHIP << "/g;" << std::endl; + } + } + } else { + for (auto& ma : CUDA_RENAMES_MAP()) { + if (Statistics::isUnsupported(ma.second)) continue; + if (i == ma.second.type) { + *streamPtr.get() << tab << "$ft{'" << counterNames[ma.second.type] << "'} += s/\\b" << ma.first.str() << "\\b/" << ma.second.hipName.str() << "/g;" << std::endl; + } + } + } + } + *streamPtr.get() << "}" << std::endl; + } + void generateHostFunctions(std::unique_ptr& streamPtr) { - *streamPtr.get() << std::endl << sSub << " transformHostFunctions" << "{" << std::endl << tab << sMy; + *streamPtr.get() << std::endl << sSub << " transformHostFunctions" << " {" << std::endl << tab << sMy; std::set &funcSet = DeviceSymbolFunctions0; const std::string s0 = "$m += s/(?flush(); From f738c592c75848ef87e1e77fbd175b0c376dd560 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Mon, 30 Sep 2019 17:47:46 +0300 Subject: [PATCH 2/9] [HIPIFY][perl] Generate transformExternShared function + Update hipify-perl accordingly [ROCm/hip commit: 65964db02cfad5fa96952f6606d4966b690739df] --- projects/hip/bin/hipify-perl | 37 +++++++------------ .../hip/hipify-clang/src/CUDA2HIP_Perl.cpp | 14 ++++++- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index 080a368d07..877349d847 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -91,7 +91,7 @@ sub printStats { printf STDERR "%s:%d ", $stat, $counts{$stat}; } printf STDERR ")\n warn:%d LOC:%d", $warnings, $loc; -}; +} sub addStats { my $dest_ref = shift(); @@ -99,7 +99,7 @@ sub addStats { foreach $key (keys %adder) { $dest_ref->{$key} += $adder{$key}; } -}; +} sub clearStats { my $dest_ref = shift(); @@ -107,7 +107,7 @@ sub clearStats { foreach $stat(@statNames) { $dest_ref->{$stat} = 0; } -}; +} sub simpleSubstitutions { $ft{'error'} += s/\bcudaGetErrorName\b/hipGetErrorName/g; @@ -1594,6 +1594,14 @@ sub simpleSubstitutions { $ft{'define'} += s/\bcudaTextureTypeCubemapLayered\b/hipTextureTypeCubemapLayered/g; } +# CUDA extern __shared__ syntax replace with HIP_DYNAMIC_SHARED() macro +sub transformExternShared { + no warnings qw/uninitialized/; + my $k = 0; + $k += s/extern\s+([\w\(\)]+)?\s*__shared__\s+([\w:<>\s]+)\s+(\w+)\s*\[\s*\]\s*;/HIP_DYNAMIC_SHARED($1 $2, $3)/g; + $ft{ 'extern_shared' } += $k; +} + # Count of transforms in all files my %tt; clearStats(\%tt, \@statNames); @@ -1643,27 +1651,8 @@ while (@ARGV) { $countKeywords += m/__global__/; $countKeywords += m/__shared__/; - # CUDA extern __shared__ syntax - # Note these only work if declaration is on a single line. - { - # Match uses ? for <.*> which will be unitialized if this is not present in launch syntax - no warnings qw/uninitialized/; - my $k = 0; - # Replace as HIP_DYNAMIC_SHARED() macro - # Match patterns for the below regular expression: - #'extern __shared__ double foo[];' - #'extern __shared__ unsigned int foo[];' - #'extern volatile __shared__ double foo[];' - #'extern volatile __shared__ unsigned int sdata[];' - #'extern __shared__ volatile unsigned int sdata[];' - #'extern __shared__ T s[];' - #'extern __shared__ T::type s[];' - #'extern __shared__ blah::type s[];' - #'extern __shared__ typename mapper::type s_data[];' - #'extern __attribute__((used)) __shared__ typename mapper::type s_data[];' - $k += s/extern\s+([\w\(\)]+)?\s*__shared__\s+([\w:<>\s]+)\s+(\w+)\s*\[\s*\]\s*;/HIP_DYNAMIC_SHARED($1 $2, $3)/g; - $ft{'extern_shared'} += $k; - } + transformExternShared(); + # CUDA Launch Syntax. Note these only work if launch is on a single line. { # Match uses ? for <.*> which will be unitialized if this is not present in launch syntax diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp index e38a702f01..0ccd69da55 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp @@ -143,13 +143,13 @@ namespace perl { *streamPtr.get() << tab << "foreach $stat (@statNames) {" << std::endl; *streamPtr.get() << double_tab << "printf STDERR \"%s:%d \", $stat, $counts{$stat};" << std::endl; *streamPtr.get() << tab << "}" << std::endl; - *streamPtr.get() << tab << "printf STDERR \")\\n warn:%d LOC:%d\", $warnings, $loc;" << std::endl << "};" << std::endl; + *streamPtr.get() << tab << "printf STDERR \")\\n warn:%d LOC:%d\", $warnings, $loc;" << std::endl << "}" << std::endl; for (int i = 0; i < 2; ++i) { *streamPtr.get() << std::endl << sSub << " " << (i ? "clearStats" : "addStats") << " {" << std::endl; *streamPtr.get() << tab << "my $dest_ref = shift();" << std::endl; *streamPtr.get() << tab << (i ? "my @statNames = @{ shift() };" : "my %adder = %{ shift() };") << std::endl; *streamPtr.get() << tab << "foreach " << (i ? "$stat(@statNames)" : "$key (keys %adder)") << " {" << std::endl; - *streamPtr.get() << double_tab << "$dest_ref->" << (i ? "{$stat} = 0;" : "{$key} += $adder{$key};") << std::endl << tab << "}" << std::endl << "};" << std::endl; + *streamPtr.get() << double_tab << "$dest_ref->" << (i ? "{$stat} = 0;" : "{$key} += $adder{$key};") << std::endl << tab << "}" << std::endl << "}" << std::endl; } } @@ -179,6 +179,15 @@ namespace perl { *streamPtr.get() << "}" << std::endl; } + void generateExternShared(std::unique_ptr& streamPtr) { + *streamPtr.get() << std::endl << "# CUDA extern __shared__ syntax replace with HIP_DYNAMIC_SHARED() macro" << std::endl; + *streamPtr.get() << sSub << " transformExternShared" << " {" << std::endl; + *streamPtr.get() << tab << "no warnings qw/uninitialized/;" << std::endl; + *streamPtr.get() << tab << "my $k = 0;" << std::endl; + *streamPtr.get() << tab << "$k += s/extern\\s+([\\w\\(\\)]+)?\\s*__shared__\\s+([\\w:<>\\s]+)\\s+(\\w+)\\s*\\[\\s*\\]\\s*;/HIP_DYNAMIC_SHARED($1 $2, $3)/g;" << std::endl; + *streamPtr.get() << tab << "$ft{ 'extern_shared' } += $k;" << std::endl << "}" << std::endl; + } + void generateHostFunctions(std::unique_ptr& streamPtr) { *streamPtr.get() << std::endl << sSub << " transformHostFunctions" << " {" << std::endl << tab << sMy; std::set &funcSet = DeviceSymbolFunctions0; @@ -295,6 +304,7 @@ namespace perl { *streamPtr.get() << "\"" << counterNames[NUM_CONV_TYPES - 1] << "\");" << std::endl; generateStatFunctions(streamPtr); generateSimpleSubstitutions(streamPtr); + generateExternShared(streamPtr); generateHostFunctions(streamPtr); generateDeviceFunctions(streamPtr); streamPtr.get()->flush(); From bfa8867a64d1fb8a5a7c2ac340b6fa9b2d7620cd Mon Sep 17 00:00:00 2001 From: Sarbojit2019 <52527887+SarbojitAMD@users.noreply.github.com> Date: Tue, 1 Oct 2019 12:38:32 +0530 Subject: [PATCH 3/9] [dtests] Separated C macros from CPP header file (#1429) * Separated C macros from CPP header file * Updated review comment [ROCm/hip commit: cde5119c9e074b5eaa161018e8ac35b565c7dcf7] --- projects/hip/tests/src/gcc/LaunchKernel.c | 13 +------- projects/hip/tests/src/test_common.h | 40 +++++++++++++++-------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/projects/hip/tests/src/gcc/LaunchKernel.c b/projects/hip/tests/src/gcc/LaunchKernel.c index 4ebe59d7c5..189d3ce614 100644 --- a/projects/hip/tests/src/gcc/LaunchKernel.c +++ b/projects/hip/tests/src/gcc/LaunchKernel.c @@ -27,21 +27,10 @@ */ -#include "hip/hip_runtime.h" +#include "../test_common.h" #include #include "LaunchKernel.h" -#define HIPCHECK(error) \ - { \ - hipError_t localError = error; \ - if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)) { \ - printf("%serror: '%s'(%d) from %s at %s:%d%s\n", "\x1B[31m", hipGetErrorString(localError), \ - localError, #error, __FILE__, __LINE__, "\x1B[0m"); \ - return false; \ - } \ - } - - bool LaunchKernelArg() { dim3 blocks = {1,1,1}; diff --git a/projects/hip/tests/src/test_common.h b/projects/hip/tests/src/test_common.h index 78aa845076..016cc34d52 100644 --- a/projects/hip/tests/src/test_common.h +++ b/projects/hip/tests/src/test_common.h @@ -17,13 +17,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include -#include -#if __CUDACC__ -#include -#else -#include +/* + * File is intended to C and CPP compliant hence any CPP specic changes + * should be added into CPP section + * + */ + +#ifdef __cplusplus + #include + #include + #if __CUDACC__ + #include + #else + #include + #endif #endif + +// ************************ GCC section ************************** #include #include "hip/hip_runtime.h" @@ -41,14 +51,6 @@ THE SOFTWARE. #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" - -#ifdef __HIP_PLATFORM_HCC -#define TYPENAME(T) typeid(T).name() -#else -#define TYPENAME(T) "?" -#endif - - #define passed() \ printf("%sPASSED!%s\n", KGRN, KNRM); \ exit(0); @@ -114,6 +116,15 @@ extern int p_gpuDevice; extern unsigned p_verbose; extern int p_tests; +// ********************* CPP section ********************* +#ifdef __cplusplus + +#ifdef __HIP_PLATFORM_HCC +#define TYPENAME(T) typeid(T).name() +#else +#define TYPENAME(T) "?" +#endif + namespace HipTest { // Returns the current system time in microseconds @@ -470,3 +481,4 @@ struct MemTraits { }; }; // namespace HipTest +#endif //__cplusplus From c731c74aea8b19de5a4bab91ffefeb07d05f265a Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 1 Oct 2019 00:08:47 -0700 Subject: [PATCH 4/9] [ci] Enable tests on ROCm 2.8 (#1482) [ROCm/hip commit: f6ad567d55d4b81d69bc3073b5a9a5dc37b61ebd] --- projects/hip/Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/hip/Jenkinsfile b/projects/hip/Jenkinsfile index e07cf349c4..1873ff3a2b 100644 --- a/projects/hip/Jenkinsfile +++ b/projects/hip/Jenkinsfile @@ -295,13 +295,13 @@ def docker_upload_dockerhub( String local_org, String image_name, String remote_ String build_config = 'Release' String job_name = env.JOB_NAME.toLowerCase( ) -// The following launches 3 builds in parallel: rocm-head, rocm-2.7.x and cuda-10.x -parallel rocm_2_7: +// The following launches 3 builds in parallel: rocm-head, rocm-2.8.x and cuda-10.x +parallel rocm_2_8: { node('hip-rocm') { - String hcc_ver = 'rocm-2.7.x' - String from_image = 'ci_test_nodes/rocm-2.7.x/ubuntu-16.04:latest' + String hcc_ver = 'rocm-2.8.x' + String from_image = 'ci_test_nodes/rocm-2.8.x/ubuntu-16.04:latest' String inside_args = '--device=/dev/kfd --device=/dev/dri --group-add=video' // Checkout source code, dependencies and version files From 52f126b55747e4456dbd21fdc378f668d32071b2 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 1 Oct 2019 12:39:08 +0530 Subject: [PATCH 5/9] Bump version to 2.10 (#1483) Change-Id: I22ac0ae723bc537e027306dbb0f1594552fd33a4 [ROCm/hip commit: 96cf31547efdee714e3dfbd181f291e9137e86d0] --- projects/hip/bin/hipconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/bin/hipconfig b/projects/hip/bin/hipconfig index d6ef8a0c4a..87da86f3b1 100755 --- a/projects/hip/bin/hipconfig +++ b/projects/hip/bin/hipconfig @@ -1,7 +1,7 @@ #!/usr/bin/perl -w $HIP_BASE_VERSION_MAJOR = "2"; -$HIP_BASE_VERSION_MINOR = "8"; +$HIP_BASE_VERSION_MINOR = "10"; # Need perl > 5.10 to use logic-defined or use 5.006; use v5.10.1; From bfb64c43a46c42e9e097da35b67472dbb95641f0 Mon Sep 17 00:00:00 2001 From: satyanveshd <53337087+satyanveshd@users.noreply.github.com> Date: Tue, 1 Oct 2019 12:40:36 +0530 Subject: [PATCH 6/9] Reimplement hipMemGetInfo (#1447) Addresses SWDEV-136570. hipMemGetInfo changed to compute free memory based on information from kfd instead of relying on hc::am_tracker. [ROCm/hip commit: 3d661e47068685abf0ba7723d562eca6d70794d7] --- projects/hip/src/hip_hcc.cpp | 12 ++++++++--- projects/hip/src/hip_hcc_internal.h | 3 +++ projects/hip/src/hip_memory.cpp | 32 ++++++++++++++++++++--------- 3 files changed, 34 insertions(+), 13 deletions(-) diff --git a/projects/hip/src/hip_hcc.cpp b/projects/hip/src/hip_hcc.cpp index 093e7ee292..f509409334 100644 --- a/projects/hip/src/hip_hcc.cpp +++ b/projects/hip/src/hip_hcc.cpp @@ -505,13 +505,19 @@ ihipDevice_t::ihipDevice_t(unsigned deviceId, unsigned deviceCnt, hc::accelerato : _deviceId(deviceId), _acc(acc), _state(0), _criticalData(this) { hsa_agent_t* agent = static_cast(acc.get_hsa_agent()); if (agent) { - int err = hsa_agent_get_info( + int err; + err = hsa_agent_get_info( *agent, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT, &_computeUnits); if (err != HSA_STATUS_SUCCESS) { _computeUnits = 1; } - - _hsaAgent = *agent; + err = hsa_agent_get_info( + *agent, (hsa_agent_info_t) HSA_AMD_AGENT_INFO_DRIVER_NODE_ID, &_driver_node_id); + if (err != HSA_STATUS_SUCCESS){ + _driver_node_id = 0; + } + + _hsaAgent = *agent; } else { _hsaAgent.handle = static_cast(-1); } diff --git a/projects/hip/src/hip_hcc_internal.h b/projects/hip/src/hip_hcc_internal.h index d276aa9caa..3ee14577b0 100644 --- a/projects/hip/src/hip_hcc_internal.h +++ b/projects/hip/src/hip_hcc_internal.h @@ -802,6 +802,9 @@ class ihipDevice_t { // TODO - report this through device properties, base on HCC API call. int _isLargeBar; + + // Node id reported by kfd for this device + uint32_t _driver_node_id; ihipCtx_t* _primaryCtx; diff --git a/projects/hip/src/hip_memory.cpp b/projects/hip/src/hip_memory.cpp index 10eb317f26..43eeac739d 100644 --- a/projects/hip/src/hip_memory.cpp +++ b/projects/hip/src/hip_memory.cpp @@ -19,7 +19,6 @@ 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. */ - #include #include "hsa/hsa.h" #include "hsa/hsa_ext_amd.h" @@ -28,6 +27,8 @@ THE SOFTWARE. #include "hip_hcc_internal.h" #include "trace_helper.h" +#include + __device__ char __hip_device_heap[__HIP_SIZE_OF_HEAP]; __device__ uint32_t __hip_device_page_flag[__HIP_NUM_PAGES]; @@ -1967,16 +1968,27 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) { } else { e = hipErrorInvalidValue; } - + if (free) { - // TODO - replace with kernel-level for reporting free memory: - size_t deviceMemSize, hostMemSize, userMemSize; - hc::am_memtracker_sizeinfo(device->_acc, &deviceMemSize, &hostMemSize, &userMemSize); - - *free = device->_props.totalGlobalMem - deviceMemSize; - - // Deduct the amount of memory from the free memory reported from the system - if (HIP_HIDDEN_FREE_MEM) *free -= (size_t)HIP_HIDDEN_FREE_MEM * 1024 * 1024; + if (!device->_driver_node_id) return ihipLogStatus(hipErrorInvalidDevice); + + std::string fileName = std::string("/sys/class/kfd/kfd/topology/nodes/") + std::to_string(device->_driver_node_id) + std::string("/mem_banks/0/used_memory"); + std::ifstream file; + file.open(fileName); + if (!file) return ihipLogStatus(hipErrorFileNotFound); + + std::string deviceSize; + size_t deviceMemSize; + + file >> deviceSize; + file.close(); + if ((deviceMemSize=strtol(deviceSize.c_str(),NULL,10))){ + *free = device->_props.totalGlobalMem - deviceMemSize; + // Deduct the amount of memory from the free memory reported from the system + if (HIP_HIDDEN_FREE_MEM) *free -= (size_t)HIP_HIDDEN_FREE_MEM * 1024 * 1024; + } else { + return ihipLogStatus(hipErrorInvalidValue); + } } else { e = hipErrorInvalidValue; } From 34e20b856822724efd776698cd71c8e09cb5449f Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Tue, 1 Oct 2019 11:17:27 +0300 Subject: [PATCH 7/9] [HIPIFY][perl] Generate transformKernelLaunch + Update hipify-perl accordingly + Minor refactoring [ROCm/hip commit: c8f73ea49173653bba4f3cd625879b111d3e98f9] --- projects/hip/bin/hipify-perl | 344 +++++++++--------- .../hip/hipify-clang/src/CUDA2HIP_Perl.cpp | 68 +++- 2 files changed, 229 insertions(+), 183 deletions(-) diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index 877349d847..fbb135757b 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -26,6 +26,7 @@ use Getopt::Long; my $whitelist = ""; +my $fileName = ""; GetOptions( "examine" => \$examine # Combines -no-output and -print-stats options. @@ -1602,184 +1603,45 @@ sub transformExternShared { $ft{ 'extern_shared' } += $k; } -# Count of transforms in all files -my %tt; -clearStats(\%tt, \@statNames); -$Twarnings = 0; -$TlineCount = 0; -my %TwarningTags; -my %Tkernels; -my $fileCount = @ARGV; -my $fileName = ""; +# CUDA Kernel Launch Syntax +sub transformKernelLaunch { + my $TkernRef = @_; + no warnings qw/uninitialized/; + my $k = 0; -while (@ARGV) { - $fileName=shift (@ARGV); - if ($inplace) { - my $file_prehip = "$fileName" . ".prehip"; - my $infile; - my $outfile; - if (-e $file_prehip) { - $infile = $file_prehip; - $outfile = $fileName; - } else { - system ("cp $fileName $file_prehip"); - $infile = $file_prehip; - $outfile = $fileName; - } - open(INFILE,"<", $infile) or die "error: could not open $infile"; - open(OUTFILE,">", $outfile) or die "error: could not open $outfile"; - $OUTFILE = OUTFILE; - } else { - open(INFILE,"<", $fileName) or die "error: could not open $fileName"; - $OUTFILE = STDOUT; - } - # Note : \b is used in perl to indicate the start of a word - # Count of transforms in this file - my %ft; - clearStats(\%ft, \@statNames); - my $countIncludes = 0; - my $countKeywords = 0; - my $warnings = 0; - my %warningTags; - my $lineCount = 0; - undef $/; - # Read whole file at once, so we can match newlines - while () - { - simpleSubstitutions(); + # Handle the kern<...><<>>() syntax with empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6)/g; + # Handle the kern<<>>() syntax with empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5)/g; - $countKeywords += m/__global__/; - $countKeywords += m/__shared__/; + # Handle the kern<...><<>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6, /g; + # Handle the kern<<>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5, /g; - transformExternShared(); + # Handle the kern<...><<>>() syntax with empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0)/g; + # Handle the kern<<>>() syntax with empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0)/g; - # CUDA Launch Syntax. Note these only work if launch is on a single line. - { - # Match uses ? for <.*> which will be unitialized if this is not present in launch syntax - no warnings qw/uninitialized/; - my $k = 0; + # Handle the kern<...><>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0, /g; + # Handle the kern<<>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0, /g; - # Handle the kern<...><<>> syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6)/g; - # Handle the kern<<>> syntax with empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5)/g; + # Handle the kern<...><<>>() syntax with empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0)/g; + # Handle the kern<<>>() syntax with empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0)/g; - # Handle the kern<...><<>> syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6, /g; - # Handle the kern<<>> syntax with non-empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5, /g; + # Handle the kern<...><<>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0, /g; + # Handle the kern<<>>(...) syntax with non-empty args: + $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0, /g; - # Handle the kern<...><<>> syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0)/g; - # Handle the kern<<>> syntax with empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0)/g; - - # Handle the kern<...><<>> syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0, /g; - # Handle the kern<<>> syntax with non-empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0, /g; - - # Handle the kern<...><<>> syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0)/g; - # Handle the kern<<>> syntax with empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0)/g; - - # Handle the kern<...><<>> syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0, /g; - # Handle the kern<<>> syntax with non-empty args: - $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0, /g; - - if ($k) { - $ft{'kernel_launch'} += $k; - $Tkernels{$1} ++; - } - } - if ($print_stats) { - while (/(\bhip[A-Z]\w+\b)/g) { - $convertedTags{$1}++; - } - } - my $hasDeviceCode = $countKeywords + $ft{'device_function'}; - unless ($quiet_warnings) { - # Copy into array of lines, process line-by-line to show warnings - if ($hasDeviceCode or (/\bcu/) or (/\bCU_/) or (/\bCUDA_/) or (/<<<.*>>>/)) { - my @lines = split /\n/, $_; - # Copy the whole file - my $tmp = $_; - my $line_num = 0; - foreach (@lines) { - $line_num ++; - # Remove any whitelisted words - foreach $w (@whitelist) { - s/\b$w\b/ZAP/ - } - my $tag; - if ((/(\bcuda[A-Z]\w+)/) or (/<<<.*>>>/)) { - # Flag any remaining code that look like cuda API calls: may want to add these to hipify - $tag = (defined $1) ? $1 : "Launch"; - } - if (defined $tag) { - $warnings++; - $warningTags{$tag}++; - print STDERR " warning: $fileName:#$line_num : $_"; - print STDERR "\n"; - } - $s = warnUnsupportedDeviceFunctions($line_num); - $warnings += $s; - } - $_ = $tmp; - } - } - if ($hasDeviceCode > 0) { - $ft{'device_function'} += countSupportedDeviceFunctions(); - } - transformHostFunctions(); - # TODO: would like to move this code outside loop but it uses $_ which contains the whole file - unless ($no_output) { - my $apiCalls = $ft{'error'} + $ft{'init'} + $ft{'version'} + $ft{'device'} + $ft{'context'} + $ft{'module'} + $ft{'memory'} + $ft{'addressing'} + $ft{'stream'} + $ft{'event'} + $ft{'external_resource_interop'} + $ft{'stream_memory'} + $ft{'execution'} + $ft{'graph'} + $ft{'occupancy'} + $ft{'texture'} + $ft{'surface'} + $ft{'peer'} + $ft{'graphics'} + $ft{'profiler'} + $ft{'openGL'} + $ft{'D3D9'} + $ft{'D3D10'} + $ft{'D3D11'} + $ft{'VDPAU'} + $ft{'EGL'} + $ft{'thread'} + $ft{'complex'} + $ft{'library'} + $ft{'device_library'} + $ft{'include'} + $ft{'include_cuda_main_header'} + $ft{'type'} + $ft{'literal'} + $ft{'numeric_literal'} + $ft{'define'}; - my $kernStuff = $hasDeviceCode + $ft{'kernel_launch'} + $ft{'device_function'}; - my $totalCalls = $apiCalls + $kernStuff; - $is_dos = m/\r\n$/; - if ($totalCalls and ($countIncludes == 0) and ($kernStuff != 0)) { - # TODO: implement hipify-clang's logic with header files AMAP - print $OUTFILE '#include "hip/hip_runtime.h"' . ($is_dos ? "\r\n" : "\n"); - } - print $OUTFILE "$_"; - } - $lineCount = $_ =~ tr/\n//; - } - my $totalConverted = totalStats(\%ft); - if (($totalConverted+$warnings) and $print_stats) { - printStats(" info: converted", \@statNames, \%ft, $warnings, $lineCount); - print STDERR " in '$fileName'\n"; - } - # Update totals for all files - addStats(\%tt, \%ft); - $Twarnings += $warnings; - $TlineCount += $lineCount; - foreach $key (keys %warningTags) { - $TwarningTags{$key} += $warningTags{$key}; - } -} -# Print total stats for all files processed: -if ($print_stats and ($fileCount > 1)) { - print STDERR "\n"; - printStats(" info: TOTAL-converted", \@statNames, \%tt, $Twarnings, $TlineCount); - print STDERR "\n"; - foreach my $key (sort { $TwarningTags{$b} <=> $TwarningTags{$a} } keys %TwarningTags) { - printf STDERR " warning: unconverted %s : %d\n", $key, $TwarningTags{$key}; - } - my $kernelCnt = keys %Tkernels; - printf STDERR " kernels (%d total) : ", $kernelCnt; - foreach my $key (sort { $Tkernels{$b} <=> $Tkernels{$a} } keys %Tkernels) { - printf STDERR " %s(%d)", $key, $Tkernels{$key}; - } - print STDERR "\n"; - print STDERR "\n"; -} -if ($print_stats) { - foreach my $key (sort { $convertedTags{$b} <=> $convertedTags{$a} } keys %convertedTags) { - printf STDERR " %s %d\n", $key, $convertedTags{$key}; + if ($k) { + $ft{'kernel_launch'} += $k; + @$TkernRef{$1} ++; } } @@ -2420,3 +2282,143 @@ sub warnUnsupportedDeviceFunctions { } return $m; } + +# Count of transforms in all files +my %tt; +clearStats(\%tt, \@statNames); +$Twarnings = 0; +$TlineCount = 0; +my %TwarningTags; +my %Tkernels; +my $fileCount = @ARGV; + +while (@ARGV) { + $fileName=shift (@ARGV); + if ($inplace) { + my $file_prehip = "$fileName" . ".prehip"; + my $infile; + my $outfile; + if (-e $file_prehip) { + $infile = $file_prehip; + $outfile = $fileName; + } else { + system ("cp $fileName $file_prehip"); + $infile = $file_prehip; + $outfile = $fileName; + } + open(INFILE,"<", $infile) or die "error: could not open $infile"; + open(OUTFILE,">", $outfile) or die "error: could not open $outfile"; + $OUTFILE = OUTFILE; + } else { + open(INFILE,"<", $fileName) or die "error: could not open $fileName"; + $OUTFILE = STDOUT; + } + # Note : \b is used in perl to indicate the start of a word + # Count of transforms in this file + my %ft; + clearStats(\%ft, \@statNames); + my $countIncludes = 0; + my $countKeywords = 0; + my $warnings = 0; + my %warningTags; + my $lineCount = 0; + undef $/; + # Read whole file at once, so we can match newlines + while () + { + simpleSubstitutions(); + + $countKeywords += m/__global__/; + $countKeywords += m/__shared__/; + + transformExternShared(); + transformKernelLaunch(\%Tkernels); + + if ($print_stats) { + while (/(\bhip[A-Z]\w+\b)/g) { + $convertedTags{$1}++; + } + } + my $hasDeviceCode = $countKeywords + $ft{'device_function'}; + unless ($quiet_warnings) { + # Copy into array of lines, process line-by-line to show warnings + if ($hasDeviceCode or (/\bcu/) or (/\bCU_/) or (/\bCUDA_/) or (/<<<.*>>>/)) { + my @lines = split /\n/, $_; + # Copy the whole file + my $tmp = $_; + my $line_num = 0; + foreach (@lines) { + $line_num ++; + # Remove any whitelisted words + foreach $w (@whitelist) { + s/\b$w\b/ZAP/ + } + my $tag; + if ((/(\bcuda[A-Z]\w+)/) or (/<<<.*>>>/)) { + # Flag any remaining code that look like cuda API calls: may want to add these to hipify + $tag = (defined $1) ? $1 : "Launch"; + } + if (defined $tag) { + $warnings++; + $warningTags{$tag}++; + print STDERR " warning: $fileName:#$line_num : $_"; + print STDERR "\n"; + } + $s = warnUnsupportedDeviceFunctions($line_num); + $warnings += $s; + } + $_ = $tmp; + } + } + if ($hasDeviceCode > 0) { + $ft{'device_function'} += countSupportedDeviceFunctions(); + } + transformHostFunctions(); + # TODO: would like to move this code outside loop but it uses $_ which contains the whole file + unless ($no_output) { + my $apiCalls = $ft{'error'} + $ft{'init'} + $ft{'version'} + $ft{'device'} + $ft{'context'} + $ft{'module'} + $ft{'memory'} + $ft{'addressing'} + $ft{'stream'} + $ft{'event'} + $ft{'external_resource_interop'} + $ft{'stream_memory'} + $ft{'execution'} + $ft{'graph'} + $ft{'occupancy'} + $ft{'texture'} + $ft{'surface'} + $ft{'peer'} + $ft{'graphics'} + $ft{'profiler'} + $ft{'openGL'} + $ft{'D3D9'} + $ft{'D3D10'} + $ft{'D3D11'} + $ft{'VDPAU'} + $ft{'EGL'} + $ft{'thread'} + $ft{'complex'} + $ft{'library'} + $ft{'device_library'} + $ft{'include'} + $ft{'include_cuda_main_header'} + $ft{'type'} + $ft{'literal'} + $ft{'numeric_literal'} + $ft{'define'}; + my $kernStuff = $hasDeviceCode + $ft{'kernel_launch'} + $ft{'device_function'}; + my $totalCalls = $apiCalls + $kernStuff; + $is_dos = m/\r\n$/; + if ($totalCalls and ($countIncludes == 0) and ($kernStuff != 0)) { + # TODO: implement hipify-clang's logic with header files AMAP + print $OUTFILE '#include "hip/hip_runtime.h"' . ($is_dos ? "\r\n" : "\n"); + } + print $OUTFILE "$_"; + } + $lineCount = $_ =~ tr/\n//; + } + my $totalConverted = totalStats(\%ft); + if (($totalConverted+$warnings) and $print_stats) { + printStats(" info: converted", \@statNames, \%ft, $warnings, $lineCount); + print STDERR " in '$fileName'\n"; + } + # Update totals for all files + addStats(\%tt, \%ft); + $Twarnings += $warnings; + $TlineCount += $lineCount; + foreach $key (keys %warningTags) { + $TwarningTags{$key} += $warningTags{$key}; + } +} +# Print total stats for all files processed: +if ($print_stats and ($fileCount > 1)) { + print STDERR "\n"; + printStats(" info: TOTAL-converted", \@statNames, \%tt, $Twarnings, $TlineCount); + print STDERR "\n"; + foreach my $key (sort { $TwarningTags{$b} <=> $TwarningTags{$a} } keys %TwarningTags) { + printf STDERR " warning: unconverted %s : %d\n", $key, $TwarningTags{$key}; + } + my $kernelCnt = keys %Tkernels; + printf STDERR " kernels (%d total) : ", $kernelCnt; + foreach my $key (sort { $Tkernels{$b} <=> $Tkernels{$a} } keys %Tkernels) { + printf STDERR " %s(%d)", $key, $Tkernels{$key}; + } + print STDERR "\n"; + print STDERR "\n"; +} +if ($print_stats) { + foreach my $key (sort { $convertedTags{$b} <=> $convertedTags{$a} } keys %convertedTags) { + printf STDERR " %s %d\n", $key, $convertedTags{$key}; + } +} diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp index 0ccd69da55..5d7a8790d0 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp @@ -64,10 +64,11 @@ namespace perl { const std::string triple_tab = double_tab + tab; const std::string sSub = "sub"; const std::string sReturn_0 = "return 0;\n"; - const std::string sReturn_m = "return $m;\n"; + const std::string sReturn_k = "return $k;\n"; const std::string sForeach = "foreach $func (\n"; - const std::string sMy = "my $m = 0;\n"; - + const std::string sMy_k = "my $k = 0;"; + const std::string sNoWarns = "no warnings qw/uninitialized/;"; + const std::string sCudaDevice = "cudaDevice"; const std::string sCudaDeviceId = "cudaDeviceId"; const std::string sCudaDevices = "cudaDevices"; @@ -182,17 +183,59 @@ namespace perl { void generateExternShared(std::unique_ptr& streamPtr) { *streamPtr.get() << std::endl << "# CUDA extern __shared__ syntax replace with HIP_DYNAMIC_SHARED() macro" << std::endl; *streamPtr.get() << sSub << " transformExternShared" << " {" << std::endl; - *streamPtr.get() << tab << "no warnings qw/uninitialized/;" << std::endl; - *streamPtr.get() << tab << "my $k = 0;" << std::endl; + *streamPtr.get() << tab << sNoWarns << std::endl; + *streamPtr.get() << tab << sMy_k << std::endl; *streamPtr.get() << tab << "$k += s/extern\\s+([\\w\\(\\)]+)?\\s*__shared__\\s+([\\w:<>\\s]+)\\s+(\\w+)\\s*\\[\\s*\\]\\s*;/HIP_DYNAMIC_SHARED($1 $2, $3)/g;" << std::endl; *streamPtr.get() << tab << "$ft{ 'extern_shared' } += $k;" << std::endl << "}" << std::endl; } + void generateKernelLaunch(std::unique_ptr& streamPtr) { + *streamPtr.get() << std::endl << "# CUDA Kernel Launch Syntax" << std::endl; + *streamPtr.get() << sSub << " transformKernelLaunch" << " {" << std::endl; + *streamPtr.get() << tab << "my $TkernRef = @_;" << std::endl; + *streamPtr.get() << tab << sNoWarns << std::endl; + *streamPtr.get() << tab << sMy_k << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6)/g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5)/g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><<>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6, /g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5, /g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0)/g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0)/g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0, /g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0, /g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0)/g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0)/g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "# Handle the kern<...><<>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0, /g;" << std::endl; + *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0, /g;" << std::endl << std::endl; + + *streamPtr.get() << tab << "if ($k) {" << std::endl; + *streamPtr.get() << double_tab << "$ft{'kernel_launch'} += $k;" << std::endl; + *streamPtr.get() << double_tab << "@$TkernRef{$1} ++;" << std::endl << tab << "}" << std::endl << "}" << std::endl; + } + void generateHostFunctions(std::unique_ptr& streamPtr) { - *streamPtr.get() << std::endl << sSub << " transformHostFunctions" << " {" << std::endl << tab << sMy; + *streamPtr.get() << std::endl << sSub << " transformHostFunctions" << " {" << std::endl << tab << sMy_k << std::endl; std::set &funcSet = DeviceSymbolFunctions0; - const std::string s0 = "$m += s/(?& streamPtr) { @@ -240,7 +283,7 @@ namespace perl { std::stringstream subCountSupported; std::stringstream subWarnUnsupported; std::stringstream subCommon; - std::string sCommon = tab + sMy + tab + sForeach; + std::string sCommon = tab + sMy_k + "\n" + tab + sForeach; subCountSupported << std::endl << sSub << " countSupportedDeviceFunctions" << " {" << std::endl << (countSupported ? sCommon : tab + sReturn_0); subWarnUnsupported << std::endl << sSub << " warnUnsupportedDeviceFunctions" << " {" << std::endl << (countUnsupported ? tab + "my $line_num = shift;\n" + sCommon : tab + sReturn_0); if (countSupported) { @@ -256,7 +299,7 @@ namespace perl { subCommon << double_tab << "my $mt_namespace = m/(\\w+)::($func)\\s*\\(\\s*.*\\s*\\)/g;" << std::endl; subCommon << double_tab << "my $mt = m/($func)\\s*\\(\\s*.*\\s*\\)/g;" << std::endl; subCommon << double_tab << "if ($mt && !$mt_namespace) {" << std::endl; - subCommon << triple_tab << "$m += $mt;" << std::endl; + subCommon << triple_tab << "$k += $mt;" << std::endl; } if (countSupported) { subCountSupported << subCommon.str(); @@ -266,7 +309,7 @@ namespace perl { subWarnUnsupported << triple_tab << "print STDERR \" warning: $fileName:$line_num: unsupported device function \\\"$func\\\": $_\\n\";" << std::endl; } if (countSupported || countUnsupported) { - sCommon = double_tab + "}\n" + tab + "}\n" + tab + sReturn_m; + sCommon = double_tab + "}\n" + tab + "}\n" + tab + sReturn_k; } if (countSupported) subCountSupported << sCommon; if (countUnsupported) subWarnUnsupported << sCommon; @@ -305,6 +348,7 @@ namespace perl { generateStatFunctions(streamPtr); generateSimpleSubstitutions(streamPtr); generateExternShared(streamPtr); + generateKernelLaunch(streamPtr); generateHostFunctions(streamPtr); generateDeviceFunctions(streamPtr); streamPtr.get()->flush(); From 3652d77965cc7de4b86de4655e124a9438bf67ce Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Tue, 1 Oct 2019 13:57:46 +0300 Subject: [PATCH 8/9] [HIPIFY][#1490][fix] Populate the list of supported device atomic functions + Update hipify-perl accordingly + Add atomics.cu test on all atomics [ROCm/hip commit: b5f17e8ff0449c102c9824c583029b16702eb6e9] --- projects/hip/bin/hipify-perl | 36 ++- .../src/CUDA2HIP_Device_functions.cpp | 22 +- .../hipify-clang/unit_tests/device/atomics.cu | 284 ++++++++++++++++++ 3 files changed, 324 insertions(+), 18 deletions(-) create mode 100644 projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index fbb135757b..2a87271a60 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -1646,13 +1646,13 @@ sub transformKernelLaunch { } sub transformHostFunctions { - my $m = 0; + my $k = 0; foreach $func ( "hipMemcpyToSymbol", "hipMemcpyToSymbolAsync" ) { - $m += s/(?\($2\),/g + $k += s/(?\($2\),/g } foreach $func ( "hipFuncGetAttributes" ) { - $m += s/(?\($3\)$4/g; + $k += s/(?\($3\)$4/g; } - return $m; + return $k; } sub countSupportedDeviceFunctions { - my $m = 0; + my $k = 0; foreach $func ( "__brev", "__brevll", @@ -1935,6 +1935,17 @@ sub countSupportedDeviceFunctions { "atanf", "atanh", "atanhf", + "atomicAdd", + "atomicAnd", + "atomicCAS", + "atomicDec", + "atomicExch", + "atomicInc", + "atomicMax", + "atomicMin", + "atomicOr", + "atomicSub", + "atomicXor", "cbrt", "cbrtf", "ceil", @@ -2134,15 +2145,15 @@ sub countSupportedDeviceFunctions { my $mt_namespace = m/(\w+)::($func)\s*\(\s*.*\s*\)/g; my $mt = m/($func)\s*\(\s*.*\s*\)/g; if ($mt && !$mt_namespace) { - $m += $mt; + $k += $mt; } } - return $m; + return $k; } sub warnUnsupportedDeviceFunctions { my $line_num = shift; - my $m = 0; + my $k = 0; foreach $func ( "_Pow_int", "__brkpt", @@ -2250,7 +2261,6 @@ sub warnUnsupportedDeviceFunctions { "__vsubus4", "_fdsign", "_ldsign", - "atomicAdd", "float2int", "float_as_int", "float_as_uint", @@ -2276,11 +2286,11 @@ sub warnUnsupportedDeviceFunctions { my $mt_namespace = m/(\w+)::($func)\s*\(\s*.*\s*\)/g; my $mt = m/($func)\s*\(\s*.*\s*\)/g; if ($mt && !$mt_namespace) { - $m += $mt; + $k += $mt; print STDERR " warning: $fileName:$line_num: unsupported device function \"$func\": $_\n"; } } - return $m; + return $k; } # Count of transforms in all files diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp index b61e4bd73c..bd555156c3 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Device_functions.cpp @@ -599,9 +599,21 @@ const std::map CUDA_DEVICE_FUNC_MAP{ {"h2exp10", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, {"h2cos", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, {"h2sin", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, - {"__shfl_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, - {"__shfl_up_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, - {"__shfl_down_sync",{"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, - {"__shfl_xor_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, - {"atomicAdd", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_up_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_down_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + {"__shfl_xor_sync", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}}, + // atomic functions + {"atomicAdd", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicSub", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicExch", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicMin", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicMax", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicInc", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicDec", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicDec", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicAnd", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicOr", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicXor", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, + {"atomicCAS", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}}, }; diff --git a/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu b/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu new file mode 100644 index 0000000000..d1c1fad401 --- /dev/null +++ b/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu @@ -0,0 +1,284 @@ +// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args "-Xclang" "-fcuda-allow-variadic-functions" + +/* +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. +*/ + +// CHECK: #include "hip/hip_runtime.h" +#include "cuda_runtime.h" + +#include +#include +#include +#include +#include +#include + +#define EXIT_WAIVED 2 + +const char* sampleName = "hipSimpleAtomicsTest"; + +using namespace std; +// Auto-Verification Code +bool testResult = true; + +bool computeGoldBitwise(...) { + return true; +} + +template{}>::type* = nullptr> +bool computeGoldBitwise(T* gpuData, int len) { + T val = 0xff; + for (int i = 0; i < len; ++i) { + // 9th element should be 1 + val &= (2 * i + 7); + } + if (val != gpuData[8]) { + printf("atomicAnd failed\n"); + return false; + } + + val = 0; + for (int i = 0; i < len; ++i) { + // 10th element should be 0xff + val |= (1 << i); + } + if (val != gpuData[9]) { + printf("atomicOr failed\n"); + return false; + } + + val = 0xff; + for (int i = 0; i < len; ++i) { + // 11th element should be 0xff + val ^= i; + } + if (val != gpuData[10]) { + printf("atomicXor failed\n"); + return false; + } + + return true; +} + +template +bool computeGold(T* gpuData, int len) { + T val = 0; + for (int i = 0; i < len; ++i) { + val += 10; + } + if (val != gpuData[0]) { + printf("atomicAdd failed\n"); + return false; + } + + val = 0; + for (int i = 0; i < len; ++i) { + val -= 10; + } + if (val != gpuData[1]) { + printf("atomicSub failed\n"); + return false; + } + + bool found = false; + for (T i = 0; i < len; ++i) { + // third element should be a member of [0, len) + if (i == gpuData[2]) { + found = true; + break; + } + } + if (!found) { + printf("atomicExch failed\n"); + return false; + } + + val = -(1 << 8); + for (T i = 0; i < len; ++i) { + // fourth element should be len-1 + val = max(val, i); + } + if (val != gpuData[3]) { + printf("atomicMax failed\n"); + return false; + } + + val = 1 << 8; + for (T i = 0; i < len; ++i) { + val = min(val, i); + } + if (val != gpuData[4]) { + printf("atomicMin failed\n"); + return false; + } + + int limit = 17; + val = 0; + for (int i = 0; i < len; ++i) { + val = (val >= limit) ? 0 : val + 1; + } + if (val != gpuData[5]) { + printf("atomicInc failed\n"); + return false; + } + + limit = 137; + val = 0; + for (int i = 0; i < len; ++i) { + val = ((val == 0) || (val > limit)) ? limit : val - 1; + } + if (val != gpuData[6]) { + printf("atomicDec failed\n"); + return false; + } + + found = false; + for (T i = 0; i < len; ++i) { + // eighth element should be a member of [0, len) + if (i == gpuData[7]) { + found = true; + break; + } + } + if (!found) { + printf("atomicCAS failed\n"); + return false; + } + + return computeGoldBitwise(gpuData, len); +} + +__device__ +void testKernelExch(...) {} + +template{}>::type* = nullptr> +__device__ +void testKernelExch(T* g_odata) { + // access thread id + const T tid = blockDim.x * blockIdx.x + threadIdx.x; + // Atomic exchange + atomicExch(&g_odata[2], tid); +} + +__device__ +void testKernelSub(...) {} + +template< + typename T, + typename enable_if< + is_same{} || is_same{}>::type* = nullptr> +__device__ +void testKernelSub(T* g_odata) { + // Atomic subtraction (final should be 0) + atomicSub(&g_odata[1], 10); +} + +__device__ +void testKernelIntegral(...) {} + +template{}>::type* = nullptr> +__device__ +void testKernelIntegral(T* g_odata) { + // access thread id + const T tid = blockDim.x * blockIdx.x + threadIdx.x; + // Atomic maximum + atomicMax(&g_odata[3], tid); + // Atomic minimum + atomicMin(&g_odata[4], tid); + // Atomic increment (modulo 17+1) + atomicInc((unsigned int*)&g_odata[5], 17); + // Atomic decrement + atomicDec((unsigned int*)&g_odata[6], 137); + // Atomic compare-and-swap + atomicCAS(&g_odata[7], tid - 1, tid); + // Atomic AND + atomicAnd(&g_odata[8], 2 * tid + 7); + // Atomic OR + atomicOr(&g_odata[9], 1 << tid); + // Atomic XOR + atomicXor(&g_odata[10], tid); + testKernelSub(g_odata); +} + +template +__global__ void testKernel(T* g_odata) { + // Atomic addition + atomicAdd(&g_odata[0], 10); + testKernelIntegral(g_odata); + testKernelExch(g_odata); +} + +template +void runTest() { + // CHECK: hipDeviceProp_t deviceProp; + cudaDeviceProp deviceProp; + deviceProp.major = 0; + deviceProp.minor = 0; + int dev = 0; + // CHECK: hipGetDeviceProperties(&deviceProp, dev); + cudaGetDeviceProperties(&deviceProp, dev); + // Statistics about the GPU device + printf( + "> GPU device has %d Multi-Processors, " + "SM %d.%d compute capabilities\n\n", + deviceProp.multiProcessorCount, deviceProp.major, deviceProp.minor); + unsigned int numThreads = 256; + unsigned int numBlocks = 64; + unsigned int numData = 11; + unsigned int memSize = sizeof(T) * numData; + + // Allocate mem for the result on host side + T* hOData = (T*)malloc(memSize); + // Initialize the memory + for (unsigned int i = 0; i < numData; i++) hOData[i] = 0; + // To make the AND and XOR tests generate something other than 0... + hOData[8] = hOData[10] = 0xff; + // Allocate device memory for result + T* dOData; + // CHECK: hipMalloc((void**)&dOData, memSize); + cudaMalloc((void**)&dOData, memSize); + // Copy host memory to device to initialize to zero + // CHECK: hipMemcpy(dOData, hOData, memSize, hipMemcpyHostToDevice); + cudaMemcpy(dOData, hOData, memSize, cudaMemcpyHostToDevice); + // Execute the kernel + // CHECK: hipLaunchKernelGGL((testKernel), dim3(numBlocks), dim3(numThreads), 0, 0, dOData); + testKernel<<>>(dOData); + // Copy result from device to host + // CHECK: hipMemcpy(hOData, dOData, memSize, hipMemcpyDeviceToHost); + cudaMemcpy(hOData, dOData, memSize, cudaMemcpyDeviceToHost); + // Compute reference solution + testResult = computeGold(hOData, numThreads * numBlocks); + // Cleanup memory + free(hOData); + // CHECK: hipFree(dOData); + cudaFree(dOData); +} + +int main(int argc, char** argv) { + printf("%s starting...\n", sampleName); + runTest(); + runTest(); + runTest(); + runTest(); + runTest(); + // CHECK: hipDeviceReset(); + cudaDeviceReset(); + printf("%s completed, returned %s\n", sampleName, testResult ? "OK" : "ERROR!"); + exit(testResult ? EXIT_SUCCESS : EXIT_FAILURE); +} From eab4a413365e568cf9e86e99b72528df3ead1d44 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Wed, 2 Oct 2019 16:01:07 +0300 Subject: [PATCH 9/9] [HIPIFY] Return to wrapping with HIP_KERNEL_NAME(...) macro of a template instantiation kernel launch [REASON] 1. hip-clang is fine with the templated kernel launch, brackets are unneeded: HIP_KERNEL_NAME(...) __VA_ARGS__ 2. HCC is not, thus: HIP_KERNEL_NAME(...) (__VA_ARGS__) [TODO] Clean-up entirely kernel name wrapping when HCC is finally obsolete. + Update perl generation, hipify-perl, and affected tests accordingly. [ROCm/hip commit: 6bb9913e8a5c9c2f32c8e52479f6d5e1ca4b138f] --- projects/hip/bin/hipify-perl | 12 ++++++------ projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp | 12 ++++++------ projects/hip/hipify-clang/src/HipifyAction.cpp | 3 ++- .../hipify-clang/unit_tests/device/atomics.cu | 2 +- .../libraries/cuRAND/benchmark_curand_kernel.cpp | 10 +++++----- .../tests/hipify-clang/unit_tests/samples/axpy.cu | 14 +++++++------- .../hipify-clang/unit_tests/samples/square.cu | 2 +- 7 files changed, 28 insertions(+), 27 deletions(-) diff --git a/projects/hip/bin/hipify-perl b/projects/hip/bin/hipify-perl index 2a87271a60..609b0fc3f4 100755 --- a/projects/hip/bin/hipify-perl +++ b/projects/hip/bin/hipify-perl @@ -1610,32 +1610,32 @@ sub transformKernelLaunch { my $k = 0; # Handle the kern<...><<>>() syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6)/g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, $6)/g; # Handle the kern<<>>() syntax with empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5)/g; # Handle the kern<...><<>>(...) syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6, /g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, $6, /g; # Handle the kern<<>>(...) syntax with non-empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5, /g; # Handle the kern<...><<>>() syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0)/g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, 0)/g; # Handle the kern<<>>() syntax with empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0)/g; # Handle the kern<...><>>(...) syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0, /g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, 0, /g; # Handle the kern<<>>(...) syntax with non-empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0, /g; # Handle the kern<...><<>>() syntax with empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0)/g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), 0, 0)/g; # Handle the kern<<>>() syntax with empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\((\s*)\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0)/g; # Handle the kern<...><<>>(...) syntax with non-empty args: - $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0, /g; + $k += s/(\w+)\s*<(.+)>\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), 0, 0, /g; # Handle the kern<<>>(...) syntax with non-empty args: $k += s/(\w+)\s*<<<\s*(.+)\s*,\s*(.+)\s*>>>(\s*)\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0, /g; diff --git a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp index 5d7a8790d0..f101f9b8cb 100644 --- a/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp +++ b/projects/hip/hipify-clang/src/CUDA2HIP_Perl.cpp @@ -197,32 +197,32 @@ namespace perl { *streamPtr.get() << tab << sMy_k << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6)/g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, $6)/g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5)/g;" << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><<>>(...) syntax with non-empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, $6, /g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, $6, /g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, $5, /g;" << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0)/g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, 0)/g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0)/g;" << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><>>(...) syntax with non-empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), $5, 0, /g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), $5, 0, /g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), $4, 0, /g;" << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><<>>() syntax with empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0)/g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), 0, 0)/g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>() syntax with empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\((\\s*)\\)/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0)/g;" << std::endl << std::endl; *streamPtr.get() << tab << "# Handle the kern<...><<>>(...) syntax with non-empty args:" << std::endl; - *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(($1<$2>), dim3($3), dim3($4), 0, 0, /g;" << std::endl; + *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<(.+)>\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL(HIP_KERNEL_NAME($1<$2>), dim3($3), dim3($4), 0, 0, /g;" << std::endl; *streamPtr.get() << tab << "# Handle the kern<<>>(...) syntax with non-empty args:" << std::endl; *streamPtr.get() << tab << "$k += s/(\\w+)\\s*<<<\\s*(.+)\\s*,\\s*(.+)\\s*>>>(\\s*)\\(/hipLaunchKernelGGL($1, dim3($2), dim3($3), 0, 0, /g;" << std::endl << std::endl; diff --git a/projects/hip/hipify-clang/src/HipifyAction.cpp b/projects/hip/hipify-clang/src/HipifyAction.cpp index cb0a5eedc9..5c5663985a 100644 --- a/projects/hip/hipify-clang/src/HipifyAction.cpp +++ b/projects/hip/hipify-clang/src/HipifyAction.cpp @@ -38,6 +38,7 @@ namespace mat = clang::ast_matchers; const std::string sHIP_DYNAMIC_SHARED = "HIP_DYNAMIC_SHARED"; std::string sHIP_SYMBOL = "HIP_SYMBOL"; +std::string sHIP_KERNEL_NAME = "HIP_KERNEL_NAME"; std::string s_reinterpret_cast = "reinterpret_cast"; const std::string sHipLaunchKernelGGL = "hipLaunchKernelGGL("; const std::string sDim3 = "dim3("; @@ -348,7 +349,7 @@ bool HipifyAction::cudaLaunchKernel(const clang::ast_matchers::MatchFinder::Matc clang::LangOptions DefaultLangOptions; clang::SourceManager* SM = Result.SourceManager; OS << sHipLaunchKernelGGL; - if (caleeDecl->isTemplateInstantiation()) OS << "("; + if (caleeDecl->isTemplateInstantiation()) OS << sHIP_KERNEL_NAME << "("; OS << readSourceText(*SM, calleeExpr->getSourceRange()); if (caleeDecl->isTemplateInstantiation()) OS << ")"; OS << ", "; diff --git a/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu b/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu index d1c1fad401..1afd1ab541 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu +++ b/projects/hip/tests/hipify-clang/unit_tests/device/atomics.cu @@ -257,7 +257,7 @@ void runTest() { // CHECK: hipMemcpy(dOData, hOData, memSize, hipMemcpyHostToDevice); cudaMemcpy(dOData, hOData, memSize, cudaMemcpyHostToDevice); // Execute the kernel - // CHECK: hipLaunchKernelGGL((testKernel), dim3(numBlocks), dim3(numThreads), 0, 0, dOData); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(testKernel), dim3(numBlocks), dim3(numThreads), 0, 0, dOData); testKernel<<>>(dOData); // Copy result from device to host // CHECK: hipMemcpy(hOData, dOData, memSize, hipMemcpyDeviceToHost); diff --git a/projects/hip/tests/hipify-clang/unit_tests/libraries/cuRAND/benchmark_curand_kernel.cpp b/projects/hip/tests/hipify-clang/unit_tests/libraries/cuRAND/benchmark_curand_kernel.cpp index ece384f04b..bff9b77cad 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/libraries/cuRAND/benchmark_curand_kernel.cpp +++ b/projects/hip/tests/hipify-clang/unit_tests/libraries/cuRAND/benchmark_curand_kernel.cpp @@ -121,7 +121,7 @@ struct runner const size_t states_size = blocks * threads; // CHECK: CUDA_CALL(hipMalloc((void **)&states, states_size * sizeof(GeneratorState))); CUDA_CALL(cudaMalloc((void **)&states, states_size * sizeof(GeneratorState))); - // CHECK: hipLaunchKernelGGL((init_kernel), dim3(blocks), dim3(threads), 0, 0, states, seed, offset); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(init_kernel), dim3(blocks), dim3(threads), 0, 0, states, seed, offset); init_kernel<<>>(states, seed, offset); // CHECK: CUDA_CALL(hipPeekAtLastError()); // CHECK: CUDA_CALL(hipDeviceSynchronize()); @@ -142,7 +142,7 @@ struct runner const GenerateFunc& generate_func, const Extra extra) { - // CHECK: hipLaunchKernelGGL((generate_kernel), dim3(blocks), dim3(threads), 0, 0, states, data, size, generate_func, extra); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(generate_kernel), dim3(blocks), dim3(threads), 0, 0, states, data, size, generate_func, extra); generate_kernel<<>>(states, data, size, generate_func, extra); } }; @@ -223,7 +223,7 @@ struct runner const GenerateFunc& generate_func, const Extra extra) { - // CHECK: hipLaunchKernelGGL((generate_kernel), dim3(std::min((size_t)200, blocks)), dim3(256), 0, 0, states, data, size, generate_func, extra); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(generate_kernel), dim3(std::min((size_t)200, blocks)), dim3(256), 0, 0, states, data, size, generate_func, extra); generate_kernel<<>>(states, data, size, generate_func, extra); } }; @@ -304,7 +304,7 @@ struct runner CUDA_CALL(cudaMemcpy(directions, h_directions, size, cudaMemcpyHostToDevice)); const size_t blocks_x = next_power2((blocks + dimensions - 1) / dimensions); - // CHECK: hipLaunchKernelGGL((init_kernel), dim3(blocks_x, dimensions), dim3(threads), 0, 0, states, directions, offset); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(init_kernel), dim3(blocks_x, dimensions), dim3(threads), 0, 0, states, directions, offset); init_kernel<<>>(states, directions, offset); // CHECK: CUDA_CALL(hipPeekAtLastError()); // CHECK: CUDA_CALL(hipDeviceSynchronize()); @@ -329,7 +329,7 @@ struct runner const Extra extra) { const size_t blocks_x = next_power2((blocks + dimensions - 1) / dimensions); - // CHECK: hipLaunchKernelGGL((generate_kernel), dim3(blocks_x, dimensions), dim3(threads), 0, 0, states, data, size / dimensions, generate_func, extra); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(generate_kernel), dim3(blocks_x, dimensions), dim3(threads), 0, 0, states, data, size / dimensions, generate_func, extra); generate_kernel<<>>(states, data, size / dimensions, generate_func, extra); } }; diff --git a/projects/hip/tests/hipify-clang/unit_tests/samples/axpy.cu b/projects/hip/tests/hipify-clang/unit_tests/samples/axpy.cu index 549dc442aa..c09c372967 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/samples/axpy.cu +++ b/projects/hip/tests/hipify-clang/unit_tests/samples/axpy.cu @@ -10,7 +10,7 @@ #define KERNEL_CALL_AS_MACRO axpy<<<1, kDataLen>>> #define KERNEL_NAME_MACRO axpy -// CHECK: #define COMPLETE_LAUNCH hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y) +// CHECK: #define COMPLETE_LAUNCH hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y) #define COMPLETE_LAUNCH axpy<<<1, kDataLen>>>(a, device_x, device_y) @@ -48,22 +48,22 @@ int main(int argc, char* argv[]) { cudaMemcpy(device_x, host_x, kDataLen * sizeof(float), cudaMemcpyHostToDevice); // Launch the kernel in numerous different strange ways to exercise the prerocessor. - // CHECK: hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y); axpy<<<1, kDataLen>>>(a, device_x, device_y); - // CHECK: hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, a, device_x, device_y); axpy<<<1, kDataLen>>>(a, device_x, device_y); - // CHECK: hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, a, TOKEN_PASTE(device, _x), device_y); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, a, TOKEN_PASTE(device, _x), device_y); axpy<<<1, kDataLen>>>(a, TOKEN_PASTE(device, _x), device_y); - // CHECK: hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); axpy<<<1, kDataLen>>>(ARG_LIST_AS_MACRO); - // CHECK: hipLaunchKernelGGL((KERNEL_NAME_MACRO), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(KERNEL_NAME_MACRO), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); KERNEL_NAME_MACRO<<<1, kDataLen>>>(ARG_LIST_AS_MACRO); - // CHECK: hipLaunchKernelGGL((axpy), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(axpy), dim3(1), dim3(kDataLen), 0, 0, ARG_LIST_AS_MACRO); KERNEL_CALL_AS_MACRO(ARG_LIST_AS_MACRO); // CHECK: hipLaunchKernelGGL(empty, dim3(1), dim3(kDataLen), 0, 0); diff --git a/projects/hip/tests/hipify-clang/unit_tests/samples/square.cu b/projects/hip/tests/hipify-clang/unit_tests/samples/square.cu index 690d99f848..0c2ba94083 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/samples/square.cu +++ b/projects/hip/tests/hipify-clang/unit_tests/samples/square.cu @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) const unsigned threadsPerBlock = 256; printf ("info: launch 'vector_square' kernel\n"); - // CHECK: hipLaunchKernelGGL((vector_square), dim3(blocks), dim3(threadsPerBlock), 0, 0, C_d, A_d, N); + // CHECK: hipLaunchKernelGGL(HIP_KERNEL_NAME(vector_square), dim3(blocks), dim3(threadsPerBlock), 0, 0, C_d, A_d, N); vector_square <<>> (C_d, A_d, N); printf ("info: copy Device2Host\n");