diff --git a/packages/r/rocm-runtime/abi_symbols b/packages/r/rocm-runtime/abi_symbols index 38df870b470..086c285bf45 100644 --- a/packages/r/rocm-runtime/abi_symbols +++ b/packages/r/rocm-runtime/abi_symbols @@ -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 @@ -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 @@ -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 diff --git a/packages/r/rocm-runtime/abi_used_symbols b/packages/r/rocm-runtime/abi_used_symbols index ab7def002d0..cf5a6136de3 100644 --- a/packages/r/rocm-runtime/abi_used_symbols +++ b/packages/r/rocm-runtime/abi_used_symbols @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/packages/r/rocm-runtime/files/0004-extend-isa-compatibility-check.patch b/packages/r/rocm-runtime/files/0004-extend-isa-compatibility-check.patch index 0924f082193..8733e42594f 100644 --- a/packages/r/rocm-runtime/files/0004-extend-isa-compatibility-check.patch +++ b/packages/r/rocm-runtime/files/0004-extend-isa-compatibility-check.patch @@ -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 equivalent_gfx101x = { 0, 2 }; ++ if (code_object_isa.GetMinorVersion() == 1) { ++ const std::array equivalent_gfx101x = { 0, 1, 2 }; + if (Contains(equivalent_gfx101x, code_object_isa.GetStepping()) && + Contains(equivalent_gfx101x, agent_isa.GetStepping())) { + return true; // gfx1010 compatible diff --git a/packages/r/rocm-runtime/package.yml b/packages/r/rocm-runtime/package.yml index 299c0509326..16a9b957ef4 100644 --- a/packages/r/rocm-runtime/package.yml +++ b/packages/r/rocm-runtime/package.yml @@ -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 @@ -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 : | diff --git a/packages/r/rocm-runtime/pspec_x86_64.xml b/packages/r/rocm-runtime/pspec_x86_64.xml index 967bcd3b5d8..3b9a9f1bdc9 100644 --- a/packages/r/rocm-runtime/pspec_x86_64.xml +++ b/packages/r/rocm-runtime/pspec_x86_64.xml @@ -21,7 +21,7 @@ programming.devel /usr/lib64/libhsa-runtime64.so.1 - /usr/lib64/libhsa-runtime64.so.1.8.0 + /usr/lib64/libhsa-runtime64.so.1.12.0 /usr/share/doc/hsa-runtime64/LICENSE.md @@ -32,7 +32,7 @@ programming.devel - rocm-runtime + rocm-runtime /usr/include/hsa/Brig.h @@ -56,9 +56,9 @@ - - 2023-10-29 - 5.5.1 + + 2024-02-19 + 6.0.0 Packaging update Gavin Zhao me@gzgz.dev