diff --git a/hipamd/rocclr/CMakeLists.txt b/hipamd/rocclr/CMakeLists.txt index 4ce3c608a8..922a5ffe6a 100755 --- a/hipamd/rocclr/CMakeLists.txt +++ b/hipamd/rocclr/CMakeLists.txt @@ -118,8 +118,9 @@ endif() if(BUILD_SHARED_LIBS) if(WIN32) - target_sources(amdhip64 PRIVATE hip_hcc.def.in) + target_sources(amdhip64 PRIVATE amdhip.def) else() + target_link_libraries(amdhip64 PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/hip_hcc.map.in") set_target_properties(amdhip64 PROPERTIES LINK_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/hip_hcc.map.in") endif() endif() diff --git a/hipamd/rocclr/amdhip.def b/hipamd/rocclr/amdhip.def new file mode 100644 index 0000000000..559a08289d --- /dev/null +++ b/hipamd/rocclr/amdhip.def @@ -0,0 +1,293 @@ +EXPORTS +hipChooseDevice +hipCtxCreate +hipCtxDestroy +hipCtxDisablePeerAccess +hipCtxEnablePeerAccess +hipCtxGetApiVersion +hipCtxGetCacheConfig +hipCtxGetCurrent +hipCtxGetDevice +hipCtxGetFlags +hipCtxGetSharedMemConfig +hipCtxPopCurrent +hipCtxPushCurrent +hipCtxSetCacheConfig +hipCtxSetCurrent +hipCtxSetSharedMemConfig +hipCtxSynchronize +hipDeviceCanAccessPeer +hipDeviceComputeCapability +hipDeviceDisablePeerAccess +hipDeviceEnablePeerAccess +hipDeviceGet +hipDeviceGetAttribute +hipDeviceGetByPCIBusId +hipDeviceGetCacheConfig +hipDeviceGetStreamPriorityRange +hipDeviceGetLimit +hipDeviceGetName +hipDeviceGetPCIBusId +hipDeviceGetSharedMemConfig +hipDeviceGetP2PAttribute +hipDevicePrimaryCtxGetState +hipDevicePrimaryCtxRelease +hipDevicePrimaryCtxReset +hipDevicePrimaryCtxRetain +hipDevicePrimaryCtxSetFlags +hipDeviceReset +hipDeviceSetCacheConfig +hipDeviceSetSharedMemConfig +hipDeviceSynchronize +hipDeviceTotalMem +hipDriverGetVersion +hipEventCreate +hipEventCreateWithFlags +hipEventDestroy +hipEventElapsedTime +hipEventQuery +hipEventRecord +hipEventSynchronize +hipExtGetLinkTypeAndHopCount +hipExtLaunchMultiKernelMultiDevice +hipExtMallocWithFlags +hipExtModuleLaunchKernel +hipExtLaunchKernel +hipFree +hipFreeArray +hipFuncSetAttribute +hipFuncSetCacheConfig +hipFuncSetSharedMemConfig +hipGetDevice +hipGetDeviceCount +hipGetDeviceProperties +hipGetErrorName +hipGetErrorString +hipGetLastError +hipMemAllocHost +hipHostAlloc +hipHostFree +hipHostGetDevicePointer +hipHostGetFlags +hipHostMalloc +hipHostRegister +hipHostUnregister +hipInit +hipIpcCloseMemHandle +hipIpcGetMemHandle +hipIpcOpenMemHandle +hipIpcGetEventHandle +hipIpcOpenEventHandle +hipMalloc +hipMalloc3D +hipMalloc3DArray +hipMallocManaged +hipArrayCreate +hipArray3DCreate +hipArrayDestroy +hipMallocArray +hipMemAdvise +hipMemAllocPitch +hipMallocPitch +hipMemcpy +hipMemcpyWithStream +hipMemcpyParam2D +hipMemcpy2D +hipMemcpy2DAsync +hipMemcpy2DToArray +hipMemcpy2DToArrayAsync +hipMemcpy3D +hipMemcpy3DAsync +hipDrvMemcpy3D +hipDrvMemcpy3DAsync +hipMemcpyAsync +hipMemcpyDtoD +hipMemcpyDtoDAsync +hipMemcpyDtoH +hipMemcpyDtoHAsync +hipMemcpyFromSymbol +hipMemcpyFromSymbolAsync +hipMemcpyHtoD +hipMemcpyHtoDAsync +hipMemcpyPeer +hipMemcpyPeerAsync +hipMemcpyToArray +hipMemcpyFromArray +hipMemcpyToSymbol +hipMemcpyToSymbolAsync +hipMemGetAddressRange +hipGetSymbolAddress +hipGetSymbolSize +hipMemGetInfo +hipMemPrefetchAsync +hipMemPtrGetInfo +hipMemRangeGetAttribute +hipMemRangeGetAttributes +hipMemset +hipMemsetAsync +hipMemsetD8 +hipMemsetD8Async +hipMemsetD16 +hipMemsetD16Async +hipMemsetD32 +hipMemsetD32Async +hipMemset2D +hipMemset2DAsync +hipMemset3D +hipMemset3DAsync +hipModuleGetFunction +hipModuleGetGlobal +hipModuleGetTexRef +hipModuleLaunchKernel +hipModuleLaunchKernelExt +hipLaunchCooperativeKernel +hipLaunchCooperativeKernelMultiDevice +hipHccModuleLaunchKernel +hipModuleLoad +hipModuleLoadData +hipModuleLoadDataEx +hipModuleUnload +hipModuleOccupancyMaxPotentialBlockSize +hipModuleOccupancyMaxPotentialBlockSizeWithFlags +hipModuleOccupancyMaxActiveBlocksPerMultiprocessor +hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags +hipOccupancyMaxPotentialBlockSize +hipOccupancyMaxActiveBlocksPerMultiprocessor +hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags +hipFuncGetAttribute +hipFuncGetAttributes +hipPeekAtLastError +hipPointerGetAttributes +hipProfilerStart +hipProfilerStop +hipRuntimeGetVersion +hipGetDeviceFlags +hipSetDevice +hipSetDeviceFlags +hipStreamAddCallback +hipStreamAttachMemAsync +hipStreamCreate +hipStreamCreateWithFlags +hipStreamCreateWithPriority +hipStreamDestroy +hipStreamGetFlags +hipStreamQuery +hipStreamSynchronize +hipStreamWaitEvent +__hipPopCallConfiguration +__hipPushCallConfiguration +__hipRegisterFatBinary +__hipRegisterFunction +__hipRegisterVar +__hipRegisterSurface +__hipRegisterTexture +__hipRegisterManagedVar +__hipUnregisterFatBinary +hipConfigureCall +hipSetupArgument +hipLaunchByPtr +hipLaunchKernel +hipRegisterApiCallback +hipRemoveApiCallback +hipRegisterActivityCallback +hipRemoveActivityCallback +hipApiName +hipKernelNameRef +hipBindTexture +hipBindTexture2D +hipBindTextureToArray +hipBindTextureToMipmappedArray +hipGetTextureAlignmentOffset +hipGetTextureReference +hipUnbindTexture +hipCreateChannelDesc +hipCreateTextureObject +hipDestroyTextureObject +hipGetChannelDesc +hipGetTextureObjectResourceDesc +hipGetTextureObjectResourceViewDesc +hipGetTextureObjectTextureDesc +hipTexRefGetAddress +hipTexRefGetAddressMode +hipTexRefGetArray +hipTexRefGetBorderColor +hipTexRefGetFilterMode +hipTexRefGetFlags +hipTexRefGetFormat +hipTexRefGetMaxAnisotropy +hipTexRefGetMipmapFilterMode +hipTexRefGetMipmapLevelBias +hipTexRefGetMipmapLevelClamp +hipTexRefGetMipmappedArray +hipTexRefSetAddress +hipTexRefSetAddress2D +hipTexRefSetAddressMode +hipTexRefSetArray +hipTexRefSetBorderColor +hipTexRefSetFilterMode +hipTexRefSetFlags +hipTexRefSetFormat +hipTexRefSetMaxAnisotropy +hipTexRefSetMipmapFilterMode +hipTexRefSetMipmapLevelBias +hipTexRefSetMipmapLevelClamp +hipTexRefSetMipmappedArray +hipProfilerStart +hipProfilerStop +hipCreateSurfaceObject +hipDestroySurfaceObject +hipInitActivityCallback +hipEnableActivityCallback +hipGetCmdName +hiprtcAddNameExpression +hiprtcCompileProgram +hiprtcCreateProgram +hiprtcDestroyProgram +hiprtcGetLoweredName +hiprtcGetProgramLog +hiprtcGetProgramLogSize +hiprtcGetCode +hiprtcGetCodeSize +hiprtcGetErrorString +hipMipmappedArrayCreate +hipMallocMipmappedArray +hipMipmappedArrayDestroy +hipFreeMipmappedArray +hipMipmappedArrayGetLevel +hipGetMipmappedArrayLevel +hipMallocHost +hipFreeHost +hipTexObjectCreate +hipTexObjectDestroy +hipTexObjectGetResourceDesc +hipTexObjectGetResourceViewDesc +hipTexObjectGetTextureDesc +hipExtStreamCreateWithCUMask +hipStreamGetPriority +hipMemcpy2DFromArray +hipMemcpy2DFromArrayAsync +hipDrvMemcpy2DUnaligned +hipMemcpyAtoH +hipMemcpyHtoA +hipMemcpyParam2DAsync +__gnu_h2f_ieee +__gnu_f2h_ieee +hipExtStreamGetCUMask +hipImportExternalMemory +hipExternalMemoryGetMappedBuffer +hipDestroyExternalMemory +hipGraphCreate +hipGraphDestroy +hipGraphAddKernelNode +hipGraphAddMemsetNode +hipGraphAddMemcpyNode +hipGraphInstantiate +hipGraphLaunch +hipStreamIsCapturing +hipStreamBeginCapture +hipStreamEndCapture +hipGraphExecDestroy +hipImportExternalSemaphore +hipSignalExternalSemaphoresAsync +hipWaitExternalSemaphoresAsync +hipDestroyExternalSemaphore