Page MenuHomeSolus

D13172.id32649.diff
No OneTemporary

D13172.id32649.diff

Index: MAINTAINERS.md
===================================================================
--- /dev/null
+++ MAINTAINERS.md
@@ -0,0 +1,5 @@
+This file is used to indicate responsibility for the maintenance of this package. Individuals on this list should be the sole modifiers of the package, excluding cases where the Solus Team may need to perform necessary rebuilds, upgrades, or security fixes. This list should not be used for any direct contact usage. If you believe this package requires a package update, follow documentation from https://getsol.us/articles/packaging/request-a-package-update/en/. In the event this package no longer becomes sufficiently maintained, Core Team reserves the right to request a new maintainer or remove this package from the repository.
+
+- Jacek Jagosz
+ - IRC: JacekJagosz
+ - Email: jacek.jagosz@outlook.com
Index: Makefile
===================================================================
--- /dev/null
+++ Makefile
@@ -0,0 +1 @@
+include ../Makefile.common
Index: abi_libs
===================================================================
--- /dev/null
+++ abi_libs
@@ -0,0 +1,2 @@
+libamdhip64.so.5
+libhiprtc-builtins.so.5
Index: abi_symbols
===================================================================
--- /dev/null
+++ abi_symbols
@@ -0,0 +1,358 @@
+libamdhip64.so.5:_Z22hipCreateSurfaceObjectPP13__hip_surfacePK15hipResourceDesc
+libamdhip64.so.5:_Z23hipDestroySurfaceObjectP13__hip_surface
+libamdhip64.so.5:_Z24hipExtModuleLaunchKernelP18ihipModuleSymbol_tjjjjjjmP12ihipStream_tPPvS4_P11ihipEvent_tS6_j
+libamdhip64.so.5:_Z24hipHccModuleLaunchKernelP18ihipModuleSymbol_tjjjjjjmP12ihipStream_tPPvS4_P11ihipEvent_tS6_
+libamdhip64.so.5:_ZN8hip_impl22hipLaunchKernelGGLImplEmRK4dim3S2_jP12ihipStream_tPPv
+libamdhip64.so.5:__hipGetPCH
+libamdhip64.so.5:__hipPopCallConfiguration
+libamdhip64.so.5:__hipPushCallConfiguration
+libamdhip64.so.5:__hipRegisterFatBinary
+libamdhip64.so.5:__hipRegisterFunction
+libamdhip64.so.5:__hipRegisterManagedVar
+libamdhip64.so.5:__hipRegisterSurface
+libamdhip64.so.5:__hipRegisterTexture
+libamdhip64.so.5:__hipRegisterVar
+libamdhip64.so.5:__hipUnregisterFatBinary
+libamdhip64.so.5:amd_dbgapi_get_build_id
+libamdhip64.so.5:amd_dbgapi_get_build_name
+libamdhip64.so.5:amd_dbgapi_get_git_hash
+libamdhip64.so.5:hipApiName
+libamdhip64.so.5:hipArray3DCreate
+libamdhip64.so.5:hipArrayCreate
+libamdhip64.so.5:hipArrayDestroy
+libamdhip64.so.5:hipBindTexture
+libamdhip64.so.5:hipBindTexture2D
+libamdhip64.so.5:hipBindTextureToArray
+libamdhip64.so.5:hipBindTextureToMipmappedArray
+libamdhip64.so.5:hipChooseDevice
+libamdhip64.so.5:hipConfigureCall
+libamdhip64.so.5:hipCreateChannelDesc
+libamdhip64.so.5:hipCreateTextureObject
+libamdhip64.so.5:hipCtxCreate
+libamdhip64.so.5:hipCtxDestroy
+libamdhip64.so.5:hipCtxDisablePeerAccess
+libamdhip64.so.5:hipCtxEnablePeerAccess
+libamdhip64.so.5:hipCtxGetApiVersion
+libamdhip64.so.5:hipCtxGetCacheConfig
+libamdhip64.so.5:hipCtxGetCurrent
+libamdhip64.so.5:hipCtxGetDevice
+libamdhip64.so.5:hipCtxGetFlags
+libamdhip64.so.5:hipCtxGetSharedMemConfig
+libamdhip64.so.5:hipCtxPopCurrent
+libamdhip64.so.5:hipCtxPushCurrent
+libamdhip64.so.5:hipCtxSetCacheConfig
+libamdhip64.so.5:hipCtxSetCurrent
+libamdhip64.so.5:hipCtxSetSharedMemConfig
+libamdhip64.so.5:hipCtxSynchronize
+libamdhip64.so.5:hipDestroyExternalMemory
+libamdhip64.so.5:hipDestroyExternalSemaphore
+libamdhip64.so.5:hipDestroyTextureObject
+libamdhip64.so.5:hipDeviceCanAccessPeer
+libamdhip64.so.5:hipDeviceComputeCapability
+libamdhip64.so.5:hipDeviceDisablePeerAccess
+libamdhip64.so.5:hipDeviceEnablePeerAccess
+libamdhip64.so.5:hipDeviceGet
+libamdhip64.so.5:hipDeviceGetAttribute
+libamdhip64.so.5:hipDeviceGetByPCIBusId
+libamdhip64.so.5:hipDeviceGetCacheConfig
+libamdhip64.so.5:hipDeviceGetLimit
+libamdhip64.so.5:hipDeviceGetName
+libamdhip64.so.5:hipDeviceGetP2PAttribute
+libamdhip64.so.5:hipDeviceGetPCIBusId
+libamdhip64.so.5:hipDeviceGetSharedMemConfig
+libamdhip64.so.5:hipDeviceGetStreamPriorityRange
+libamdhip64.so.5:hipDevicePrimaryCtxGetState
+libamdhip64.so.5:hipDevicePrimaryCtxRelease
+libamdhip64.so.5:hipDevicePrimaryCtxReset
+libamdhip64.so.5:hipDevicePrimaryCtxRetain
+libamdhip64.so.5:hipDevicePrimaryCtxSetFlags
+libamdhip64.so.5:hipDeviceReset
+libamdhip64.so.5:hipDeviceSetCacheConfig
+libamdhip64.so.5:hipDeviceSetSharedMemConfig
+libamdhip64.so.5:hipDeviceSynchronize
+libamdhip64.so.5:hipDeviceTotalMem
+libamdhip64.so.5:hipDriverGetVersion
+libamdhip64.so.5:hipDrvMemcpy2DUnaligned
+libamdhip64.so.5:hipDrvMemcpy3D
+libamdhip64.so.5:hipDrvMemcpy3DAsync
+libamdhip64.so.5:hipDrvPointerGetAttributes
+libamdhip64.so.5:hipEnableActivityCallback
+libamdhip64.so.5:hipEventCreate
+libamdhip64.so.5:hipEventCreateWithFlags
+libamdhip64.so.5:hipEventDestroy
+libamdhip64.so.5:hipEventElapsedTime
+libamdhip64.so.5:hipEventQuery
+libamdhip64.so.5:hipEventRecord
+libamdhip64.so.5:hipEventSynchronize
+libamdhip64.so.5:hipExtGetLinkTypeAndHopCount
+libamdhip64.so.5:hipExtLaunchKernel
+libamdhip64.so.5:hipExtLaunchMultiKernelMultiDevice
+libamdhip64.so.5:hipExtMallocWithFlags
+libamdhip64.so.5:hipExtStreamCreateWithCUMask
+libamdhip64.so.5:hipExtStreamGetCUMask
+libamdhip64.so.5:hipExternalMemoryGetMappedBuffer
+libamdhip64.so.5:hipFree
+libamdhip64.so.5:hipFreeArray
+libamdhip64.so.5:hipFreeHost
+libamdhip64.so.5:hipFreeMipmappedArray
+libamdhip64.so.5:hipFuncGetAttribute
+libamdhip64.so.5:hipFuncGetAttributes
+libamdhip64.so.5:hipFuncSetAttribute
+libamdhip64.so.5:hipFuncSetCacheConfig
+libamdhip64.so.5:hipFuncSetSharedMemConfig
+libamdhip64.so.5:hipGLGetDevices
+libamdhip64.so.5:hipGetChannelDesc
+libamdhip64.so.5:hipGetCmdName
+libamdhip64.so.5:hipGetDevice
+libamdhip64.so.5:hipGetDeviceCount
+libamdhip64.so.5:hipGetDeviceFlags
+libamdhip64.so.5:hipGetDeviceProperties
+libamdhip64.so.5:hipGetErrorName
+libamdhip64.so.5:hipGetErrorString
+libamdhip64.so.5:hipGetLastError
+libamdhip64.so.5:hipGetMipmappedArrayLevel
+libamdhip64.so.5:hipGetStreamDeviceId
+libamdhip64.so.5:hipGetSymbolAddress
+libamdhip64.so.5:hipGetSymbolSize
+libamdhip64.so.5:hipGetTextureAlignmentOffset
+libamdhip64.so.5:hipGetTextureObjectResourceDesc
+libamdhip64.so.5:hipGetTextureObjectResourceViewDesc
+libamdhip64.so.5:hipGetTextureObjectTextureDesc
+libamdhip64.so.5:hipGetTextureReference
+libamdhip64.so.5:hipGraphAddChildGraphNode
+libamdhip64.so.5:hipGraphAddDependencies
+libamdhip64.so.5:hipGraphAddEmptyNode
+libamdhip64.so.5:hipGraphAddEventRecordNode
+libamdhip64.so.5:hipGraphAddEventWaitNode
+libamdhip64.so.5:hipGraphAddHostNode
+libamdhip64.so.5:hipGraphAddKernelNode
+libamdhip64.so.5:hipGraphAddMemcpyNode
+libamdhip64.so.5:hipGraphAddMemcpyNode1D
+libamdhip64.so.5:hipGraphAddMemcpyNodeFromSymbol
+libamdhip64.so.5:hipGraphAddMemcpyNodeToSymbol
+libamdhip64.so.5:hipGraphAddMemsetNode
+libamdhip64.so.5:hipGraphChildGraphNodeGetGraph
+libamdhip64.so.5:hipGraphClone
+libamdhip64.so.5:hipGraphCreate
+libamdhip64.so.5:hipGraphDestroy
+libamdhip64.so.5:hipGraphDestroyNode
+libamdhip64.so.5:hipGraphEventRecordNodeGetEvent
+libamdhip64.so.5:hipGraphEventRecordNodeSetEvent
+libamdhip64.so.5:hipGraphEventWaitNodeGetEvent
+libamdhip64.so.5:hipGraphEventWaitNodeSetEvent
+libamdhip64.so.5:hipGraphExecChildGraphNodeSetParams
+libamdhip64.so.5:hipGraphExecDestroy
+libamdhip64.so.5:hipGraphExecEventRecordNodeSetEvent
+libamdhip64.so.5:hipGraphExecEventWaitNodeSetEvent
+libamdhip64.so.5:hipGraphExecHostNodeSetParams
+libamdhip64.so.5:hipGraphExecKernelNodeSetParams
+libamdhip64.so.5:hipGraphExecMemcpyNodeSetParams
+libamdhip64.so.5:hipGraphExecMemcpyNodeSetParams1D
+libamdhip64.so.5:hipGraphExecMemcpyNodeSetParamsFromSymbol
+libamdhip64.so.5:hipGraphExecMemcpyNodeSetParamsToSymbol
+libamdhip64.so.5:hipGraphExecMemsetNodeSetParams
+libamdhip64.so.5:hipGraphExecUpdate
+libamdhip64.so.5:hipGraphGetEdges
+libamdhip64.so.5:hipGraphGetNodes
+libamdhip64.so.5:hipGraphGetRootNodes
+libamdhip64.so.5:hipGraphHostNodeGetParams
+libamdhip64.so.5:hipGraphHostNodeSetParams
+libamdhip64.so.5:hipGraphInstantiate
+libamdhip64.so.5:hipGraphInstantiateWithFlags
+libamdhip64.so.5:hipGraphKernelNodeGetParams
+libamdhip64.so.5:hipGraphKernelNodeSetParams
+libamdhip64.so.5:hipGraphLaunch
+libamdhip64.so.5:hipGraphMemcpyNodeGetParams
+libamdhip64.so.5:hipGraphMemcpyNodeSetParams
+libamdhip64.so.5:hipGraphMemcpyNodeSetParams1D
+libamdhip64.so.5:hipGraphMemcpyNodeSetParamsFromSymbol
+libamdhip64.so.5:hipGraphMemcpyNodeSetParamsToSymbol
+libamdhip64.so.5:hipGraphMemsetNodeGetParams
+libamdhip64.so.5:hipGraphMemsetNodeSetParams
+libamdhip64.so.5:hipGraphNodeFindInClone
+libamdhip64.so.5:hipGraphNodeGetDependencies
+libamdhip64.so.5:hipGraphNodeGetDependentNodes
+libamdhip64.so.5:hipGraphNodeGetType
+libamdhip64.so.5:hipGraphRemoveDependencies
+libamdhip64.so.5:hipGraphicsGLRegisterBuffer
+libamdhip64.so.5:hipGraphicsGLRegisterImage
+libamdhip64.so.5:hipGraphicsMapResources
+libamdhip64.so.5:hipGraphicsResourceGetMappedPointer
+libamdhip64.so.5:hipGraphicsSubResourceGetMappedArray
+libamdhip64.so.5:hipGraphicsUnmapResources
+libamdhip64.so.5:hipGraphicsUnregisterResource
+libamdhip64.so.5:hipHostAlloc
+libamdhip64.so.5:hipHostFree
+libamdhip64.so.5:hipHostGetDevicePointer
+libamdhip64.so.5:hipHostGetFlags
+libamdhip64.so.5:hipHostMalloc
+libamdhip64.so.5:hipHostRegister
+libamdhip64.so.5:hipHostUnregister
+libamdhip64.so.5:hipImportExternalMemory
+libamdhip64.so.5:hipImportExternalSemaphore
+libamdhip64.so.5:hipInit
+libamdhip64.so.5:hipInitActivityCallback
+libamdhip64.so.5:hipIpcCloseMemHandle
+libamdhip64.so.5:hipIpcGetEventHandle
+libamdhip64.so.5:hipIpcGetMemHandle
+libamdhip64.so.5:hipIpcOpenEventHandle
+libamdhip64.so.5:hipIpcOpenMemHandle
+libamdhip64.so.5:hipKernelNameRef
+libamdhip64.so.5:hipKernelNameRefByPtr
+libamdhip64.so.5:hipLaunchByPtr
+libamdhip64.so.5:hipLaunchCooperativeKernel
+libamdhip64.so.5:hipLaunchCooperativeKernelMultiDevice
+libamdhip64.so.5:hipLaunchKernel
+libamdhip64.so.5:hipMalloc
+libamdhip64.so.5:hipMalloc3D
+libamdhip64.so.5:hipMalloc3DArray
+libamdhip64.so.5:hipMallocArray
+libamdhip64.so.5:hipMallocHost
+libamdhip64.so.5:hipMallocManaged
+libamdhip64.so.5:hipMallocMipmappedArray
+libamdhip64.so.5:hipMallocPitch
+libamdhip64.so.5:hipMemAdvise
+libamdhip64.so.5:hipMemAllocHost
+libamdhip64.so.5:hipMemAllocPitch
+libamdhip64.so.5:hipMemGetAddressRange
+libamdhip64.so.5:hipMemGetInfo
+libamdhip64.so.5:hipMemPrefetchAsync
+libamdhip64.so.5:hipMemPtrGetInfo
+libamdhip64.so.5:hipMemRangeGetAttribute
+libamdhip64.so.5:hipMemRangeGetAttributes
+libamdhip64.so.5:hipMemcpy
+libamdhip64.so.5:hipMemcpy2D
+libamdhip64.so.5:hipMemcpy2DAsync
+libamdhip64.so.5:hipMemcpy2DFromArray
+libamdhip64.so.5:hipMemcpy2DFromArrayAsync
+libamdhip64.so.5:hipMemcpy2DToArray
+libamdhip64.so.5:hipMemcpy2DToArrayAsync
+libamdhip64.so.5:hipMemcpy3D
+libamdhip64.so.5:hipMemcpy3DAsync
+libamdhip64.so.5:hipMemcpyAsync
+libamdhip64.so.5:hipMemcpyAtoH
+libamdhip64.so.5:hipMemcpyDtoD
+libamdhip64.so.5:hipMemcpyDtoDAsync
+libamdhip64.so.5:hipMemcpyDtoH
+libamdhip64.so.5:hipMemcpyDtoHAsync
+libamdhip64.so.5:hipMemcpyFromArray
+libamdhip64.so.5:hipMemcpyFromSymbol
+libamdhip64.so.5:hipMemcpyFromSymbolAsync
+libamdhip64.so.5:hipMemcpyHtoA
+libamdhip64.so.5:hipMemcpyHtoD
+libamdhip64.so.5:hipMemcpyHtoDAsync
+libamdhip64.so.5:hipMemcpyParam2D
+libamdhip64.so.5:hipMemcpyParam2DAsync
+libamdhip64.so.5:hipMemcpyPeer
+libamdhip64.so.5:hipMemcpyPeerAsync
+libamdhip64.so.5:hipMemcpyToArray
+libamdhip64.so.5:hipMemcpyToSymbol
+libamdhip64.so.5:hipMemcpyToSymbolAsync
+libamdhip64.so.5:hipMemcpyWithStream
+libamdhip64.so.5:hipMemset
+libamdhip64.so.5:hipMemset2D
+libamdhip64.so.5:hipMemset2DAsync
+libamdhip64.so.5:hipMemset3D
+libamdhip64.so.5:hipMemset3DAsync
+libamdhip64.so.5:hipMemsetAsync
+libamdhip64.so.5:hipMemsetD16
+libamdhip64.so.5:hipMemsetD16Async
+libamdhip64.so.5:hipMemsetD32
+libamdhip64.so.5:hipMemsetD32Async
+libamdhip64.so.5:hipMemsetD8
+libamdhip64.so.5:hipMemsetD8Async
+libamdhip64.so.5:hipMipmappedArrayCreate
+libamdhip64.so.5:hipMipmappedArrayDestroy
+libamdhip64.so.5:hipMipmappedArrayGetLevel
+libamdhip64.so.5:hipModuleGetFunction
+libamdhip64.so.5:hipModuleGetGlobal
+libamdhip64.so.5:hipModuleGetTexRef
+libamdhip64.so.5:hipModuleLaunchKernel
+libamdhip64.so.5:hipModuleLoad
+libamdhip64.so.5:hipModuleLoadData
+libamdhip64.so.5:hipModuleLoadDataEx
+libamdhip64.so.5:hipModuleOccupancyMaxActiveBlocksPerMultiprocessor
+libamdhip64.so.5:hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
+libamdhip64.so.5:hipModuleOccupancyMaxPotentialBlockSize
+libamdhip64.so.5:hipModuleOccupancyMaxPotentialBlockSizeWithFlags
+libamdhip64.so.5:hipModuleUnload
+libamdhip64.so.5:hipOccupancyMaxActiveBlocksPerMultiprocessor
+libamdhip64.so.5:hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
+libamdhip64.so.5:hipOccupancyMaxPotentialBlockSize
+libamdhip64.so.5:hipPeekAtLastError
+libamdhip64.so.5:hipPointerGetAttribute
+libamdhip64.so.5:hipPointerGetAttributes
+libamdhip64.so.5:hipProfilerStart
+libamdhip64.so.5:hipProfilerStop
+libamdhip64.so.5:hipRegisterActivityCallback
+libamdhip64.so.5:hipRegisterApiCallback
+libamdhip64.so.5:hipRemoveActivityCallback
+libamdhip64.so.5:hipRemoveApiCallback
+libamdhip64.so.5:hipRuntimeGetVersion
+libamdhip64.so.5:hipSetDevice
+libamdhip64.so.5:hipSetDeviceFlags
+libamdhip64.so.5:hipSetupArgument
+libamdhip64.so.5:hipSignalExternalSemaphoresAsync
+libamdhip64.so.5:hipStreamAddCallback
+libamdhip64.so.5:hipStreamAttachMemAsync
+libamdhip64.so.5:hipStreamBeginCapture
+libamdhip64.so.5:hipStreamCreate
+libamdhip64.so.5:hipStreamCreateWithFlags
+libamdhip64.so.5:hipStreamCreateWithPriority
+libamdhip64.so.5:hipStreamDestroy
+libamdhip64.so.5:hipStreamEndCapture
+libamdhip64.so.5:hipStreamGetCaptureInfo
+libamdhip64.so.5:hipStreamGetCaptureInfo_v2
+libamdhip64.so.5:hipStreamGetFlags
+libamdhip64.so.5:hipStreamGetPriority
+libamdhip64.so.5:hipStreamIsCapturing
+libamdhip64.so.5:hipStreamQuery
+libamdhip64.so.5:hipStreamSynchronize
+libamdhip64.so.5:hipStreamUpdateCaptureDependencies
+libamdhip64.so.5:hipStreamWaitEvent
+libamdhip64.so.5:hipStreamWaitValue32
+libamdhip64.so.5:hipStreamWaitValue64
+libamdhip64.so.5:hipStreamWriteValue32
+libamdhip64.so.5:hipStreamWriteValue64
+libamdhip64.so.5:hipTexObjectCreate
+libamdhip64.so.5:hipTexObjectDestroy
+libamdhip64.so.5:hipTexObjectGetResourceDesc
+libamdhip64.so.5:hipTexObjectGetResourceViewDesc
+libamdhip64.so.5:hipTexObjectGetTextureDesc
+libamdhip64.so.5:hipTexRefGetAddress
+libamdhip64.so.5:hipTexRefGetAddressMode
+libamdhip64.so.5:hipTexRefGetFilterMode
+libamdhip64.so.5:hipTexRefGetFlags
+libamdhip64.so.5:hipTexRefGetFormat
+libamdhip64.so.5:hipTexRefGetMaxAnisotropy
+libamdhip64.so.5:hipTexRefGetMipmapFilterMode
+libamdhip64.so.5:hipTexRefGetMipmapLevelBias
+libamdhip64.so.5:hipTexRefGetMipmapLevelClamp
+libamdhip64.so.5:hipTexRefSetAddress
+libamdhip64.so.5:hipTexRefSetAddress2D
+libamdhip64.so.5:hipTexRefSetAddressMode
+libamdhip64.so.5:hipTexRefSetArray
+libamdhip64.so.5:hipTexRefSetBorderColor
+libamdhip64.so.5:hipTexRefSetFilterMode
+libamdhip64.so.5:hipTexRefSetFlags
+libamdhip64.so.5:hipTexRefSetFormat
+libamdhip64.so.5:hipTexRefSetMaxAnisotropy
+libamdhip64.so.5:hipTexRefSetMipmapFilterMode
+libamdhip64.so.5:hipTexRefSetMipmapLevelBias
+libamdhip64.so.5:hipTexRefSetMipmapLevelClamp
+libamdhip64.so.5:hipTexRefSetMipmappedArray
+libamdhip64.so.5:hipUnbindTexture
+libamdhip64.so.5:hipWaitExternalSemaphoresAsync
+libamdhip64.so.5:hiprtcAddNameExpression
+libamdhip64.so.5:hiprtcCompileProgram
+libamdhip64.so.5:hiprtcCreateProgram
+libamdhip64.so.5:hiprtcDestroyProgram
+libamdhip64.so.5:hiprtcGetCode
+libamdhip64.so.5:hiprtcGetCodeSize
+libamdhip64.so.5:hiprtcGetErrorString
+libamdhip64.so.5:hiprtcGetLoweredName
+libamdhip64.so.5:hiprtcGetProgramLog
+libamdhip64.so.5:hiprtcGetProgramLogSize
+libamdhip64.so.5:hiprtcVersion
+libhiprtc-builtins.so.5:__hipRTC_header
+libhiprtc-builtins.so.5:__hipRTC_header_size
Index: abi_used_libs
===================================================================
--- /dev/null
+++ abi_used_libs
@@ -0,0 +1,6 @@
+ld-linux-x86-64.so.2
+libc.so.6
+libgcc_s.so.1
+libhsa-runtime64.so.1
+libm.so.6
+libstdc++.so.6
Index: abi_used_symbols
===================================================================
--- /dev/null
+++ abi_used_symbols
@@ -0,0 +1,346 @@
+ld-linux-x86-64.so.2:__tls_get_addr
+libc.so.6:__cxa_atexit
+libc.so.6:__errno_location
+libc.so.6:__isoc99_sscanf
+libc.so.6:__libc_single_threaded
+libc.so.6:__memcpy_chk
+libc.so.6:__stack_chk_fail
+libc.so.6:__vfprintf_chk
+libc.so.6:__vsnprintf_chk
+libc.so.6:__wmemcpy_chk
+libc.so.6:_exit
+libc.so.6:abort
+libc.so.6:basename
+libc.so.6:calloc
+libc.so.6:clock_getres
+libc.so.6:clock_gettime
+libc.so.6:close
+libc.so.6:dlclose
+libc.so.6:dlopen
+libc.so.6:dlsym
+libc.so.6:dup2
+libc.so.6:environ
+libc.so.6:execvp
+libc.so.6:fclose
+libc.so.6:fflush
+libc.so.6:fopen
+libc.so.6:fprintf
+libc.so.6:free
+libc.so.6:fstat
+libc.so.6:ftruncate
+libc.so.6:getenv
+libc.so.6:getpid
+libc.so.6:gettimeofday
+libc.so.6:isspace
+libc.so.6:malloc
+libc.so.6:mbstowcs
+libc.so.6:memcmp
+libc.so.6:memcpy
+libc.so.6:memmove
+libc.so.6:memset
+libc.so.6:mkdir
+libc.so.6:mkstemp
+libc.so.6:mmap
+libc.so.6:mprotect
+libc.so.6:munmap
+libc.so.6:nanosleep
+libc.so.6:open
+libc.so.6:pathconf
+libc.so.6:posix_memalign
+libc.so.6:prctl
+libc.so.6:pthread_attr_destroy
+libc.so.6:pthread_attr_getguardsize
+libc.so.6:pthread_attr_getstack
+libc.so.6:pthread_attr_init
+libc.so.6:pthread_attr_setaffinity_np
+libc.so.6:pthread_attr_setdetachstate
+libc.so.6:pthread_attr_setstacksize
+libc.so.6:pthread_create
+libc.so.6:pthread_getaffinity_np
+libc.so.6:pthread_getattr_np
+libc.so.6:pthread_join
+libc.so.6:pthread_kill
+libc.so.6:pthread_mutex_lock
+libc.so.6:pthread_mutex_unlock
+libc.so.6:pthread_once
+libc.so.6:pthread_self
+libc.so.6:pthread_setaffinity_np
+libc.so.6:pthread_sigmask
+libc.so.6:puts
+libc.so.6:readlink
+libc.so.6:remove
+libc.so.6:rmdir
+libc.so.6:sched_yield
+libc.so.6:sem_destroy
+libc.so.6:sem_init
+libc.so.6:sem_post
+libc.so.6:sem_timedwait
+libc.so.6:sem_wait
+libc.so.6:shm_open
+libc.so.6:sigaction
+libc.so.6:sigaddset
+libc.so.6:sigemptyset
+libc.so.6:sigfillset
+libc.so.6:snprintf
+libc.so.6:sprintf
+libc.so.6:stat
+libc.so.6:stderr
+libc.so.6:stdout
+libc.so.6:strchr
+libc.so.6:strcmp
+libc.so.6:strcpy
+libc.so.6:strdup
+libc.so.6:strlen
+libc.so.6:strncmp
+libc.so.6:strncpy
+libc.so.6:strndup
+libc.so.6:strstr
+libc.so.6:strtol
+libc.so.6:strtoul
+libc.so.6:sysconf
+libc.so.6:sysinfo
+libc.so.6:unlink
+libc.so.6:vfork
+libc.so.6:waitpid
+libc.so.6:wcslen
+libgcc_s.so.1:_Unwind_Resume
+libhsa-runtime64.so.1:hsa_agent_extension_supported
+libhsa-runtime64.so.1:hsa_agent_get_info
+libhsa-runtime64.so.1:hsa_agent_iterate_isas
+libhsa-runtime64.so.1:hsa_amd_agent_iterate_memory_pools
+libhsa-runtime64.so.1:hsa_amd_agent_memory_pool_get_info
+libhsa-runtime64.so.1:hsa_amd_agents_allow_access
+libhsa-runtime64.so.1:hsa_amd_coherency_set_type
+libhsa-runtime64.so.1:hsa_amd_image_create
+libhsa-runtime64.so.1:hsa_amd_interop_map_buffer
+libhsa-runtime64.so.1:hsa_amd_interop_unmap_buffer
+libhsa-runtime64.so.1:hsa_amd_ipc_memory_attach
+libhsa-runtime64.so.1:hsa_amd_ipc_memory_create
+libhsa-runtime64.so.1:hsa_amd_ipc_memory_detach
+libhsa-runtime64.so.1:hsa_amd_memory_async_copy
+libhsa-runtime64.so.1:hsa_amd_memory_async_copy_rect
+libhsa-runtime64.so.1:hsa_amd_memory_lock_to_pool
+libhsa-runtime64.so.1:hsa_amd_memory_pool_allocate
+libhsa-runtime64.so.1:hsa_amd_memory_pool_free
+libhsa-runtime64.so.1:hsa_amd_memory_pool_get_info
+libhsa-runtime64.so.1:hsa_amd_memory_unlock
+libhsa-runtime64.so.1:hsa_amd_pointer_info
+libhsa-runtime64.so.1:hsa_amd_profiling_async_copy_enable
+libhsa-runtime64.so.1:hsa_amd_profiling_get_async_copy_time
+libhsa-runtime64.so.1:hsa_amd_profiling_get_dispatch_time
+libhsa-runtime64.so.1:hsa_amd_profiling_set_profiler_enabled
+libhsa-runtime64.so.1:hsa_amd_queue_cu_set_mask
+libhsa-runtime64.so.1:hsa_amd_queue_set_priority
+libhsa-runtime64.so.1:hsa_amd_signal_async_handler
+libhsa-runtime64.so.1:hsa_amd_signal_create
+libhsa-runtime64.so.1:hsa_amd_signal_value_pointer
+libhsa-runtime64.so.1:hsa_amd_svm_attributes_get
+libhsa-runtime64.so.1:hsa_amd_svm_attributes_set
+libhsa-runtime64.so.1:hsa_amd_svm_prefetch_async
+libhsa-runtime64.so.1:hsa_code_object_reader_create_from_memory
+libhsa-runtime64.so.1:hsa_code_object_reader_destroy
+libhsa-runtime64.so.1:hsa_executable_agent_global_variable_define
+libhsa-runtime64.so.1:hsa_executable_create_alt
+libhsa-runtime64.so.1:hsa_executable_destroy
+libhsa-runtime64.so.1:hsa_executable_freeze
+libhsa-runtime64.so.1:hsa_executable_get_symbol_by_name
+libhsa-runtime64.so.1:hsa_executable_load_agent_code_object
+libhsa-runtime64.so.1:hsa_executable_symbol_get_info
+libhsa-runtime64.so.1:hsa_ext_image_create
+libhsa-runtime64.so.1:hsa_ext_image_create_with_layout
+libhsa-runtime64.so.1:hsa_ext_image_data_get_info
+libhsa-runtime64.so.1:hsa_ext_image_destroy
+libhsa-runtime64.so.1:hsa_ext_image_export
+libhsa-runtime64.so.1:hsa_ext_image_import
+libhsa-runtime64.so.1:hsa_ext_sampler_create
+libhsa-runtime64.so.1:hsa_ext_sampler_destroy
+libhsa-runtime64.so.1:hsa_init
+libhsa-runtime64.so.1:hsa_isa_get_info_alt
+libhsa-runtime64.so.1:hsa_iterate_agents
+libhsa-runtime64.so.1:hsa_memory_copy
+libhsa-runtime64.so.1:hsa_memory_deregister
+libhsa-runtime64.so.1:hsa_memory_register
+libhsa-runtime64.so.1:hsa_queue_add_write_index_screlease
+libhsa-runtime64.so.1:hsa_queue_create
+libhsa-runtime64.so.1:hsa_queue_destroy
+libhsa-runtime64.so.1:hsa_queue_load_read_index_relaxed
+libhsa-runtime64.so.1:hsa_queue_load_read_index_scacquire
+libhsa-runtime64.so.1:hsa_queue_load_write_index_relaxed
+libhsa-runtime64.so.1:hsa_shut_down
+libhsa-runtime64.so.1:hsa_signal_add_relaxed
+libhsa-runtime64.so.1:hsa_signal_create
+libhsa-runtime64.so.1:hsa_signal_destroy
+libhsa-runtime64.so.1:hsa_signal_load_relaxed
+libhsa-runtime64.so.1:hsa_signal_silent_store_relaxed
+libhsa-runtime64.so.1:hsa_signal_store_relaxed
+libhsa-runtime64.so.1:hsa_signal_store_screlease
+libhsa-runtime64.so.1:hsa_signal_subtract_relaxed
+libhsa-runtime64.so.1:hsa_signal_wait_scacquire
+libhsa-runtime64.so.1:hsa_status_string
+libhsa-runtime64.so.1:hsa_system_extension_supported
+libhsa-runtime64.so.1:hsa_system_get_info
+libhsa-runtime64.so.1:hsa_system_get_major_extension_table
+libm.so.6:pow
+libstdc++.so.6:_ZNKSt12__basic_fileIcE7is_openEv
+libstdc++.so.6:_ZNKSt5ctypeIcE13_M_widen_initEv
+libstdc++.so.6:_ZNKSt6locale2id5_M_idEv
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEcm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4copyEPcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc
+libstdc++.so.6:_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_
+libstdc++.so.6:_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv
+libstdc++.so.6:_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv
+libstdc++.so.6:_ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm
+libstdc++.so.6:_ZNSi10_M_extractIlEERSiRT_
+libstdc++.so.6:_ZNSi10_M_extractImEERSiRT_
+libstdc++.so.6:_ZNSi4peekEv
+libstdc++.so.6:_ZNSi4readEPcl
+libstdc++.so.6:_ZNSi5seekgESt4fposI11__mbstate_tE
+libstdc++.so.6:_ZNSi5seekgElSt12_Ios_Seekdir
+libstdc++.so.6:_ZNSi5tellgEv
+libstdc++.so.6:_ZNSo3putEc
+libstdc++.so.6:_ZNSo5flushEv
+libstdc++.so.6:_ZNSo5seekpESt4fposI11__mbstate_tE
+libstdc++.so.6:_ZNSo5writeEPKcl
+libstdc++.so.6:_ZNSo9_M_insertIPKvEERSoT_
+libstdc++.so.6:_ZNSo9_M_insertIbEERSoT_
+libstdc++.so.6:_ZNSo9_M_insertIdEERSoT_
+libstdc++.so.6:_ZNSo9_M_insertImEERSoT_
+libstdc++.so.6:_ZNSo9_M_insertIyEERSoT_
+libstdc++.so.6:_ZNSolsEi
+libstdc++.so.6:_ZNSolsEj
+libstdc++.so.6:_ZNSt11regex_errorD1Ev
+libstdc++.so.6:_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
+libstdc++.so.6:_ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv
+libstdc++.so.6:_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
+libstdc++.so.6:_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev
+libstdc++.so.6:_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev
+libstdc++.so.6:_ZNSt13random_device7_M_finiEv
+libstdc++.so.6:_ZNSt13random_device7_M_initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
+libstdc++.so.6:_ZNSt13random_device9_M_getvalEv
+libstdc++.so.6:_ZNSt13runtime_errorC2EPKc
+libstdc++.so.6:_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
+libstdc++.so.6:_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
+libstdc++.so.6:_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
+libstdc++.so.6:_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
+libstdc++.so.6:_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
+libstdc++.so.6:_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
+libstdc++.so.6:_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
+libstdc++.so.6:_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
+libstdc++.so.6:_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
+libstdc++.so.6:_ZNSt5ctypeIcE2idE
+libstdc++.so.6:_ZNSt6localeC1ERKS_
+libstdc++.so.6:_ZNSt6localeC1Ev
+libstdc++.so.6:_ZNSt6localeD1Ev
+libstdc++.so.6:_ZNSt6localeaSERKS_
+libstdc++.so.6:_ZNSt6thread20hardware_concurrencyEv
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_replaceEmmPKwm
+libstdc++.so.6:_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_createERmm
+libstdc++.so.6:_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
+libstdc++.so.6:_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
+libstdc++.so.6:_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev
+libstdc++.so.6:_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
+libstdc++.so.6:_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev
+libstdc++.so.6:_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
+libstdc++.so.6:_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
+libstdc++.so.6:_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev
+libstdc++.so.6:_ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_
+libstdc++.so.6:_ZNSt8__detail15_List_node_base7_M_hookEPS0_
+libstdc++.so.6:_ZNSt8__detail15_List_node_base9_M_unhookEv
+libstdc++.so.6:_ZNSt8ios_base4InitC1Ev
+libstdc++.so.6:_ZNSt8ios_base4InitD1Ev
+libstdc++.so.6:_ZNSt8ios_baseD2Ev
+libstdc++.so.6:_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
+libstdc++.so.6:_ZSt11_Hash_bytesPKvmm
+libstdc++.so.6:_ZSt11__once_call
+libstdc++.so.6:_ZSt15__once_callable
+libstdc++.so.6:_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
+libstdc++.so.6:_ZSt16__throw_bad_castv
+libstdc++.so.6:_ZSt17__throw_bad_allocv
+libstdc++.so.6:_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
+libstdc++.so.6:_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base
+libstdc++.so.6:_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
+libstdc++.so.6:_ZSt19__throw_logic_errorPKc
+libstdc++.so.6:_ZSt19__throw_regex_errorNSt15regex_constants10error_typeE
+libstdc++.so.6:_ZSt20__throw_length_errorPKc
+libstdc++.so.6:_ZSt20__throw_out_of_rangePKc
+libstdc++.so.6:_ZSt20__throw_system_errori
+libstdc++.so.6:_ZSt24__throw_invalid_argumentPKc
+libstdc++.so.6:_ZSt24__throw_out_of_range_fmtPKcz
+libstdc++.so.6:_ZSt25__throw_bad_function_callv
+libstdc++.so.6:_ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_
+libstdc++.so.6:_ZSt28__throw_bad_array_new_lengthv
+libstdc++.so.6:_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
+libstdc++.so.6:_ZSt2wsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_
+libstdc++.so.6:_ZSt4cerr
+libstdc++.so.6:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
+libstdc++.so.6:_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
+libstdc++.so.6:_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
+libstdc++.so.6:_ZSt7nothrow
+libstdc++.so.6:_ZSt9terminatev
+libstdc++.so.6:_ZSt9use_facetINSt7__cxx117collateIcEEERKT_RKSt6locale
+libstdc++.so.6:_ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale
+libstdc++.so.6:_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
+libstdc++.so.6:_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
+libstdc++.so.6:_ZTINSt6locale5facetE
+libstdc++.so.6:_ZTISt11regex_error
+libstdc++.so.6:_ZTISt16invalid_argument
+libstdc++.so.6:_ZTISt5ctypeIcE
+libstdc++.so.6:_ZTISt9bad_alloc
+libstdc++.so.6:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
+libstdc++.so.6:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE
+libstdc++.so.6:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE
+libstdc++.so.6:_ZTTSt13basic_fstreamIcSt11char_traitsIcEE
+libstdc++.so.6:_ZTTSt14basic_ifstreamIcSt11char_traitsIcEE
+libstdc++.so.6:_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE
+libstdc++.so.6:_ZTVN10__cxxabiv117__class_type_infoE
+libstdc++.so.6:_ZTVN10__cxxabiv120__si_class_type_infoE
+libstdc++.so.6:_ZTVN10__cxxabiv121__vmi_class_type_infoE
+libstdc++.so.6:_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE
+libstdc++.so.6:_ZTVSt11regex_error
+libstdc++.so.6:_ZTVSt15basic_streambufIcSt11char_traitsIcEE
+libstdc++.so.6:_ZdaPv
+libstdc++.so.6:_ZdlPv
+libstdc++.so.6:_Znam
+libstdc++.so.6:_ZnamRKSt9nothrow_t
+libstdc++.so.6:_Znwm
+libstdc++.so.6:__cxa_allocate_exception
+libstdc++.so.6:__cxa_bad_cast
+libstdc++.so.6:__cxa_begin_catch
+libstdc++.so.6:__cxa_end_catch
+libstdc++.so.6:__cxa_free_exception
+libstdc++.so.6:__cxa_guard_abort
+libstdc++.so.6:__cxa_guard_acquire
+libstdc++.so.6:__cxa_guard_release
+libstdc++.so.6:__cxa_pure_virtual
+libstdc++.so.6:__cxa_rethrow
+libstdc++.so.6:__cxa_thread_atexit
+libstdc++.so.6:__cxa_throw
+libstdc++.so.6:__dynamic_cast
+libstdc++.so.6:__gxx_personality_v0
+libstdc++.so.6:__once_proxy
Index: files/0001-Revert-hip-Fix-and-install-cmake-targets-for-hip-pac.patch
===================================================================
--- /dev/null
+++ files/0001-Revert-hip-Fix-and-install-cmake-targets-for-hip-pac.patch
@@ -0,0 +1,50 @@
+From 79ccef826de969c9639d4f12d0145356d32d418d Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <alexjnewt@hotmail.com>
+Date: Mon, 4 Apr 2022 10:39:16 -0400
+Subject: [PATCH 1/2] Revert "hip:Fix and install cmake targets for hip
+ package"
+
+This reverts commit 5532a4a8155c5413ed6162cc7db7c61709c1ca46.
+---
+ packaging/CMakeLists.txt | 21 ++++++++++++++++-----
+ 1 file changed, 16 insertions(+), 5 deletions(-)
+
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+index 58ba3341..ca368f9d 100644
+--- a/packaging/CMakeLists.txt
++++ b/packaging/CMakeLists.txt
+@@ -53,15 +53,26 @@ if(HIP_PLATFORM STREQUAL "amd" )
+ install(FILES ${CMAKE_BINARY_DIR}/lib/libamdhip64.a DESTINATION lib COMPONENT binary)
+ endif()#End BUILD_SHARED_LIBS
+
+-#TODO:This do not belong in BINARY package.
++#TODO:This do not belog in BINARY package.
+ #Keeping it as is for now
+ install(FILES ${CMAKE_BINARY_DIR}/.hipInfo DESTINATION lib COMPONENT binary)
+ install(FILES ${CMAKE_BINARY_DIR}/hip-config.cmake ${CMAKE_BINARY_DIR}/hip-config-version.cmake DESTINATION lib/cmake/hip COMPONENT binary)
+-install ( EXPORT hip-targets FILE hip-targets.cmake NAMESPACE hip:: DESTINATION lib/cmake/hip COMPONENT binary)
+-
+ install(FILES ${CMAKE_BINARY_DIR}/src/hip-lang-config.cmake ${CMAKE_BINARY_DIR}/src/hip-lang-config-version.cmake DESTINATION lib/cmake/hip-lang COMPONENT binary)
+-
+-install ( EXPORT hip-lang-targets FILE hip-lang-targets.cmake NAMESPACE hip-lang:: DESTINATION lib/cmake/hip-lang COMPONENT binary)
++## cmake generated target files contains IMPORTED_LOCATION_RELEASE etc. which
++## is installation path when building the project, which may be different from
++## the intallation path for packaging. These paths have to be replaced by
++## the package installation path, otherwise apps using pkg-config will fail.
++file(GLOB _target_files ${CONFIG_PACKAGE_INSTALL_DIR}/hip-targets*.cmake)
++foreach(_target_file ${_target_files})
++ execute_process(COMMAND sed -i s:${CMAKE_INSTALL_PREFIX}:${CPACK_INSTALL_PREFIX}:g ${_target_file})
++endforeach()
++install(FILES ${_target_files} DESTINATION lib/cmake/hip COMPONENT BINARY)
++
++file(GLOB _target_files ${CONFIG_LANG_PACKAGE_INSTALL_DIR}/hip-lang-targets*.cmake)
++foreach(_target_file ${_target_files})
++ execute_process(COMMAND sed -i s:{CMAKE_INSTALL_PREFIX}:${CPACK_INSTALL_PREFIX}:g ${_target_file})
++endforeach()
++install(FILES ${_target_files} DESTINATION lib/cmake/hip-lang COMPONENT BINARY)
+
+ endif()#End HIP_PLATFORM = "amd"
+ #End bianry files install
+--
+2.34.1
+
Index: files/0001-SWDEV-321118-Use-GNUInstallDirs.patch
===================================================================
--- /dev/null
+++ files/0001-SWDEV-321118-Use-GNUInstallDirs.patch
@@ -0,0 +1,126 @@
+From f86726945b821939a2d4620094f4f5f0a866a564 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <Jeremy.Newton@amd.com>
+Date: Mon, 31 Jan 2022 17:54:14 -0500
+Subject: [PATCH 1/3] SWDEV-321118 - Use GNUInstallDirs
+
+Use GNUInstallDirs variables to determine the location of BINDIR,
+LIBDIR, DOCDIR, and SYSCONFDIR.
+
+Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
+Change-Id: Ifb38263dce80d80c5ebb4eacd8e49c76bb013a44
+---
+ CMakeLists.txt | 2 +-
+ packaging/CMakeLists.txt | 12 ++++++------
+ packaging/rocm-ocl-icd.postinst | 4 ++--
+ packaging/rocm-ocl-icd.prerm | 4 ++--
+ packaging/rocm-ocl-icd.rpm_post | 4 ++--
+ packaging/rocm-ocl-icd.rpm_postun | 4 ++--
+ 6 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e5c4537..0612fa2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@ if (POLICY CMP0048)
+ set(PROJ_VERSION VERSION 1.5.0)
+ endif()
+
+-project(opencl)
++project(rocm-opencl)
+
+ include(GNUInstallDirs)
+
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+index 13a2185..2b6fa77 100644
+--- a/packaging/CMakeLists.txt
++++ b/packaging/CMakeLists.txt
+@@ -1,13 +1,13 @@
+ cmake_minimum_required(VERSION 3.5.1)
+-project(rocm-opencl)
++include(GNUInstallDirs)
+
+ set(CPACK_COMPONENTS_ALL binary dev icd)
+ set(CPACK_DEB_COMPONENT_INSTALL ON)
+ set(CPACK_RPM_COMPONENT_INSTALL ON)
+
+-install(TARGETS clinfo DESTINATION bin COMPONENT binary)
+-install(TARGETS amdocl DESTINATION lib COMPONENT binary)
+-install(FILES ${CMAKE_SOURCE_DIR}/LICENSE.txt DESTINATION share/doc/${CMAKE_PROJECT_NAME} COMPONENT binary)
++install(TARGETS clinfo DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT binary)
++install(TARGETS amdocl DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT binary)
++install(FILES ${CMAKE_SOURCE_DIR}/LICENSE.txt DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT binary)
+
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2/CL
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT dev
+@@ -17,8 +17,8 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2/CL
+ PATTERN cl_dx9_media_sharing.h EXCLUDE
+ PATTERN cl_egl.h EXCLUDE )
+
+-install(TARGETS OpenCL DESTINATION lib COMPONENT icd )
+-install(FILES ${CMAKE_SOURCE_DIR}/khronos/icd/LICENSE DESTINATION share/doc/rocm-ocl-icd COMPONENT icd)
++install(TARGETS OpenCL DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT icd )
++install(FILES ${CMAKE_SOURCE_DIR}/khronos/icd/LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/rocm-ocl-icd COMPONENT icd)
+
+
+ # Generic CPACK variables
+diff --git a/packaging/rocm-ocl-icd.postinst b/packaging/rocm-ocl-icd.postinst
+index 0780970..7c46ade 100644
+--- a/packaging/rocm-ocl-icd.postinst
++++ b/packaging/rocm-ocl-icd.postinst
+@@ -6,8 +6,8 @@ INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
+ ROCM_LIBPATH=@ROCM_PATH@/lib
+
+ do_ldconfig() {
+- echo ${INSTALL_PATH}/lib > /etc/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
+- mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
++ echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
++ mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
+ }
+
+ case "$1" in
+diff --git a/packaging/rocm-ocl-icd.prerm b/packaging/rocm-ocl-icd.prerm
+index 9fc6c8d..e0b5417 100644
+--- a/packaging/rocm-ocl-icd.prerm
++++ b/packaging/rocm-ocl-icd.prerm
+@@ -3,8 +3,8 @@
+ set -e
+
+ rm_ldconfig() {
+- rm -f /etc/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
+- rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
++ rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
++ rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
+ }
+
+ case "$1" in
+diff --git a/packaging/rocm-ocl-icd.rpm_post b/packaging/rocm-ocl-icd.rpm_post
+index 7ce5d97..49129ce 100644
+--- a/packaging/rocm-ocl-icd.rpm_post
++++ b/packaging/rocm-ocl-icd.rpm_post
+@@ -1,8 +1,8 @@
+ INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
+ ROCM_LIBPATH=@ROCM_PATH@/lib
+
+-echo ${INSTALL_PATH}/lib > /etc/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
+-mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
++echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
++mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
+
+ mkdir -p ${ROCM_LIBPATH}
+ ln -s -f -r ${INSTALL_PATH}/lib/libOpenCL.so ${ROCM_LIBPATH}/libOpenCL.so
+diff --git a/packaging/rocm-ocl-icd.rpm_postun b/packaging/rocm-ocl-icd.rpm_postun
+index 356c7af..44bbce3 100644
+--- a/packaging/rocm-ocl-icd.rpm_postun
++++ b/packaging/rocm-ocl-icd.rpm_postun
+@@ -1,6 +1,6 @@
+ if [ $1 -eq 0 ]; then
+- rm -f /etc/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
+- rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
++ rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
++ rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
+ rm -f @ROCM_PATH@/lib/libOpenCL.so
+ rm -f @ROCM_PATH@/lib/libOpenCL.so.@OPENCL_LIB_VERSION_MAJOR@
+ rm -f @ROCM_PATH@/lib/libOpenCL.so.@OPENCL_LIB_VERSION_STRING@
+--
+2.35.1
+
Index: files/0001-SWDEV-323669-Fix-linux-arch-detection.patch
===================================================================
--- /dev/null
+++ files/0001-SWDEV-323669-Fix-linux-arch-detection.patch
@@ -0,0 +1,53 @@
+From 211c1c4d8c7f6dac48ba6c73256da60955f9dbd1 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <Jeremy.Newton@amd.com>
+Date: Thu, 17 Feb 2022 09:05:56 -0500
+Subject: [PATCH] SWDEV-323669 - Fix linux arch detection
+
+CMake assumes we're bundling on x86, but for GNU compatible compilers,
+we should rely on the compiler target to set the build arch.
+
+For non-gnu compilers, just fall back to assuming x86 (no change).
+
+Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
+Change-Id: Iee9794e6f7c3973c781ddaf740ded77f34712c4f
+---
+ cmake/ROCclr.cmake | 1 -
+ include/top.hpp | 10 ++++++++++
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/cmake/ROCclr.cmake b/cmake/ROCclr.cmake
+index 2f6ff8c1..e4d0cdc1 100644
+--- a/cmake/ROCclr.cmake
++++ b/cmake/ROCclr.cmake
+@@ -100,7 +100,6 @@ if(NOT CMAKE_CL_64)
+ endif()
+
+ target_compile_definitions(rocclr PUBLIC
+- ATI_ARCH_X86
+ LITTLEENDIAN_CPU
+ WITH_LIQUID_FLASH=0
+ ${AMD_OPENCL_DEFS})
+diff --git a/include/top.hpp b/include/top.hpp
+index f51db7d1..70273510 100644
+--- a/include/top.hpp
++++ b/include/top.hpp
+@@ -21,6 +21,16 @@
+ #ifndef TOP_HPP_
+ #define TOP_HPP_
+
++#if defined(__GNUC__)
++#if defined(__arm__) || defined(__aarch64__)
++#define ATI_ARCH_ARM
++#elif defined(__x86__) || defined(__x86_64__)
++#define ATI_ARCH_X86
++#endif
++#else /*!__GNUC__*/
++#define ATI_ARCH_X86
++#endif /*!__GNUC__*/
++
+ #if defined(ATI_ARCH_ARM)
+ #define __EXPORTED_HEADERS__ 1
+ #endif /*ATI_ARCH_ARM*/
+--
+2.34.1
+
Index: files/0001-Use-GNUInstallDirs.patch
===================================================================
--- /dev/null
+++ files/0001-Use-GNUInstallDirs.patch
@@ -0,0 +1,142 @@
+From 26c33f505713a4cebf638988346fc62ff85e7732 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <alexjnewt@hotmail.com>
+Date: Sat, 7 May 2022 14:23:21 -0400
+Subject: [PATCH] Use GNUInstallDirs
+
+---
+ CMakeLists.txt | 31 ++++++++++++++++++-------------
+ src/CMakeLists.txt | 6 +++---
+ 2 files changed, 21 insertions(+), 16 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1c5a2e7f..546925b2 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,6 +20,11 @@
+ cmake_minimum_required(VERSION 3.16.8)
+ project(hip)
+
++# Set default libdir to be "lib" for ROCm, distros will override this anyway:
++set(CMAKE_INSTALL_LIBDIR "lib" CACHE STRING "Library install directory")
++
++include(GNUInstallDirs)
++
+ # sample command for hip-rocclr runtime, you'll need to have rocclr built
+ # ROCM_PATH is the path where ROCM is installed
+ # For shared lib of hip-rocclr runtime
+@@ -39,7 +44,7 @@ list(APPEND CMAKE_MODULE_PATH ${HIP_COMMON_DIR}/cmake)
+
+ # required to add the right link to libhsa-runtime in install/lib path
+ # CMAKE_PREFIX_PATH is used as rpath to search for libs outside HIP
+-set(CMAKE_INSTALL_RPATH "${CMAKE_PREFIX_PATH}/lib")
++set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+
+ #############################
+@@ -275,9 +280,9 @@ endif (NOT CPACK_SET_DESTDIR)
+ #############################
+ # Build steps
+ #############################
+-set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
+-set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+-set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include)
++set(BIN_INSTALL_DIR ${CMAKE_INSTALL_FULL_BINDIR})
++set(LIB_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR})
++set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_FULL_INCLUDEDIR})
+ set(CONFIG_PACKAGE_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/hip)
+ set(CONFIG_LANG_PACKAGE_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/hip-lang)
+
+@@ -325,10 +330,10 @@ endif()
+ #############################
+
+ # Install .hipInfo
+-install(FILES ${PROJECT_BINARY_DIR}/.hipInfo DESTINATION lib)
++install(FILES ${PROJECT_BINARY_DIR}/.hipInfo DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+ # Install .hipVersion
+-install(FILES ${PROJECT_BINARY_DIR}/.hipVersion DESTINATION bin)
++install(FILES ${PROJECT_BINARY_DIR}/.hipVersion DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ # Install src, bin, include & cmake if necessary
+ execute_process(COMMAND test ${CMAKE_INSTALL_PREFIX} -ef ${CMAKE_CURRENT_SOURCE_DIR}
+@@ -337,7 +342,7 @@ if(NOT ${INSTALL_SOURCE} EQUAL 0)
+ if(WIN32)
+ install(DIRECTORY ${HIP_COMMON_BIN_DIR} DESTINATION . USE_SOURCE_PERMISSIONS)
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+- install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src/" DESTINATION bin
++ install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src/" DESTINATION ${CMAKE_INSTALL_BINDIR}
+ FILES_MATCHING PATTERN "*.pdb"
+ PATTERN "*.ilk"
+ PATTERN "CMakeFiles" EXCLUDE
+@@ -354,11 +359,11 @@ if(NOT ${INSTALL_SOURCE} EQUAL 0)
+ endif()
+
+ # The following two lines will be removed after upstream updation
+- install(CODE "MESSAGE(\"Removing ${CMAKE_INSTALL_PREFIX}/include\")")
+- install(CODE "file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/include)")
++ install(CODE "MESSAGE(\"Removing ${CMAKE_INSTALL_FULL_INCLUDEDIR}\")")
++ install(CODE "file(REMOVE_RECURSE ${CMAKE_INSTALL_FULL_INCLUDEDIR})")
+
+ install(DIRECTORY include DESTINATION .)
+- install(DIRECTORY ${HIP_COMMON_INCLUDE_DIR}/hip/ DESTINATION include/hip/)
++ install(DIRECTORY ${HIP_COMMON_INCLUDE_DIR}/hip/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip/)
+ install(DIRECTORY ${HIP_COMMON_DIR}/cmake DESTINATION .)
+ endif()
+
+@@ -366,11 +371,11 @@ endif()
+ # FIXME: Associate with individual targets.
+ if(HIP_PLATFORM STREQUAL "amd")
+ install(FILES ${PROJECT_BINARY_DIR}/include/hip/amd_detail/hip_prof_str.h
+- DESTINATION include/hip/amd_detail)
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip/amd_detail)
+ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin DESTINATION . USE_SOURCE_PERMISSIONS)
+ endif()
+ install(FILES ${PROJECT_BINARY_DIR}/include/hip/hip_version.h
+- DESTINATION include/hip)
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip)
+
+ #############################
+ # hip-config
+@@ -548,7 +553,7 @@ endif()
+ # Target: clang
+ if(HIP_HIPCC_EXECUTABLE)
+ add_custom_target(analyze
+- COMMAND ${HIP_HIPCC_EXECUTABLE} -fvisibility=hidden -fvisibility-inlines-hidden --analyze --analyzer-outputtext -isystem ${ROCM_PATH}/include -Wno-unused-command-line-argument -I${ROCM_PATH}/include -c src/*.cpp -Iinclude/ -I./
++ COMMAND ${HIP_HIPCC_EXECUTABLE} -fvisibility=hidden -fvisibility-inlines-hidden --analyze --analyzer-outputtext -isystem ${ROCM_PATH}/${CMAKE_INSTALL_INCLUDEDIR} -Wno-unused-command-line-argument -I${ROCM_PATH}/${CMAKE_INSTALL_INCLUDEDIR} -c src/*.cpp -Iinclude/ -I./
+ WORKING_DIRECTORY ${HIP_SRC_PATH})
+ if(CPPCHECK_EXE)
+ add_dependencies(analyze cppcheck)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ac88ddf5..2ce748d1 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -257,7 +257,7 @@ if(__HIP_ENABLE_RTC)
+ add_dependencies(amdhip64 hiprtc-builtins)
+ install(TARGETS hiprtc-builtins
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+- LIBRARY DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
+
+@@ -325,7 +325,7 @@ target_link_libraries(device INTERFACE host)
+ INSTALL(TARGETS amdhip64 host device
+ EXPORT hip-targets
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+- LIBRARY DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ INSTALL(EXPORT hip-targets DESTINATION ${CONFIG_PACKAGE_INSTALL_DIR} NAMESPACE hip::)
+@@ -333,7 +333,7 @@ INSTALL(EXPORT hip-targets DESTINATION ${CONFIG_PACKAGE_INSTALL_DIR} NAMESPACE h
+ INSTALL(TARGETS amdhip64 host device
+ EXPORT hip-lang-targets
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+- LIBRARY DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ INSTALL(EXPORT hip-lang-targets DESTINATION ${CONFIG_LANG_PACKAGE_INSTALL_DIR} NAMESPACE hip-lang::)
+--
+2.34.1
+
Index: files/0001-enable-gfx800.patch
===================================================================
--- /dev/null
+++ files/0001-enable-gfx800.patch
@@ -0,0 +1,16 @@
+#From xuhuisheng
+#at https://github.com/RadeonOpenCompute/ROCm/issues/1659#issuecomment-1041026624
+
+diff --git a/utils/flags.hpp b/utils/flags.hpp
+index 8f0228cc..2eaa47c5 100644
+--- a/utils/flags.hpp
++++ b/utils/flags.hpp
+@@ -245,7 +245,7 @@ release(bool, ROC_SYSTEM_SCOPE_SIGNAL, true, \
+ "Enable system scope for signals (uses interrupts).") \
+ release(bool, ROC_SKIP_COPY_SYNC, false, \
+ "Skips copy syncs if runtime can predict the same engine.") \
+-release(bool, ROC_ENABLE_PRE_VEGA, false, \
++release(bool, ROC_ENABLE_PRE_VEGA, true, \
+ "Enable support of pre-vega ASICs in ROCm path") \
+ release(bool, HIP_FORCE_QUEUE_PROFILING, false, \
+ "Force command queue profiling by default") \
Index: files/0002-Fix-CL-icd-header-include.patch
===================================================================
--- /dev/null
+++ files/0002-Fix-CL-icd-header-include.patch
@@ -0,0 +1,28 @@
+From cd50df60787f98847a27fb223dc13d73613a17fa Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <alexjnewt@hotmail.com>
+Date: Sat, 7 May 2022 00:03:48 -0400
+Subject: [PATCH 2/2] Fix CL icd header include
+
+Use CL public headers, not the the private header in the ICD loader source.
+
+Fixes issues when building with ROCclr standalone package.
+---
+ src/fixme.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/fixme.cpp b/src/fixme.cpp
+index 3b6b55bc..9f5d4cc4 100644
+--- a/src/fixme.cpp
++++ b/src/fixme.cpp
+@@ -19,7 +19,7 @@
+ THE SOFTWARE. */
+
+ #include "vdi_common.hpp"
+-#include <icd/loader/icd_dispatch.h>
++#include <CL/cl_icd.h>
+
+ cl_icd_dispatch amd::ICDDispatchedObject::icdVendorDispatch_[] = {0};
+ amd::PlatformIDS amd::PlatformID::Platform = {amd::ICDDispatchedObject::icdVendorDispatch_};
+--
+2.34.1
+
Index: files/0002-Revert-hip-Switch-to-component-based-packaging.patch
===================================================================
--- /dev/null
+++ files/0002-Revert-hip-Switch-to-component-based-packaging.patch
@@ -0,0 +1,910 @@
+From bb9696386e92fb38d023f1223ee67cfbd8fa0fa4 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <alexjnewt@hotmail.com>
+Date: Mon, 4 Apr 2022 10:39:26 -0400
+Subject: [PATCH 2/2] Revert "hip:Switch to component based packaging."
+
+This reverts commit d15357479a32597a8e762796e10dfd1e8afba332.
+---
+ CMakeLists.txt | 103 ++++++++++-
+ packaging/CMakeLists.txt | 297 -------------------------------
+ packaging/hip-devel.txt | 98 ++++++++++
+ packaging/hip-doc.txt | 87 +++++++++
+ packaging/hip-runtime-amd.txt | 109 ++++++++++++
+ packaging/hip-runtime-nvidia.txt | 74 ++++++++
+ packaging/hip-samples.txt | 69 +++++++
+ 7 files changed, 538 insertions(+), 299 deletions(-)
+ delete mode 100644 packaging/CMakeLists.txt
+ create mode 100644 packaging/hip-devel.txt
+ create mode 100644 packaging/hip-doc.txt
+ create mode 100644 packaging/hip-runtime-amd.txt
+ create mode 100644 packaging/hip-runtime-nvidia.txt
+ create mode 100644 packaging/hip-samples.txt
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3ce1fc10..1c5a2e7f 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -397,9 +397,108 @@ install(
+ ${CONFIG_PACKAGE_INSTALL_DIR}
+ )
+ # Packaging invokes UNIX commands, which are not available on Windows.
+-
+ if(NOT WIN32)
+- add_subdirectory(packaging)
++#############################
++# Packaging steps
++#############################
++# Package: hip_devel
++set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hip-devel)
++configure_file(packaging/hip-devel.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++configure_file(packaging/hip-devel.postinst ${BUILD_DIR}/postinst @ONLY)
++configure_file(packaging/hip-devel.prerm ${BUILD_DIR}/prerm @ONLY)
++
++add_custom_target(pkg_hip_base COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR} )
++
++# Packaging needs to wait for hipify-clang to build if it's enabled...
++if (BUILD_HIPIFY_CLANG)
++ add_dependencies(pkg_hip_base hipify-clang)
++endif()
++
++if(HIP_RUNTIME STREQUAL "rocclr")
++ set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/rocclr)
++ configure_file(packaging/hip-runtime-amd.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++ configure_file(packaging/hip-runtime-amd.postinst ${BUILD_DIR}/postinst @ONLY)
++ configure_file(packaging/hip-runtime-amd.prerm ${BUILD_DIR}/prerm @ONLY)
++ add_custom_target(hip_on_rocclr COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR} )
++endif()
++
++# Package: hip_runtime_nvidia
++set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hip-runtime-nvidia)
++configure_file(packaging/hip-runtime-nvidia.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++configure_file(packaging/hip-runtime-nvidia.postinst ${BUILD_DIR}/postinst @ONLY)
++configure_file(packaging/hip-runtime-nvidia.prerm ${BUILD_DIR}/prerm @ONLY)
++add_custom_target(pkg_hip_nvcc COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR})
++
++# Package: hip_doc
++set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hip-doc)
++configure_file(packaging/hip-doc.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++add_custom_target(pkg_hip_doc COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR})
++
++# Package: hip_catch_tests
++set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hip_catch_tests)
++configure_file(packaging/hip-tests.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++add_custom_target(pkg_hip_catch_tests COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR})
++
++# Package: hip_samples
++set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/hip_samples)
++configure_file(packaging/hip-samples.txt ${BUILD_DIR}/CMakeLists.txt @ONLY)
++add_custom_target(pkg_hip_samples COMMAND ${CMAKE_COMMAND} .
++ COMMAND rm -rf *.deb *.rpm *.tar.gz
++ COMMAND make package
++ COMMAND cp *.deb ${PROJECT_BINARY_DIR}
++ COMMAND cp *.rpm ${PROJECT_BINARY_DIR}
++ COMMAND cp *.tar.gz ${PROJECT_BINARY_DIR}
++ WORKING_DIRECTORY ${BUILD_DIR})
++
++# Package: all
++if(POLICY CMP0037)
++ cmake_policy(PUSH)
++ cmake_policy(SET CMP0037 OLD)
++endif()
++
++if(HIP_RUNTIME STREQUAL "rocclr")
++ set(package_list pkg_hip_base hip_on_rocclr pkg_hip_nvcc pkg_hip_doc pkg_hip_samples)
++ if(HIP_CATCH_TEST EQUAL "1")
++ set(package_list ${package_list} pkg_hip_catch_tests)
++ endif()
++ add_custom_target(package
++ WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++ DEPENDS ${package_list})
++endif()
++
++if(POLICY CMP0037)
++ cmake_policy(POP)
++endif()
+ endif()
+
+ #############################
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+deleted file mode 100644
+index ca368f9d..00000000
+--- a/packaging/CMakeLists.txt
++++ /dev/null
+@@ -1,297 +0,0 @@
+-# Copyright (c) 2020 - 2022 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.
+-
+-cmake_minimum_required(VERSION 2.8.3)
+-
+-#set components for HIP
+-if(HIP_CATCH_TEST EQUAL "1")
+- set(CPACK_COMPONENTS_ALL binary dev doc samples runtime-nvidia test)
+-else()
+- set(CPACK_COMPONENTS_ALL binary dev doc samples runtime-nvidia)
+-endif()
+-
+-###############Install Required files for all compnents########
+-
+-#Enable Component Install
+-set(CPACK_RPM_COMPONENT_INSTALL ON)
+-set(CPACK_DEB_COMPONENT_INSTALL ON)
+-
+-###Set License####
+-set(CPACK_RESOURCE_FILE_LICENSE ${hip_SOURCE_DIR}/LICENSE.txt)
+-install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${PROJECT_NAME} COMPONENT binary)
+-set(CPACK_RPM_PACKAGE_LICENSE "MIT")
+-
+-#Begin binary files install
+-if(HIP_PLATFORM STREQUAL "amd" )
+- if(BUILD_SHARED_LIBS)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libamdhip64.so DESTINATION lib COMPONENT binary)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libamdhip64.so.${HIP_LIB_VERSION_MAJOR} DESTINATION lib COMPONENT binary)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libamdhip64.so.${HIP_LIB_VERSION_STRING} DESTINATION lib COMPONENT binary)
+- if(__HIP_ENABLE_RTC)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libhiprtc-builtins.so DESTINATION lib COMPONENT binary)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libhiprtc-builtins.so.${HIP_LIB_VERSION_MAJOR} DESTINATION lib COMPONENT binary)
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libhiprtc-builtins.so.${HIP_LIB_VERSION_STRING} DESTINATION lib COMPONENT binary)
+- endif()
+- else()
+- install(FILES ${CMAKE_BINARY_DIR}/lib/libamdhip64.a DESTINATION lib COMPONENT binary)
+- endif()#End BUILD_SHARED_LIBS
+-
+-#TODO:This do not belog in BINARY package.
+-#Keeping it as is for now
+-install(FILES ${CMAKE_BINARY_DIR}/.hipInfo DESTINATION lib COMPONENT binary)
+-install(FILES ${CMAKE_BINARY_DIR}/hip-config.cmake ${CMAKE_BINARY_DIR}/hip-config-version.cmake DESTINATION lib/cmake/hip COMPONENT binary)
+-install(FILES ${CMAKE_BINARY_DIR}/src/hip-lang-config.cmake ${CMAKE_BINARY_DIR}/src/hip-lang-config-version.cmake DESTINATION lib/cmake/hip-lang COMPONENT binary)
+-## cmake generated target files contains IMPORTED_LOCATION_RELEASE etc. which
+-## is installation path when building the project, which may be different from
+-## the intallation path for packaging. These paths have to be replaced by
+-## the package installation path, otherwise apps using pkg-config will fail.
+-file(GLOB _target_files ${CONFIG_PACKAGE_INSTALL_DIR}/hip-targets*.cmake)
+-foreach(_target_file ${_target_files})
+- execute_process(COMMAND sed -i s:${CMAKE_INSTALL_PREFIX}:${CPACK_INSTALL_PREFIX}:g ${_target_file})
+-endforeach()
+-install(FILES ${_target_files} DESTINATION lib/cmake/hip COMPONENT BINARY)
+-
+-file(GLOB _target_files ${CONFIG_LANG_PACKAGE_INSTALL_DIR}/hip-lang-targets*.cmake)
+-foreach(_target_file ${_target_files})
+- execute_process(COMMAND sed -i s:{CMAKE_INSTALL_PREFIX}:${CPACK_INSTALL_PREFIX}:g ${_target_file})
+-endforeach()
+-install(FILES ${_target_files} DESTINATION lib/cmake/hip-lang COMPONENT BINARY)
+-
+-endif()#End HIP_PLATFORM = "amd"
+-#End bianry files install
+-
+-#Begin dev files install
+-if(WIN32)
+- install(DIRECTORY ${HIP_COMMON_DIR}/bin DESTINATION . COMPONENT dev
+- USE_SOURCE_PERMISSIONS)
+-else()
+- install(DIRECTORY ${HIP_COMMON_DIR}/bin DESTINATION . COMPONENT dev
+- USE_SOURCE_PERMISSIONS PATTERN *.bat EXCLUDE)
+-endif()
+-
+-if (NOT ${HIPCC_BIN_DIR} STREQUAL "")
+- install(PROGRAMS ${HIPCC_BIN_DIR}/hipcc.bin DESTINATION bin)
+- install(PROGRAMS ${HIPCC_BIN_DIR}/hipconfig.bin DESTINATION bin)
+-endif()
+-
+-install(DIRECTORY ${hip_SOURCE_DIR}/bin DESTINATION . COMPONENT dev
+- USE_SOURCE_PERMISSIONS)
+-install(DIRECTORY ${HIP_COMMON_DIR}/include DESTINATION . COMPONENT dev)
+-install(DIRECTORY ${hip_SOURCE_DIR}/include/hip/amd_detail
+- DESTINATION include/hip COMPONENT dev)
+-install(DIRECTORY ${hip_SOURCE_DIR}/include/hip/nvidia_detail
+- DESTINATION include/hip COMPONENT dev)
+-install(FILES ${CMAKE_BINARY_DIR}/include/hip/amd_detail/hip_prof_str.h
+- DESTINATION include/hip/amd_detail COMPONENT dev)
+-install(FILES ${CMAKE_BINARY_DIR}/include/hip/hip_version.h
+- DESTINATION include/hip COMPONENT dev)
+-install(FILES ${CMAKE_BINARY_DIR}/.hipVersion DESTINATION bin COMPONENT dev)
+-install(DIRECTORY ${HIP_COMMON_DIR}/cmake DESTINATION . COMPONENT dev)
+-#End dev files install
+-
+-#Begin doc files install
+-find_program(DOXYGEN_EXE doxygen)
+-if(DOXYGEN_EXE)
+- add_custom_target(build_doxygen ALL
+- COMMAND HIP_PATH=${HIP_COMMON_DIR} doxygen ${HIP_COMMON_DIR}/docs/doxygen-input/doxy.cfg)
+- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/RuntimeAPI/html
+- DESTINATION docs/RuntimeAPI COMPONENT doc)
+-endif()
+-#End doc files install
+-
+-#Begin samples files install
+-install(DIRECTORY ${HIP_COMMON_DIR}/samples DESTINATION . COMPONENT samples)
+-#End samples files install
+-
+-#Begin test files install
+-if(HIP_CATCH_TEST EQUAL "1")
+-install(DIRECTORY ${CMAKE_BINARY_DIR}/catch
+- DESTINATION . COMPONENT test
+- USE_SOURCE_PERMISSIONS)
+-endif()
+-#End test files install
+-
+-
+-##################################
+-# Packaging steps COMMON Variables
+-##################################
+-set(CPACK_SET_DESTDIR TRUE)
+-
+-set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
+-set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
+-set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP:Heterogenous-computing Interface for Portability")
+-set(CPACK_PACKAGE_VERSION_MAJOR ${HIP_VERSION_MAJOR})
+-set(CPACK_PACKAGE_VERSION_MINOR ${HIP_VERSION_MINOR})
+-set(CPACK_PACKAGE_VERSION_PATCH ${HIP_VERSION_PATCH})
+-set(CPACK_PACKAGE_VERSION ${HIP_VERSION_MAJOR}.${HIP_VERSION_MINOR}.${HIP_PACKAGING_VERSION_PATCH})
+-set(CPACK_GENERATOR "TGZ:DEB;RPM" CACHE STRING "Package types to build")
+-
+-set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
+-if (CPACK_RPM_PACKAGE_RELEASE MATCHES "local" )
+- #If building locally default value will cause build failure
+- #DEBUG SYMBOL pacaking require SOURCE_DIR to be small
+- set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX ${CPACK_INSTALL_PREFIX})
+-endif()
+-set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
+-set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
+-
+-set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
+-
+-set(CPACK_SOURCE_GENERATOR "TGZ")
+-
+-
+-#Begin Binary Packaging setting
+-
+-set(CPACK_BINARY_DEB "ON")
+-set(CPACK_BINARY_RPM "ON")
+-
+-set(CPACK_DEBIAN_BINARY_PACKAGE_NAME "hip-runtime-amd")
+-set(CPACK_RPM_BINARY_PACKAGE_NAME "hip-runtime-amd")
+-
+-set(CPACK_COMPONENT_BINARY_DESCRIPTION "HIP:Heterogenous-computing Interface for Portability [RUNTIME - AMD]")
+-
+-configure_file(hip-runtime-amd.postinst ${CMAKE_CURRENT_BINARY_DIR}/binary/postinst @ONLY)
+-configure_file(hip-runtime-amd.prerm ${CMAKE_CURRENT_BINARY_DIR}/binary/prerm @ONLY)
+-
+-set(CPACK_DEBIAN_BINARY_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_BINARY_DIR}/binary/postinst;${CMAKE_CURRENT_BINARY_DIR}/binary/prerm")
+-set(CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS "hsa-rocr-dev (>= 1.3), rocminfo, comgr (>= 2.0), rocm-llvm, libc6, rocm-core")
+-set(CPACK_DEBIAN_BINARY_PACKAGE_PROVIDES "hip-rocclr (= ${CPACK_PACKAGE_VERSION})")
+-set(CPACK_DEBIAN_BINARY_PACKAGE_REPLACES "hip-rocclr (= ${CPACK_PACKAGE_VERSION})")
+-
+-set(CPACK_RPM_BINARY_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
+-set(CPACK_RPM_BINARY_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/binary/postinst")
+-set(CPACK_RPM_BINARY_PRE_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/binary/prerm")
+-string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
+-set(CPACK_RPM_BINARY_PACKAGE_REQUIRES "hsa-rocr-dev >= 1.3, rocminfo, comgr >= 2.0, rocm-llvm, rocm-core")
+-set(CPACK_RPM_BINARY_PACKAGE_PROVIDES "hip-rocclr = ${HIP_BASE_VERSION}")
+-set(CPACK_RPM_BINARY_PACKAGE_OBSOLETES "hip-rocclr = ${HIP_BASE_VERSION}")
+-#End Binary Packaging setting
+-
+-#Begin dev Packaging setting
+-set(CPACK_DEV_DEB "ON")
+-set(CPACK_DEV_RPM "ON")
+-
+-set(CPACK_DEBIAN_DEV_PACKAGE_NAME "hip-dev")
+-set(CPACK_RPM_DEV_PACKAGE_NAME "hip-devel")
+-
+-set(CPACK_COMPONENT_DEV_DESCRIPTION "HIP: Heterogenous-computing Interface for Portability [DEVELOPMENT]")
+-
+-configure_file(hip-devel.postinst ${CMAKE_CURRENT_BINARY_DIR}/dev/postinst @ONLY)
+-configure_file(hip-devel.prerm ${CMAKE_CURRENT_BINARY_DIR}/dev/prerm @ONLY)
+-set(CPACK_DEBIAN_DEV_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_BINARY_DIR}/dev/postinst;${CMAKE_CURRENT_BINARY_DIR}/dev/prerm")
+-
+-set(CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "perl (>= 5.0), liburi-encode-perl, libfile-basedir-perl, libfile-copy-recursive-perl, libfile-listing-perl, libfile-which-perl, libc6, file, rocm-core")
+-set(CPACK_DEBIAN_DEV_PACKAGE_PROVIDES "hip-base")
+-set(CPACK_DEBIAN_DEV_PACKAGE_REPLACES "hip-base")
+-
+-set(CPACK_RPM_DEV_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/dev/postinst")
+-set(CPACK_RPM_DEV_PRE_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/dev/prerm")
+-set(CPACK_RPM_DEV_PACKAGE_REQUIRES "perl >= 5.0, perl-File-Which, perl-File-Listing, perl-File-BaseDir, perl-URI-Encode, file, rocm-core")
+-
+-set(CPACK_RPM_DEV_PACKAGE_PROVIDES "hip-base")
+-set(CPACK_RPM_DEV_PACKAGE_OBSOLETES "hip-base")
+-#End dev Packaging setting
+-
+-#Begin test Packaging setting
+-if(HIP_CATCH_TEST EQUAL "1")
+-set(CPACK_TEST_DEB "ON")
+-set(CPACK_TEST_RPM "ON")
+-set(CPACK_DEBIAN_TEST_PACKAGE_NAME "hip-catch-tests")
+-set(CPACK_RPM_TEST_PACKAGE_NAME "hip-catch-tests")
+-set(CPACK_COMPONENT_TEST_DESCRIPTION "HIP: Heterogenous-computing Interface for Portability [TESTS]")
+-
+-set(CPACK_DEBIAN_TEST_PACKAGE_DEPENDS "hip-dev (= ${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), rocm-core")
+-set(CPACK_DEBIAN_TEST_PACKAGE_PROVIDES "hip-catch-tests")
+-
+-string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
+-set(CPACK_RPM_TEST_PACKAGE_REQUIRES "hip-devel = ${HIP_BASE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}, rocm-core")
+-endif()
+-#End test Packaging setting
+-
+-#Begin doc Packaging setting
+-set(CPACK_DOC_DEB "ON")
+-set(CPACK_DOC_RPM "ON")
+-set(CPACK_DEBIAN_DOC_PACKAGE_NAME "hip-doc")
+-set(CPACK_RPM_DOC_PACKAGE_NAME "hip-doc")
+-set(CPACK_COMPONENT_DOC_DESCRIPTION "HIP: Heterogenous-computing Interface for Portability [DOCUMENTATION]")
+-
+-set(CPACK_DEBIAN_DOC_PACKAGE_DEPENDS "hip-dev (= ${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), rocm-core")
+-set(CPACK_DEBIAN_DOC_PACKAGE_PROVIDES "hip-doc")
+-
+-string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
+-set(CPACK_RPM_DOC_PACKAGE_REQUIRES "hip-devel = ${HIP_BASE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}, rocm-core")
+-
+-#End doc Packaging setting
+-
+-#Begin samples Packaging setting
+-set(CPACK_SAMPLES_DEB "ON")
+-set(CPACK_SAMPLES_RPM "ON")
+-set(CPACK_DEBIAN_SAMPLES_PACKAGE_NAME "hip-samples")
+-set(CPACK_RPM_SAMPLES_PACKAGE_NAME "hip-samples")
+-set(CPACK_COMPONENT_SAMPLES_DESCRIPTION "HIP: Heterogenous-computing Interface for Portability [SAMPLES]")
+-set(CPACK_DEBIAN_SAMPLES_PACKAGE_DEPENDS "hip-dev (= ${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), rocm-core")
+-set(CPACK_DEBIAN_SAMPLES_PACKAGE_PROVIDES "hip-samples")
+-
+-set(CPACK_RPM_SAMPLES_PACKAGE_REQUIRES "hip-devel = ${HIP_BASE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}, rocm-core")
+-#End samples Packaging setting
+-
+-#Begin runtime-nvidia Packaging setting
+-set(CPACK_RUNTIME-NVIDIA_DEB "ON")
+-set(CPACK_RUNTIME-NVIDIA_RPM "ON")
+-set(CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_NAME "hip-runtime-nvidia")
+-set(CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_NAME "hip-runtime-nvidia")
+-set(CPACK_COMPONENT_RUNTIME-NVIDIA_DESCRIPTION "HIP: Heterogenous-computing Interface for Portability [RUNTIME-NVIDIA]")
+-
+-configure_file(hip-runtime-nvidia.postinst ${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/postinst @ONLY)
+-configure_file(hip-runtime-nvidia.prerm ${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/prerm @ONLY)
+-set(CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/postinst;${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/prerm")
+-
+-set(CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_DEPENDS "cuda (>= 7.5), rocm-core")
+-set(CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_PROVIDES "hip-nvcc")
+-set(CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_REPLACES "hip-nvcc")
+-
+-set(CPACK_RPM_RUNTIME-NVIDIA_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/postinst")
+-set(CPACK_RPM_RUNTIME-NVIDIA_PRE_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/runtime-nvidia/prerm")
+-set(CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_PROVIDES "hip-nvcc")
+-set(CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_OBSOLETES "hip-nvcc")
+-set(CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_REQUIRES "cuda >= 7.5, rocm-core")
+-
+-# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
+-if(NOT ROCM_DEP_ROCMCORE)
+-
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_BINARY_PACKAGE_REQUIRES ${CPACK_RPM_BINARY_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS ${CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_DEV_PACKAGE_REQUIRES ${CPACK_RPM_DEV_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_DEV_PACKAGE_DEPENDS ${CPACK_DEBIAN_DEV_PACKAGE_DEPENDS})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_DOC_PACKAGE_REQUIRES ${CPACK_RPM_DOC_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_DOC_PACKAGE_DEPENDS ${CPACK_DEBIAN_DOC_PACKAGE_DEPENDS})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_SAMPLES_PACKAGE_REQUIRES ${CPACK_RPM_SAMPLES_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_SAMPLES_PACKAGE_DEPENDS ${CPACK_DEBIAN_SAMPLES_PACKAGE_DEPENDS})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_REQUIRES ${CPACK_RPM_RUNTIME-NVIDIA_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_DEPENDS ${CPACK_DEBIAN_RUNTIME-NVIDIA_PACKAGE_DEPENDS})
+-
+-if(HIP_CATCH_TEST EQUAL "1")
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_TEST_PACKAGE_REQUIRES ${CPACK_RPM_TEST_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_TEST_PACKAGE_DEPENDS ${CPACK_DEBIAN_TEST_PACKAGE_DEPENDS})
+-endif()#HIPC_CATCH_TEST
+-
+-endif()
+-
+-include(CPack)
+diff --git a/packaging/hip-devel.txt b/packaging/hip-devel.txt
+new file mode 100644
+index 00000000..04018d0c
+--- /dev/null
++++ b/packaging/hip-devel.txt
+@@ -0,0 +1,98 @@
++# Copyright (c) 2016 - 2021 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.
++
++cmake_minimum_required(VERSION 3.16.8)
++project(hip_dev)
++
++if(WIN32)
++ install(DIRECTORY @HIP_COMMON_DIR@/bin DESTINATION . USE_SOURCE_PERMISSIONS)
++else()
++ install(DIRECTORY @HIP_COMMON_DIR@/bin DESTINATION . USE_SOURCE_PERMISSIONS
++ PATTERN *.bat EXCLUDE)
++endif()
++
++if (NOT @HIPCC_BIN_DIR@ STREQUAL "")
++ install(PROGRAMS @HIPCC_BIN_DIR@/hipcc.bin DESTINATION bin)
++ install(PROGRAMS @HIPCC_BIN_DIR@/hipconfig.bin DESTINATION bin)
++endif()
++
++install(DIRECTORY @hip_SOURCE_DIR@/bin DESTINATION . USE_SOURCE_PERMISSIONS)
++install(DIRECTORY @HIP_COMMON_DIR@/include DESTINATION .)
++install(DIRECTORY @hip_SOURCE_DIR@/include/hip/amd_detail DESTINATION include/hip)
++install(DIRECTORY @hip_SOURCE_DIR@/include/hip/nvidia_detail DESTINATION include/hip)
++install(FILES @PROJECT_BINARY_DIR@/include/hip/amd_detail/hip_prof_str.h
++ DESTINATION include/hip/amd_detail)
++install(FILES @PROJECT_BINARY_DIR@/include/hip/hip_version.h
++ DESTINATION include/hip)
++install(FILES @PROJECT_BINARY_DIR@/.hipVersion DESTINATION bin)
++install(DIRECTORY @HIP_COMMON_DIR@/cmake DESTINATION .)
++
++#############################
++# Packaging steps
++#############################
++set(CPACK_SET_DESTDIR TRUE)
++set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@ )
++set(CPACK_PACKAGE_NAME "hip-dev")
++set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP Heterogenous-computing Interface for Portability [DEVELOPMENT]")
++set(CPACK_PACKAGE_DESCRIPTION "HIP:
++ Heterogenous-computing Interface for Portability [DEVELOPMENT]")
++set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
++set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
++set(CPACK_PACKAGE_VERSION_MAJOR @HIP_VERSION_MAJOR@)
++set(CPACK_PACKAGE_VERSION_MINOR @HIP_VERSION_MINOR@)
++set(CPACK_PACKAGE_VERSION_PATCH @HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_GENERATOR "TGZ;DEB;RPM")
++
++set(CPACK_BINARY_DEB "ON")
++set(CPACK_DEBIAN_PACKAGE_RELEASE @CPACK_DEBIAN_PACKAGE_RELEASE@)
++set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
++set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/postinst;${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_DEBIAN_PACKAGE_DEPENDS "perl (>= 5.0), liburi-encode-perl, libfile-basedir-perl, libfile-copy-recursive-perl, libfile-listing-perl, libfile-which-perl, libc6, file, rocm-core")
++set(CPACK_DEBIAN_PACKAGE_PROVIDES "hip-base")
++set(CPACK_DEBIAN_PACKAGE_REPLACES "hip-base")
++
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_PACKAGE_RELEASE @CPACK_RPM_PACKAGE_RELEASE@)
++set(CPACK_RPM_PACKAGE_NAME "hip-devel")
++set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
++set(CPACK_RPM_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
++set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/postinst")
++set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
++set(CPACK_RPM_PACKAGE_REQUIRES "perl >= 5.0, perl-File-Which, perl-File-Listing, perl-File-BaseDir, perl-URI-Encode, file, rocm-core")
++set(CPACK_RPM_PACKAGE_PROVIDES "hip-base")
++set(CPACK_RPM_PACKAGE_OBSOLETES "hip-base")
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
++set(CPACK_SOURCE_GENERATOR "TGZ")
++# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
++set(ROCM_DEP_ROCMCORE "@ROCM_DEP_ROCMCORE@")
++if(NOT ROCM_DEP_ROCMCORE)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
++endif()
++
++set ( CPACK_RESOURCE_FILE_LICENSE "@hip_SOURCE_DIR@/LICENSE.txt" )
++# Install license file
++install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
++set(CPACK_RPM_PACKAGE_LICENSE "MIT")
++
++include(CPack)
+diff --git a/packaging/hip-doc.txt b/packaging/hip-doc.txt
+new file mode 100644
+index 00000000..262ec401
+--- /dev/null
++++ b/packaging/hip-doc.txt
+@@ -0,0 +1,87 @@
++# Copyright (c) 2016 - 2021 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.
++
++cmake_minimum_required(VERSION 2.8.3)
++project(hip_doc)
++
++find_program(DOXYGEN_EXE doxygen)
++if(DOXYGEN_EXE)
++ add_custom_target(build_doxygen ALL
++ COMMAND HIP_PATH=@HIP_COMMON_DIR@ doxygen @HIP_COMMON_DIR@/docs/doxygen-input/doxy.cfg)
++ install(DIRECTORY RuntimeAPI/html DESTINATION docs/docs/RuntimeAPI)
++endif()
++
++#find_program(GRIP_EXE grip)
++#if(GRIP_EXE)
++# add_custom_target(convert_md_to_html ALL
++# COMMAND @hip_SOURCE_DIR@/packaging/convert_md_to_html.sh @hip_SOURCE_DIR@ ${PROJECT_BINARY_DIR}/md2html)
++# install(DIRECTORY md2html/ DESTINATION docs)
++#endif()
++
++#############################
++# Packaging steps
++#############################
++set(CPACK_SET_DESTDIR TRUE)
++set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@ )
++set(CPACK_PACKAGE_NAME "hip-doc")
++set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP: Heterogenous-computing Interface for Portability [DOCUMENTATION]")
++set(CPACK_PACKAGE_DESCRIPTION "HIP:
++ Heterogenous-computing Interface for Portability [DOCUMENTATION]")
++set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
++set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
++set(CPACK_PACKAGE_VERSION_MAJOR @HIP_VERSION_MAJOR@)
++set(CPACK_PACKAGE_VERSION_MINOR @HIP_VERSION_MINOR@)
++set(CPACK_PACKAGE_VERSION_PATCH @HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_GENERATOR "TGZ;DEB;RPM")
++
++set(CPACK_BINARY_DEB "ON")
++set(CPACK_DEBIAN_PACKAGE_RELEASE @CPACK_DEBIAN_PACKAGE_RELEASE@)
++set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
++set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip-dev (= ${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), rocm-core")
++set(CPACK_DEBIAN_PACKAGE_PROVIDES "hip-doc")
++
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_PACKAGE_RELEASE @CPACK_RPM_PACKAGE_RELEASE@)
++set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
++set(CPACK_RPM_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
++set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
++string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
++set(CPACK_RPM_PACKAGE_REQUIRES "hip-devel = ${HIP_BASE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}, rocm-core")
++set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
++set(CPACK_SOURCE_GENERATOR "TGZ")
++
++# Remove depenency on rocm-core if not wanted. Add a -DROCM_DEP_ROCMCORE=ON
++# to the cmake invocation. Do it this way so we can have the same code
++# in all the packages, and don't need to worry if we need commas or not
++# because there are other dependencies. Code is slightly fragile as we are
++# using regular expressions to edit strings.
++set(ROCM_DEP_ROCMCORE "@ROCM_DEP_ROCMCORE@")
++if(NOT ROCM_DEP_ROCMCORE)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
++endif()
++
++set ( CPACK_RESOURCE_FILE_LICENSE "@hip_SOURCE_DIR@/LICENSE.txt" )
++# Install license file
++install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
++set(CPACK_RPM_PACKAGE_LICENSE "MIT")
++
++include(CPack)
+diff --git a/packaging/hip-runtime-amd.txt b/packaging/hip-runtime-amd.txt
+new file mode 100644
+index 00000000..6eea5694
+--- /dev/null
++++ b/packaging/hip-runtime-amd.txt
+@@ -0,0 +1,109 @@
++# Copyright (c) 2020 - 2021 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.
++
++cmake_minimum_required(VERSION 2.8.3)
++project(hip_runtime_amd)
++
++if(@BUILD_SHARED_LIBS@)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libamdhip64.so DESTINATION lib)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libamdhip64.so.@HIP_LIB_VERSION_MAJOR@ DESTINATION lib)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libamdhip64.so.@HIP_LIB_VERSION_STRING@ DESTINATION lib)
++ if(@__HIP_ENABLE_RTC@)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libhiprtc-builtins.so DESTINATION lib)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libhiprtc-builtins.so.@HIP_LIB_VERSION_MAJOR@ DESTINATION lib)
++ install(FILES @PROJECT_BINARY_DIR@/lib/libhiprtc-builtins.so.@HIP_LIB_VERSION_STRING@ DESTINATION lib)
++ endif()
++else()
++ install(FILES @PROJECT_BINARY_DIR@/lib/libamdhip64.a DESTINATION lib)
++endif()
++
++install(FILES @PROJECT_BINARY_DIR@/.hipInfo DESTINATION lib)
++install(FILES @PROJECT_BINARY_DIR@/hip-config.cmake @PROJECT_BINARY_DIR@/hip-config-version.cmake DESTINATION lib/cmake/hip)
++install(FILES @PROJECT_BINARY_DIR@/src/hip-lang-config.cmake @PROJECT_BINARY_DIR@/src/hip-lang-config-version.cmake DESTINATION lib/cmake/hip-lang)
++
++#############################
++# Packaging steps
++#############################
++set(CPACK_SET_DESTDIR TRUE)
++set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@)
++
++## cmake generated target files contains IMPORTED_LOCATION_RELEASE etc. which
++## is installation path when building the project, which may be different from
++## the intallation path for packaging. These paths have to be replaced by
++## the package installation path, otherwise apps using pkg-config will fail.
++file(GLOB _target_files @CONFIG_PACKAGE_INSTALL_DIR@/hip-targets*.cmake)
++foreach(_target_file ${_target_files})
++ execute_process(COMMAND sed -i s:@CMAKE_INSTALL_PREFIX@:${CPACK_INSTALL_PREFIX}:g ${_target_file})
++endforeach()
++install(FILES ${_target_files} DESTINATION lib/cmake/hip)
++
++file(GLOB _target_files @CONFIG_LANG_PACKAGE_INSTALL_DIR@/hip-lang-targets*.cmake)
++foreach(_target_file ${_target_files})
++ execute_process(COMMAND sed -i s:@CMAKE_INSTALL_PREFIX@:${CPACK_INSTALL_PREFIX}:g ${_target_file})
++endforeach()
++install(FILES ${_target_files} DESTINATION lib/cmake/hip-lang)
++
++set(CPACK_PACKAGE_NAME "hip-runtime-amd")
++set(HCC_PACKAGE_NAME "rocclr")
++set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP: Heterogenous-computing Interface for Portability [RUNTIME - AMD]")
++set(CPACK_PACKAGE_DESCRIPTION "HIP:
++ Heterogenous-computing Interface for Portability [RUNTIME - AMD]")
++set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
++set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
++set(CPACK_PACKAGE_VERSION_MAJOR @HIP_VERSION_MAJOR@)
++set(CPACK_PACKAGE_VERSION_MINOR @HIP_VERSION_MINOR@)
++set(CPACK_PACKAGE_VERSION_PATCH @HIP_VERSION_PATCH@)
++set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_GENERATOR "TGZ;DEB;RPM")
++
++set(CPACK_BINARY_DEB "ON")
++set(CPACK_DEBIAN_PACKAGE_RELEASE @CPACK_DEBIAN_PACKAGE_RELEASE@)
++set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
++set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/postinst;${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr-dev (>= 1.3), rocminfo, comgr (>= 2.0), rocm-llvm, libc6, rocm-core")
++set(CPACK_DEBIAN_PACKAGE_PROVIDES "hip-rocclr (= ${CPACK_PACKAGE_VERSION})")
++set(CPACK_DEBIAN_PACKAGE_REPLACES "hip-rocclr (= ${CPACK_PACKAGE_VERSION})")
++
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_PACKAGE_RELEASE @CPACK_RPM_PACKAGE_RELEASE@)
++set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
++set(CPACK_RPM_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
++set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/postinst")
++set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
++string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
++set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr-dev >= 1.3, rocminfo, comgr >= 2.0, rocm-llvm, rocm-core")
++set(CPACK_RPM_PACKAGE_PROVIDES "hip-rocclr = ${HIP_BASE_VERSION}")
++set(CPACK_RPM_PACKAGE_OBSOLETES "hip-rocclr = ${HIP_BASE_VERSION}")
++set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
++set(CPACK_SOURCE_GENERATOR "TGZ")
++# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
++set(ROCM_DEP_ROCMCORE "@ROCM_DEP_ROCMCORE@")
++if(NOT ROCM_DEP_ROCMCORE)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
++endif()
++
++set ( CPACK_RESOURCE_FILE_LICENSE "@hip_SOURCE_DIR@/LICENSE.txt" )
++# Install license file
++install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
++set(CPACK_RPM_PACKAGE_LICENSE "MIT")
++
++include(CPack)
+diff --git a/packaging/hip-runtime-nvidia.txt b/packaging/hip-runtime-nvidia.txt
+new file mode 100644
+index 00000000..3c7ea963
+--- /dev/null
++++ b/packaging/hip-runtime-nvidia.txt
+@@ -0,0 +1,74 @@
++# Copyright (c) 2016 - 2021 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.
++
++cmake_minimum_required(VERSION 2.8.3)
++project(hip_runtime_nvidia)
++
++#############################
++# Packaging steps
++#############################
++set(CPACK_SET_DESTDIR TRUE)
++set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@ )
++set(CPACK_PACKAGE_NAME "hip-runtime-nvidia")
++set(CPACK_PACKAGE_DESCRIPTION "HIP:
++ Heterogenous-computing Interface for Portability [RUNTIME - NVIDIA]")
++set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP: Heterogenous-computing Interface for Portability [RUNTIME - NVIDIA]")
++set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
++set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
++set(CPACK_PACKAGE_VERSION_MAJOR @HIP_VERSION_MAJOR@)
++set(CPACK_PACKAGE_VERSION_MINOR @HIP_VERSION_MINOR@)
++set(CPACK_PACKAGE_VERSION_PATCH @HIP_VERSION_PATCH@)
++set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_GENERATOR "TGZ;DEB;RPM")
++
++set(CPACK_BINARY_DEB "ON")
++set(CPACK_DEBIAN_PACKAGE_RELEASE @CPACK_DEBIAN_PACKAGE_RELEASE@)
++set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
++set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/postinst;${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_DEBIAN_PACKAGE_DEPENDS "cuda (>= 7.5), rocm-core")
++set(CPACK_DEBIAN_PACKAGE_PROVIDES "hip-nvcc")
++set(CPACK_DEBIAN_PACKAGE_REPLACES "hip-nvcc")
++
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_PACKAGE_RELEASE @CPACK_RPM_PACKAGE_RELEASE@)
++set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
++set(CPACK_RPM_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
++set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/postinst")
++set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE "${PROJECT_BINARY_DIR}/prerm")
++set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
++string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
++set(CPACK_RPM_PACKAGE_PROVIDES "hip-nvcc")
++set(CPACK_RPM_PACKAGE_OBSOLETES "hip-nvcc")
++set(CPACK_RPM_PACKAGE_REQUIRES "cuda >= 7.5, rocm-core")
++set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
++set(CPACK_SOURCE_GENERATOR "TGZ")
++# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
++set(ROCM_DEP_ROCMCORE "@ROCM_DEP_ROCMCORE@")
++if(NOT ROCM_DEP_ROCMCORE)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
++endif()
++
++set ( CPACK_RESOURCE_FILE_LICENSE "@hip_SOURCE_DIR@/LICENSE.txt" )
++# Install license file
++install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
++set(CPACK_RPM_PACKAGE_LICENSE "MIT")
++
++include(CPack)
+diff --git a/packaging/hip-samples.txt b/packaging/hip-samples.txt
+new file mode 100644
+index 00000000..4ccac07b
+--- /dev/null
++++ b/packaging/hip-samples.txt
+@@ -0,0 +1,69 @@
++# Copyright (c) 2016 - 2021 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.
++
++cmake_minimum_required(VERSION 2.8.3)
++project(hip_samples)
++
++install(DIRECTORY @HIP_COMMON_DIR@/samples DESTINATION .)
++
++#############################
++# Packaging steps
++#############################
++set(CPACK_SET_DESTDIR TRUE)
++set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@ )
++set(CPACK_PACKAGE_NAME "hip-samples")
++set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "HIP: Heterogenous-computing Interface for Portability [SAMPLES]")
++set(CPACK_PACKAGE_DESCRIPTION "HIP:
++ Heterogenous-computing Interface for Portability [SAMPLES]")
++set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
++set(CPACK_PACKAGE_CONTACT "HIP Support <hip.support@amd.com>")
++set(CPACK_PACKAGE_VERSION_MAJOR @HIP_VERSION_MAJOR@)
++set(CPACK_PACKAGE_VERSION_MINOR @HIP_VERSION_MINOR@)
++set(CPACK_PACKAGE_VERSION_PATCH @HIP_VERSION_PATCH@)
++set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_PACKAGING_VERSION_PATCH@)
++set(CPACK_GENERATOR "TGZ;DEB;RPM")
++
++set(CPACK_BINARY_DEB "ON")
++set(CPACK_DEBIAN_PACKAGE_RELEASE @CPACK_DEBIAN_PACKAGE_RELEASE@)
++set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
++set(CPACK_DEBIAN_PACKAGE_DEPENDS "hip-dev (= ${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}), rocm-core")
++set(CPACK_DEBIAN_PACKAGE_PROVIDES "hip-samples")
++
++set(CPACK_BINARY_RPM "ON")
++set(CPACK_RPM_PACKAGE_RELEASE @CPACK_RPM_PACKAGE_RELEASE@)
++set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
++set(CPACK_RPM_PACKAGE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}")
++set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
++string(REPLACE "-" "_" HIP_BASE_VERSION ${CPACK_PACKAGE_VERSION})
++set(CPACK_RPM_PACKAGE_REQUIRES "hip-devel = ${HIP_BASE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}, rocm-core")
++set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/opt")
++set(CPACK_SOURCE_GENERATOR "TGZ")
++# Remove dependency on rocm-core if -DROCM_DEP_ROCMCORE=ON not given to cmake
++set(ROCM_DEP_ROCMCORE "@ROCM_DEP_ROCMCORE@")
++if(NOT ROCM_DEP_ROCMCORE)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
++endif()
++
++set ( CPACK_RESOURCE_FILE_LICENSE "@hip_SOURCE_DIR@/LICENSE.txt" )
++# Install license file
++install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/${CPACK_PACKAGE_NAME})
++set(CPACK_RPM_PACKAGE_LICENSE "MIT")
++include(CPack)
+--
+2.34.1
+
Index: files/0002-SWDEV-321116-Allow-disabling-ICD-loader.patch
===================================================================
--- /dev/null
+++ files/0002-SWDEV-321116-Allow-disabling-ICD-loader.patch
@@ -0,0 +1,168 @@
+From cee67d6763e9f0c44e97d867042993b1041f40fb Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <Jeremy.Newton@amd.com>
+Date: Wed, 6 Apr 2022 15:07:13 -0400
+Subject: [PATCH 2/3] SWDEV-321116 - Allow disabling ICD loader
+
+This patch adds an option to allow not building the ICD loader with
+rocm-opencl. This isn't useful for internal use, but distros will want
+this to allow packaging rocm-opencl with their own OCL ICD loader.
+
+Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
+Change-Id: I6006593eceed543cd829e8949ec2256482815673
+---
+ CMakeLists.txt | 23 ++++++++++++-------
+ packaging/CMakeLists.txt | 49 +++++++++++++++++++++++++++-------------
+ 2 files changed, 48 insertions(+), 24 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0612fa2..3bb903a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,11 +10,14 @@ project(rocm-opencl)
+ include(GNUInstallDirs)
+
+ option(BUILD_TESTS "Enable building OpenCL tests" OFF)
++option(BUILD_ICD "Enable building OpenCL ICD Loader" ON)
+ option(EMU_ENV "Enable building for emulation environment" OFF)
+
+
+ set(OPENCL_ICD_LOADER_HEADERS_DIR "${CMAKE_CURRENT_LIST_DIR}/khronos/headers/opencl2.2" CACHE PATH "")
+-add_subdirectory(khronos/icd)
++if(BUILD_ICD)
++ add_subdirectory(khronos/icd)
++endif()
+ add_subdirectory(amdocl)
+ add_subdirectory(tools/clinfo)
+ add_subdirectory(tools/cltrace)
+@@ -52,8 +55,10 @@ if (DEFINED ROCM_PATCH_VERSION)
+ set(OPENCL_AMD_ICD_FILE "amdocl64_${ROCM_PATCH_VERSION}.icd")
+ endif()
+
+-get_target_property(OPENCL_LIB_VERSION_MAJOR OpenCL SOVERSION)
+-get_target_property(OPENCL_LIB_VERSION_STRING OpenCL VERSION)
++if(BUILD_ICD)
++ get_target_property(OPENCL_LIB_VERSION_MAJOR OpenCL SOVERSION)
++ get_target_property(OPENCL_LIB_VERSION_STRING OpenCL VERSION)
++endif()
+
+ #Set Package Version
+ set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
+@@ -71,11 +76,13 @@ message (STATUS "ROCM Installation path(ROCM_PATH): ${ROCM_PATH}")
+
+ #Package: rocm-opencl,rocm-opencl-dev/devel,rocm-ocl-icd
+
+-set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/rocm-ocl-icd)
+-configure_file(packaging/rocm-ocl-icd.postinst ${BUILD_DIR}/postinst @ONLY)
+-configure_file(packaging/rocm-ocl-icd.prerm ${BUILD_DIR}/prerm @ONLY)
+-configure_file(packaging/rocm-ocl-icd.rpm_post ${BUILD_DIR}/rpm_post @ONLY)
+-configure_file(packaging/rocm-ocl-icd.rpm_postun ${BUILD_DIR}/rpm_postun @ONLY)
++if(BUILD_ICD)
++ set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/packages/rocm-ocl-icd)
++ configure_file(packaging/rocm-ocl-icd.postinst ${BUILD_DIR}/postinst @ONLY)
++ configure_file(packaging/rocm-ocl-icd.prerm ${BUILD_DIR}/prerm @ONLY)
++ configure_file(packaging/rocm-ocl-icd.rpm_post ${BUILD_DIR}/rpm_post @ONLY)
++ configure_file(packaging/rocm-ocl-icd.rpm_postun ${BUILD_DIR}/rpm_postun @ONLY)
++endif()
+
+ add_subdirectory(packaging)
+
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+index 2b6fa77..ab8fed2 100644
+--- a/packaging/CMakeLists.txt
++++ b/packaging/CMakeLists.txt
+@@ -1,7 +1,10 @@
+ cmake_minimum_required(VERSION 3.5.1)
+ include(GNUInstallDirs)
+
+-set(CPACK_COMPONENTS_ALL binary dev icd)
++set(CPACK_COMPONENTS_ALL binary dev)
++if(BUILD_ICD)
++ string ( APPEND CPACK_COMPONENTS_ALL " icd" )
++endif()
+ set(CPACK_DEB_COMPONENT_INSTALL ON)
+ set(CPACK_RPM_COMPONENT_INSTALL ON)
+
+@@ -17,8 +20,10 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2/CL
+ PATTERN cl_dx9_media_sharing.h EXCLUDE
+ PATTERN cl_egl.h EXCLUDE )
+
+-install(TARGETS OpenCL DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT icd )
+-install(FILES ${CMAKE_SOURCE_DIR}/khronos/icd/LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/rocm-ocl-icd COMPONENT icd)
++if(BUILD_ICD)
++ install(TARGETS OpenCL DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT icd )
++ install(FILES ${CMAKE_SOURCE_DIR}/khronos/icd/LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/rocm-ocl-icd COMPONENT icd)
++endif()
+
+
+ # Generic CPACK variables
+@@ -45,11 +50,19 @@ endif()
+ message("Using CPACK_DEBIAN_PACKAGE_RELEASE ${CPACK_DEBIAN_PACKAGE_RELEASE}")
+
+ set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
+-set(CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS "rocm-ocl-icd, libelf-dev, comgr, hsa-rocr, rocm-core")
++if(BUILD_ICD)
++ set(CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS "rocm-ocl-icd, libelf-dev, comgr, hsa-rocr, rocm-core")
++else()
++ set(CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS "ocl-icd-libopencl1, libelf-dev, comgr, hsa-rocr, rocm-core")
++endif()
+
+ # RPM CPACK variables
+ set(CPACK_BINARY_RPM "ON")
+-set(CPACK_RPM_BINARY_PACKAGE_REQUIRES "rocm-ocl-icd, comgr, hsa-rocr, rocm-core")
++if(BUILD_ICD)
++ set(CPACK_RPM_BINARY_PACKAGE_REQUIRES "rocm-ocl-icd, comgr, hsa-rocr, rocm-core")
++else()
++ set(CPACK_RPM_BINARY_PACKAGE_REQUIRES "ocl-icd, comgr, hsa-rocr, rocm-core")
++endif()
+
+ #Unable to set CPACK_RPM_BIANRY_PACKAGE_LICENSE to control individual pacakge license
+ #Hence combining the license for BINARY,DEV,ICD to one
+@@ -70,21 +83,23 @@ set(CPACK_RPM_DEV_PACKAGE_REQUIRES "rocm-opencl, hsa-rocr-devel, rocm-core")
+ #############################
+
+ # Debian CPACK variables
+-set(CPACK_ICD_DEB "ON")
+-set(CPACK_DEBIAN_ICD_PACKAGE_NAME "rocm-ocl-icd")
++if(BUILD_ICD)
++ set(CPACK_ICD_DEB "ON")
++ set(CPACK_DEBIAN_ICD_PACKAGE_NAME "rocm-ocl-icd")
+
+-set(CPACK_DEBIAN_ICD_PACKAGE_CONTROL_EXTRA "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/postinst;${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/prerm")
+-set(CPACK_DEBIAN_ICD_PACKAGE_DEPENDS "rocm-core")
++ set(CPACK_DEBIAN_ICD_PACKAGE_CONTROL_EXTRA "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/postinst;${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/prerm")
++ set(CPACK_DEBIAN_ICD_PACKAGE_DEPENDS "rocm-core")
+
+ # RPM CPACK variables
+-set(CPACK_ICD_RPM "ON")
+-set(CPACK_RPM_ICD_PACKAGE_NAME "rocm-ocl-icd")
++ set(CPACK_ICD_RPM "ON")
++ set(CPACK_RPM_ICD_PACKAGE_NAME "rocm-ocl-icd")
+
+
+
+-set(CPACK_RPM_ICD_POST_INSTALL_SCRIPT_FILE "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/rpm_post")
+-set(CPACK_RPM_ICD_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/rpm_postun")
+-set(CPACK_RPM_ICD_PACKAGE_REQUIRES "rocm-core")
++ set(CPACK_RPM_ICD_POST_INSTALL_SCRIPT_FILE "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/rpm_post")
++ set(CPACK_RPM_ICD_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_BINARY_DIR}/packages/rocm-ocl-icd/rpm_postun")
++ set(CPACK_RPM_ICD_PACKAGE_REQUIRES "rocm-core")
++endif()
+
+ if(DEFINED ENV{CPACK_RPM_PACKAGE_RELEASE})
+ set(CPACK_RPM_PACKAGE_RELEASE $ENV{CPACK_RPM_PACKAGE_RELEASE})
+@@ -113,8 +128,10 @@ if(NOT ROCM_DEP_ROCMCORE)
+ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS ${CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS})
+ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_DEV_PACKAGE_REQUIRES ${CPACK_RPM_DEV_PACKAGE_REQUIRES})
+ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_DEV_PACKAGE_DEPENDS ${CPACK_DEBIAN_DEV_PACKAGE_DEPENDS})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_ICD_PACKAGE_REQUIRES ${CPACK_RPM_ICD_PACKAGE_REQUIRES})
+- string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_ICD_PACKAGE_DEPENDS ${CPACK_DEBIAN_ICD_PACKAGE_DEPENDS})
++ if(BUILD_ICD)
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_RPM_ICD_PACKAGE_REQUIRES ${CPACK_RPM_ICD_PACKAGE_REQUIRES})
++ string(REGEX REPLACE ",? ?rocm-core" "" CPACK_DEBIAN_ICD_PACKAGE_DEPENDS ${CPACK_DEBIAN_ICD_PACKAGE_DEPENDS})
++ endif()
+ endif()
+
+ include(CPack)
+--
+2.35.1
+
Index: files/0003-SWDEV-321116-Drop-unnecessary-ICD-include.patch
===================================================================
--- /dev/null
+++ files/0003-SWDEV-321116-Drop-unnecessary-ICD-include.patch
@@ -0,0 +1,44 @@
+From a0e5d11a28c6bc5bcc72927e06b643eb39ea3af3 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <Jeremy.Newton@amd.com>
+Date: Wed, 6 Apr 2022 18:37:47 -0400
+Subject: [PATCH 3/3] SWDEV-321116 - Drop unnecessary ICD include
+
+This looks unused. This should allow building rocm-opencl without any
+dependency on any particular OCL ICD.
+
+Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
+Change-Id: Ib9229ede8400fd0e883275659ab99513b03952cb
+---
+ amdocl/cl_execute.cpp | 2 --
+ amdocl/cl_icd.cpp | 2 --
+ 2 files changed, 4 deletions(-)
+
+diff --git a/amdocl/cl_execute.cpp b/amdocl/cl_execute.cpp
+index 71fe535..e1d5be2 100644
+--- a/amdocl/cl_execute.cpp
++++ b/amdocl/cl_execute.cpp
+@@ -27,8 +27,6 @@
+ #include "platform/program.hpp"
+ #include "os/os.hpp"
+
+-#include <icd/loader/icd_dispatch.h>
+-
+ /*! \addtogroup API
+ * @{
+ *
+diff --git a/amdocl/cl_icd.cpp b/amdocl/cl_icd.cpp
+index 2a4f3af..4fce08b 100644
+--- a/amdocl/cl_icd.cpp
++++ b/amdocl/cl_icd.cpp
+@@ -27,8 +27,6 @@
+ #include "cl_d3d11_amd.hpp"
+ #endif //_WIN32
+
+-#include <icd/loader/icd_dispatch.h>
+-
+ #include <mutex>
+
+ amd::PlatformIDS amd::PlatformID::Platform = //{ NULL };
+--
+2.35.1
+
Index: files/0004-SWDEV-336248-Don-t-exclude-cl_egl.h-from-install.patch
===================================================================
--- /dev/null
+++ files/0004-SWDEV-336248-Don-t-exclude-cl_egl.h-from-install.patch
@@ -0,0 +1,37 @@
+From 59e15ab918ee1823e1d289585d75686032a08909 Mon Sep 17 00:00:00 2001
+From: Jeremy Newton <Jeremy.Newton@amd.com>
+Date: Mon, 25 Apr 2022 12:33:46 -0400
+Subject: [PATCH 4/4] SWDEV-336248 - Don't exclude cl_egl.h from install
+
+cl_icd.h includes cl_egl.h, but cl_egl.h is excluded from install. It
+was reported by the community that including cl_icd.h would error due to
+the missing cl_egl.h file.
+
+I'm assuming that cl_egl.h was excluded because EGL isn't important for
+ROCm. Since cl_icd.h has some important typedefs, it makes sense just
+to include cl_egl.h, which seems to be a common practice in open source
+projects.
+
+Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
+Change-Id: I506257c2dc51512ec8e11b1e5dadbe6e48ad785b
+---
+ packaging/CMakeLists.txt | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+index b6d206a..60050f3 100644
+--- a/packaging/CMakeLists.txt
++++ b/packaging/CMakeLists.txt
+@@ -18,8 +18,7 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2/CL
+ USE_SOURCE_PERMISSIONS
+ PATTERN cl_d3d10.h EXCLUDE
+ PATTERN cl_d3d11.h EXCLUDE
+- PATTERN cl_dx9_media_sharing.h EXCLUDE
+- PATTERN cl_egl.h EXCLUDE )
++ PATTERN cl_dx9_media_sharing.h EXCLUDE )
+
+ if(BUILD_ICD)
+ install(TARGETS OpenCL DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT icd )
+--
+2.34.1
+
Index: files/0007-isystem-removal.patch
===================================================================
--- /dev/null
+++ files/0007-isystem-removal.patch
@@ -0,0 +1,28 @@
+Description: -isystem breaks proper order of C and C++ include paths
+ The addition of |-isystem "$HIP_CLANG_INCLUDE_PATH/.."| to HIPCXXFLAGS and
+ HIPCFLAGS needs to be removed from hipcc [1]. Once HIP is installed in /usr,
+ hipcc ends up passing -isystem /usr/include, which breakes the proper order of
+ C and C++ include paths. If I understand correctly, it's unnecessary for hipcc
+ to pass these flags anyway. A patch to remove them will eventually be made
+ upstream.
+Author: Cordell Bloor <cgmb-deb@slerp.xyz>
+Forwarded: https://lists.debian.org/debian-ai/2022/05/msg00031.html
+Reviewed-by: Étienne Mollier <emollier@debian.org>
+Last-Update: 2022-06-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/bin/hipcc.pl
++++ b/bin/hipcc.pl
+@@ -225,8 +225,10 @@
+ }
+
+ # Add paths to common HIP includes:
+-$HIPCXXFLAGS .= " -isystem \"$HIP_INCLUDE_PATH\"" ;
+-$HIPCFLAGS .= " -isystem \"$HIP_INCLUDE_PATH\"" ;
++if ($HIP_INCLUDE_PATH ne "/usr/include") {
++ $HIPCXXFLAGS .= " -isystem \"$HIP_INCLUDE_PATH\"" ;
++ $HIPCFLAGS .= " -isystem \"$HIP_INCLUDE_PATH\"" ;
++}
+
+ my $compileOnly = 0;
+ my $needCXXFLAGS = 0; # need to add CXX flags to compile step
Index: files/0009-devicelib-searchpath.patch
===================================================================
--- /dev/null
+++ files/0009-devicelib-searchpath.patch
@@ -0,0 +1,31 @@
+Description: remove check on amdgcn/bitcode
+ The device libraries are not found correctly by default and the if (NOT
+ EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode) check is triggered [6]. I
+ think the goal upstream is to eventually remove this from the hip::device
+ interface entirely, but for now just correcting the search paths would be a
+ good step.
+Author: Cordell Bloor <cgmb-deb@slerp.xyz>
+Forwarded: https://lists.debian.org/debian-ai/2022/05/msg00031.html
+Reviewed-by: Étienne Mollier <emollier@debian.org>
+Last-Update: 2022-06-04
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/hip-config.cmake.in
++++ b/hip-config.cmake.in
+@@ -234,16 +234,6 @@
+
+ if (NOT compilePropIsSet)
+ hip_add_interface_compile_flags(hip::device -x hip)
+- if (NOT EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode)
+- # This path is to support an older build of the device library
+- # TODO: To be removed in the future.
+- if(WIN32)
+- hip_add_interface_compile_flags(hip::device -fms-extensions -fms-compatibility)
+- hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${HIP_PATH}/lib/bitcode\")
+- else()
+- hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${AMD_DEVICE_LIBS_PREFIX}/lib\")
+- endif()
+- endif()
+ endif()
+
+ hip_add_interface_link_flags(hip::device --hip-link)
Index: files/series
===================================================================
--- /dev/null
+++ files/series
@@ -0,0 +1,5 @@
+0001-Revert-hip-Fix-and-install-cmake-targets-for-hip-pac.patch
+0002-Revert-hip-Switch-to-component-based-packaging.patch
+0002-Fix-CL-icd-header-include.patch
+0001-Use-GNUInstallDirs.patch
+0009-devicelib-searchpath.patch
Index: package.yml
===================================================================
--- /dev/null
+++ package.yml
@@ -0,0 +1,94 @@
+name : rocm-hip
+version : 5.1.3
+release : 1
+source :
+ - https://github.com/ROCm-Developer-Tools/ROCclr/archive/refs/tags/rocm-5.1.3.tar.gz#ROCclr-5.1.3.tar.gz : ddee63cdc6515c90bab89572b13e1627b145916cb8ede075ef8446cbb83f0a48
+ - https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/refs/tags/rocm-5.1.3.tar.gz#ROCm-OpenCL-Runtime-5.1.3.tar.gz : 44a7fac721abcd93470e1a7e466bdea0c668c253dee93e4f1ea9a72dbce4ba31
+ - https://github.com/ROCm-Developer-Tools/hipamd/archive/refs/tags/rocm-5.1.3.tar.gz#hipamd-5.1.3.tar.gz : 707f2217f0e7aeb62d7b76830a271056d665542bf5f7a54e40adf4d5f299ca93
+ - https://github.com/ROCm-Developer-Tools/HIP/archive/refs/tags/rocm-5.1.3.tar.gz#HIP-5.1.3.tar.gz : ce755ee6e407904eba3f6b3c9efcdd48eb4f58a26b06e1892166d05f19a75973
+license : MIT
+component : programming.devel
+clang : yes
+summary : AMD ROCm HIP
+description: |
+ HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.
+extract : False
+builddeps :
+ - pkgconfig(gl)
+ - pkgconfig(libhsakmt)
+ - pkgconfig(x11-xcb)
+ - rocminfo
+ - rocm-cmake
+ - rocm-compilersupport-devel
+ - rocm-device-libs-devel
+ - rocm-opencl-devel
+ - rocm-runtime-devel
+rundeps :
+ - rocminfo
+environment: |
+ export HIP_CLANG_PATH="/usr/bin"
+setup : |
+ tar -xvzf $sources/ROCclr-%version%.tar.gz
+ tar -xvzf $sources/ROCm-OpenCL-Runtime-%version%.tar.gz
+ tar -xvzf $sources/hipamd-%version%.tar.gz
+ tar -xvzf $sources/HIP-%version%.tar.gz
+ pushd ROCclr-rocm-%version%
+ %patch -p1 < $pkgfiles/0001-enable-gfx800.patch
+ %patch -p1 < $pkgfiles/0001-SWDEV-323669-Fix-linux-arch-detection.patch
+ echo "set_target_properties(rocclr PROPERTIES VERSION 5.1.3 SOVERSION 5.1)" \
+ >> cmake/ROCclr.cmake
+ popd
+ pushd ROCm-OpenCL-Runtime-rocm-%version%
+ %patch -p1 < $pkgfiles/0001-SWDEV-321118-Use-GNUInstallDirs.patch
+ %patch -p1 < $pkgfiles/0002-SWDEV-321116-Allow-disabling-ICD-loader.patch
+ %patch -p1 < $pkgfiles/0003-SWDEV-321116-Drop-unnecessary-ICD-include.patch
+ %patch -p1 < $pkgfiles/0004-SWDEV-336248-Don-t-exclude-cl_egl.h-from-install.patch
+ echo "set_target_properties(cltrace PROPERTIES VERSION 5.1.3 SOVERSION 5.1)" \
+ >> tools/cltrace/CMakeLists.txt
+ ls -d khronos/* | grep -v headers | xargs rm -r
+ ls -d khronos/headers/* | grep -v opencl2.2 | xargs rm -r
+ rm -r khronos/headers/*/tests/
+ popd
+
+ pushd HIP-rocm-%version%
+ %patch -p1 < $pkgfiles/0007-isystem-removal.patch
+ popd
+ cd hipamd-rocm-%version%
+ %apply_patches
+
+ #soname is broken when building from tar, upstream is fixing the issue:
+ sed -i 's/-${HIP_VERSION_GITHASH}//' CMakeLists.txt
+
+ #HIP requires RPATH
+ sed -i "/CMAKE_INSTALL_RPATH/d" CMakeLists.txt
+
+ mkdir build
+ cd build
+ %cmake -S.. -B. \
+ -DAMD_OPENCL_PATH=%workdir%/ROCm-OpenCL-Runtime-rocm-%version% \
+ -DROCCLR_PATH=%workdir%/ROCclr-rocm-%version% \
+ -DHIP_COMMON_DIR=%workdir%/HIP-rocm-%version% \
+ -DCMAKE_INSTALL_LIBDIR=%libdir% \
+ -DHIP_COMPILER=clang \
+ -DHIP_VERSION_BUILD_ID=0 \
+ -DROCM_PATH=%PREFIX% \
+ #-DCMAKE_HIP_ARCHITECTURES=gfx906
+build : |
+ cd hipamd-rocm-%version%/build
+ %make
+install : |
+ cd hipamd-rocm-%version%/build
+ %make_install
+
+ #hip installs some cmake modules incorrectly:
+ mv %installroot%/usr/cmake %installroot%%libdir%/cmake/Modules
+
+ #make hip-config.cmake less broken, allowing to build stuff that relies on hip
+ sed -i 's|${_IMPORT_PREFIX}/../include|${_IMPORT_PREFIX}/include|g' %installroot%%libdir%/cmake/hip/hip-config.cmake
+ sed -i 's|"${ROCM_PATH}/llvm"|"/usr"|g' %installroot%%libdir%/cmake/hip/hip-config.cmake
+
+ #https://salsa.debian.org/rocm-team/rocm-hipamd/-/blob/master/debian/patches/0003-hip-config.cmake.patch
+ sed -i 's|"${AMD_DEVICE_LIBS_PREFIX}/lib"|"${AMD_DEVICE_LIBS_PREFIX}"|g' %installroot%%libdir%/cmake/hip/hip-config.cmake
+
+ # https://github.com/ROCm-Developer-Tools/HIP/issues/2678
+ sed -i '/__noinline__/d' %installroot%/usr/include/hip/amd_detail/host_defines.h
Index: pspec_x86_64.xml
===================================================================
--- /dev/null
+++ pspec_x86_64.xml
@@ -0,0 +1,140 @@
+<PISI>
+ <Source>
+ <Name>rocm-hip</Name>
+ <Packager>
+ <Name>Jacek Jagosz</Name>
+ <Email>jacek.jagosz@outlook.com</Email>
+ </Packager>
+ <License>MIT</License>
+ <PartOf>programming.devel</PartOf>
+ <Summary xml:lang="en">AMD ROCm HIP</Summary>
+ <Description xml:lang="en">HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.
+</Description>
+ <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://getsol.us/sources/README.Solus</Archive>
+ </Source>
+ <Package>
+ <Name>rocm-hip</Name>
+ <Summary xml:lang="en">AMD ROCm HIP</Summary>
+ <Description xml:lang="en">HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.
+</Description>
+ <PartOf>programming.devel</PartOf>
+ <Files>
+ <Path fileType="executable">/usr/bin/.hipVersion</Path>
+ <Path fileType="executable">/usr/bin/hip_embed_pch.sh</Path>
+ <Path fileType="executable">/usr/bin/hipcc</Path>
+ <Path fileType="executable">/usr/bin/hipcc.pl</Path>
+ <Path fileType="executable">/usr/bin/hipcc_cmake_linker_helper</Path>
+ <Path fileType="executable">/usr/bin/hipconfig</Path>
+ <Path fileType="executable">/usr/bin/hipconfig.pl</Path>
+ <Path fileType="executable">/usr/bin/hipdemangleatp</Path>
+ <Path fileType="executable">/usr/bin/hipvars.pm</Path>
+ <Path fileType="executable">/usr/bin/roc-obj</Path>
+ <Path fileType="executable">/usr/bin/roc-obj-extract</Path>
+ <Path fileType="executable">/usr/bin/roc-obj-ls</Path>
+ <Path fileType="library">/usr/lib64/.hipInfo</Path>
+ <Path fileType="library">/usr/lib64/libamdhip64.so.5</Path>
+ <Path fileType="library">/usr/lib64/libamdhip64.so.5.1.20532</Path>
+ <Path fileType="library">/usr/lib64/libhiprtc-builtins.so.5</Path>
+ <Path fileType="library">/usr/lib64/libhiprtc-builtins.so.5.1.20532</Path>
+ </Files>
+ </Package>
+ <Package>
+ <Name>rocm-hip-devel</Name>
+ <Summary xml:lang="en">Development files for rocm-hip</Summary>
+ <Description xml:lang="en">HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.
+</Description>
+ <PartOf>programming.devel</PartOf>
+ <RuntimeDependencies>
+ <Dependency release="1">rocm-hip</Dependency>
+ </RuntimeDependencies>
+ <Files>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_channel_descriptor.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_device_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_atomic.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_common.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_complex.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_cooperative_groups.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_fp16.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_runtime.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_unsafe_atomics.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_hip_vector_types.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_math_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/amd_surface_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/concepts.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/device_library_decls.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/functional_grid_launch.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/grid_launch.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/grid_launch.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/grid_launch_GGL.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/helpers.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_cooperative_groups_helper.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_fp16_gcc.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_fp16_math_fwd.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_ldg.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_memory.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_prof_str.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hip_runtime_prof.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/host_defines.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/hsa_helpers.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/llvm_intrinsics.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/macro_based_grid_launch.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/math_fwd.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/ockl_image.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/program_state.hpp</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/texture_fetch_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/amd_detail/texture_indirect_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/channel_descriptor.h</Path>
+ <Path fileType="header">/usr/include/hip/device_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/driver_types.h</Path>
+ <Path fileType="header">/usr/include/hip/hcc_detail</Path>
+ <Path fileType="header">/usr/include/hip/hip_bfloat16.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_common.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_complex.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_cooperative_groups.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_ext.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_fp16.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_hcc.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_profile.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_runtime.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_runtime_api.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_texture_types.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_vector_types.h</Path>
+ <Path fileType="header">/usr/include/hip/hip_version.h</Path>
+ <Path fileType="header">/usr/include/hip/hiprtc.h</Path>
+ <Path fileType="header">/usr/include/hip/library_types.h</Path>
+ <Path fileType="header">/usr/include/hip/math_functions.h</Path>
+ <Path fileType="header">/usr/include/hip/nvcc_detail</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_channel_descriptor.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hip_complex.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hip_cooperative_groups.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hip_runtime.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hip_runtime_api.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hip_texture_types.h</Path>
+ <Path fileType="header">/usr/include/hip/nvidia_detail/nvidia_hiprtc.h</Path>
+ <Path fileType="header">/usr/include/hip/surface_types.h</Path>
+ <Path fileType="header">/usr/include/hip/texture_types.h</Path>
+ <Path fileType="library">/usr/lib64/cmake/Modules/FindHIP.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/Modules/FindHIP/run_hipcc.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/Modules/FindHIP/run_make2cmake.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip-lang/hip-lang-config-version.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip-lang/hip-lang-config.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip-lang/hip-lang-targets-relwithdebinfo.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip-lang/hip-lang-targets.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip/hip-config-version.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip/hip-config.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip/hip-targets-relwithdebinfo.cmake</Path>
+ <Path fileType="library">/usr/lib64/cmake/hip/hip-targets.cmake</Path>
+ <Path fileType="library">/usr/lib64/libamdhip64.so</Path>
+ <Path fileType="library">/usr/lib64/libhiprtc-builtins.so</Path>
+ </Files>
+ </Package>
+ <History>
+ <Update release="1">
+ <Date>2022-07-02</Date>
+ <Version>5.1.3</Version>
+ <Comment>Packaging update</Comment>
+ <Name>Jacek Jagosz</Name>
+ <Email>jacek.jagosz@outlook.com</Email>
+ </Update>
+ </History>
+</PISI>
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 4, 4:04 PM (4 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5808770
Default Alt Text
D13172.id32649.diff (122 KB)

Event Timeline