Skip to content

Commit

Permalink
rocm-runtime: update to 6.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Zhao <git@gzgz.dev>
  • Loading branch information
GZGavinZhao committed Apr 7, 2024
1 parent 0ef344c commit 9853782
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 37 deletions.
16 changes: 16 additions & 0 deletions packages/r/rocm-runtime/abi_symbols
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ libhsa-runtime64.so.1:hsa_amd_ipc_memory_detach
libhsa-runtime64.so.1:hsa_amd_ipc_signal_attach
libhsa-runtime64.so.1:hsa_amd_ipc_signal_create
libhsa-runtime64.so.1:hsa_amd_memory_async_copy
libhsa-runtime64.so.1:hsa_amd_memory_async_copy_on_engine
libhsa-runtime64.so.1:hsa_amd_memory_async_copy_rect
libhsa-runtime64.so.1:hsa_amd_memory_copy_engine_status
libhsa-runtime64.so.1:hsa_amd_memory_fill
libhsa-runtime64.so.1:hsa_amd_memory_lock
libhsa-runtime64.so.1:hsa_amd_memory_lock_to_pool
Expand All @@ -35,6 +37,8 @@ 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_pointer_info_set_userdata
libhsa-runtime64.so.1:hsa_amd_portable_close_dmabuf
libhsa-runtime64.so.1:hsa_amd_portable_export_dmabuf
libhsa-runtime64.so.1:hsa_amd_profiling_async_copy_enable
libhsa-runtime64.so.1:hsa_amd_profiling_convert_tick_to_system_domain
libhsa-runtime64.so.1:hsa_amd_profiling_get_async_copy_time
Expand All @@ -55,6 +59,18 @@ libhsa-runtime64.so.1:hsa_amd_spm_set_dest_buffer
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_amd_vmem_address_free
libhsa-runtime64.so.1:hsa_amd_vmem_address_reserve
libhsa-runtime64.so.1:hsa_amd_vmem_export_shareable_handle
libhsa-runtime64.so.1:hsa_amd_vmem_get_access
libhsa-runtime64.so.1:hsa_amd_vmem_get_alloc_properties_from_handle
libhsa-runtime64.so.1:hsa_amd_vmem_handle_create
libhsa-runtime64.so.1:hsa_amd_vmem_handle_release
libhsa-runtime64.so.1:hsa_amd_vmem_import_shareable_handle
libhsa-runtime64.so.1:hsa_amd_vmem_map
libhsa-runtime64.so.1:hsa_amd_vmem_retain_alloc_handle
libhsa-runtime64.so.1:hsa_amd_vmem_set_access
libhsa-runtime64.so.1:hsa_amd_vmem_unmap
libhsa-runtime64.so.1:hsa_cache_get_info
libhsa-runtime64.so.1:hsa_code_object_deserialize
libhsa-runtime64.so.1:hsa_code_object_destroy
Expand Down
20 changes: 13 additions & 7 deletions packages/r/rocm-runtime/abi_used_symbols
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
UNKNOWN:amdgpu_device_deinitialize
UNKNOWN:amdgpu_device_initialize
UNKNOWN:amdgpu_bo_export
UNKNOWN:amdgpu_bo_free
UNKNOWN:amdgpu_bo_import
UNKNOWN:amdgpu_bo_va_op
UNKNOWN:amdgpu_query_gpu_info
ld-linux-x86-64.so.2:__tls_get_addr
libc.so.6:__cxa_atexit
Expand All @@ -20,6 +22,7 @@ libc.so.6:close
libc.so.6:dl_iterate_phdr
libc.so.6:dladdr
libc.so.6:dlclose
libc.so.6:dlerror
libc.so.6:dlinfo
libc.so.6:dlopen
libc.so.6:dlsym
Expand All @@ -45,9 +48,11 @@ libc.so.6:memcmp
libc.so.6:memcpy
libc.so.6:memmove
libc.so.6:memset
libc.so.6:mkstemp
libc.so.6:mmap
libc.so.6:munmap
libc.so.6:open
libc.so.6:perror
libc.so.6:poll
libc.so.6:printf
libc.so.6:pthread_attr_destroy
Expand Down Expand Up @@ -92,15 +97,13 @@ libc.so.6:strlen
libc.so.6:syscall
libc.so.6:sysconf
libc.so.6:sysinfo
libc.so.6:tempnam
libc.so.6:tolower
libc.so.6:toupper
libc.so.6:uname
libc.so.6:unlink
libc.so.6:usleep
libc.so.6:write
libdrm.so.2:drmClose
libdrm.so.2:drmOpenRender
libdrm.so.2:drmCommandWriteRead
libelf.so.1:elf_begin
libelf.so.1:elf_end
libelf.so.1:elf_errmsg
Expand Down Expand Up @@ -132,7 +135,9 @@ libhsakmt.so.1:hsaKmtCreateQueue
libhsakmt.so.1:hsaKmtDeregisterMemory
libhsakmt.so.1:hsaKmtDestroyEvent
libhsakmt.so.1:hsaKmtDestroyQueue
libhsakmt.so.1:hsaKmtExportDMABufHandle
libhsakmt.so.1:hsaKmtFreeMemory
libhsakmt.so.1:hsaKmtGetAMDGPUDeviceHandle
libhsakmt.so.1:hsaKmtGetClockCounters
libhsakmt.so.1:hsaKmtGetNodeCacheProperties
libhsakmt.so.1:hsaKmtGetNodeIoLinkProperties
Expand All @@ -151,6 +156,7 @@ libhsakmt.so.1:hsaKmtRegisterMemoryWithFlags
libhsakmt.so.1:hsaKmtRegisterSharedHandle
libhsakmt.so.1:hsaKmtRegisterSharedHandleToNodes
libhsakmt.so.1:hsaKmtReleaseSystemProperties
libhsakmt.so.1:hsaKmtReplaceAsanHeaderPage
libhsakmt.so.1:hsaKmtRuntimeDisable
libhsakmt.so.1:hsaKmtRuntimeEnable
libhsakmt.so.1:hsaKmtSPMAcquire
Expand All @@ -167,8 +173,8 @@ libhsakmt.so.1:hsaKmtSetXNACKMode
libhsakmt.so.1:hsaKmtShareMemory
libhsakmt.so.1:hsaKmtUnmapMemoryToGPU
libhsakmt.so.1:hsaKmtUpdateQueue
libhsakmt.so.1:hsaKmtWaitOnEvent
libhsakmt.so.1:hsaKmtWaitOnMultipleEvents
libhsakmt.so.1:hsaKmtWaitOnEvent_Ext
libhsakmt.so.1:hsaKmtWaitOnMultipleEvents_Ext
libm.so.6:pow
libstdc++.so.6:_ZNKSt12__basic_fileIcE7is_openEv
libstdc++.so.6:_ZNKSt5ctypeIcE13_M_widen_initEv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ index e9a48f3..68ae0b0 100755
+ return true; // gfx900 compatible
+ }
+ } else if (code_object_isa.GetMajorVersion() == 10) {
+ if (code_object_isa.GetMinorVersion() == 0) {
+ const std::array<int32_t, 2> equivalent_gfx101x = { 0, 2 };
+ if (code_object_isa.GetMinorVersion() == 1) {
+ const std::array<int32_t, 3> equivalent_gfx101x = { 0, 1, 2 };
+ if (Contains(equivalent_gfx101x, code_object_isa.GetStepping()) &&
+ Contains(equivalent_gfx101x, agent_isa.GetStepping())) {
+ return true; // gfx1010 compatible
Expand Down
32 changes: 9 additions & 23 deletions packages/r/rocm-runtime/package.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name : rocm-runtime
version : 5.5.1
release : 3
version : 6.0.0
release : 6
source :
- https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/refs/tags/rocm-5.5.1.tar.gz : 53d84ad5ba5086ed4ad67ad892c52c0e4eba8ddfa85c2dd341bf825f4d5fe4ee
- https://github.com/ROCm/ROCR-Runtime/archive/refs/tags/rocm-6.0.0.tar.gz : 99e8fa1af52d0bf382f28468e1a345af1ff3452c35914a6a7b5eeaf69fc568db
homepage : https://github.com/RadeonOpenCompute/ROCR-Runtime
license : NCSA
component : programming.devel
Expand All @@ -16,29 +16,15 @@ builddeps :
- pkgconfig(libhsakmt)
- pkgconfig(numa)
- rocm-device-libs-devel
- vim # Bruh
- rocm-llvm
- vim # they need the xxd executable during build
environment: |
declare -A rocm_vars
rocm_vars=(
["HIP_DEVICE_LIB_PATH"]="/usr/lib64/amdgcn/bitcode"
["HIP_CLANG_PATH"]="/usr/bin"
["HIP_COMPILER"]="clang"
["HIP_LIB_PATH"]="/usr/lib64"
["HIP_PATH"]="/usr"
["HIP_PLATFORM"]="amd"
["HIP_ROCCLR_HOME"]="/usr"
["ROCM_PATH"]="/usr"
)
for name in "${!rocm_vars[@]}"; do
echo "Setting $name to ${rocm_vars[$name]}";
export "$name"="${rocm_vars[$name]}";
export ROCM_CMAKE_FLAGS="$ROCM_CMAKE_FLAGS -D$name=${rocm_vars[$name]}";
done
export ROCM_PATH=/usr
export CMAKE_PREFIX_PATH=/usr/lib64/llvm-rocm
export HIP_DEVICE_LIB_PATH=/usr/lib64/amdgcn/bitcode
setup : |
%patch -p1 -i $pkgfiles/0004-extend-isa-compatibility-check.patch
%cmake_ninja $ROCM_CMAKE_FLAGS -S src -DBITCODE_DIR="/usr/share/amdgcn/bitcode" -DINCLUDE_PATH_COMPATIBILITY=OFF
%cmake_ninja -S src -L
build : |
%ninja_build
install : |
Expand Down
10 changes: 5 additions & 5 deletions packages/r/rocm-runtime/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PartOf>programming.devel</PartOf>
<Files>
<Path fileType="library">/usr/lib64/libhsa-runtime64.so.1</Path>
<Path fileType="library">/usr/lib64/libhsa-runtime64.so.1.8.0</Path>
<Path fileType="library">/usr/lib64/libhsa-runtime64.so.1.12.0</Path>
<Path fileType="doc">/usr/share/doc/hsa-runtime64/LICENSE.md</Path>
</Files>
</Package>
Expand All @@ -32,7 +32,7 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="3">rocm-runtime</Dependency>
<Dependency release="6">rocm-runtime</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/hsa/Brig.h</Path>
Expand All @@ -56,9 +56,9 @@
</Files>
</Package>
<History>
<Update release="3">
<Date>2023-10-29</Date>
<Version>5.5.1</Version>
<Update release="6">
<Date>2024-02-19</Date>
<Version>6.0.0</Version>
<Comment>Packaging update</Comment>
<Name>Gavin Zhao</Name>
<Email>me@gzgz.dev</Email>
Expand Down

0 comments on commit 9853782

Please sign in to comment.