summaryrefslogtreecommitdiff
path: root/libs/rocm-hipamd
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rocm-hipamd')
-rw-r--r--libs/rocm-hipamd/.footprint141
-rw-r--r--libs/rocm-hipamd/.signature8
-rw-r--r--libs/rocm-hipamd/MAKEPKG64
-rw-r--r--libs/rocm-hipamd/fix-hipcc-no-stdcxxfs.awk6
-rw-r--r--libs/rocm-hipamd/fix-os-posix-basename.awk6
5 files changed, 225 insertions, 0 deletions
diff --git a/libs/rocm-hipamd/.footprint b/libs/rocm-hipamd/.footprint
new file mode 100644
index 0000000..e79ec02
--- /dev/null
+++ b/libs/rocm-hipamd/.footprint
@@ -0,0 +1,141 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/hipcc_cmake_linker_helper
+-rwxr-xr-x root/root usr/bin/hipdemangleatp
+-rwxr-xr-x root/root usr/bin/hrr-playback
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/hip_prof_str.h
+drwxr-xr-x root/root usr/include/hip/
+-rw-r--r-- root/root usr/include/hip/channel_descriptor.h
+-rw-r--r-- root/root usr/include/hip/device_functions.h
+-rw-r--r-- root/root usr/include/hip/driver_types.h
+-rw-r--r-- root/root usr/include/hip/hip_bf16.h
+-rw-r--r-- root/root usr/include/hip/hip_bfloat16.h
+-rw-r--r-- root/root usr/include/hip/hip_common.h
+-rw-r--r-- root/root usr/include/hip/hip_complex.h
+-rw-r--r-- root/root usr/include/hip/hip_cooperative_groups.h
+-rw-r--r-- root/root usr/include/hip/hip_deprecated.h
+-rw-r--r-- root/root usr/include/hip/hip_ext.h
+-rw-r--r-- root/root usr/include/hip/hip_ext_ocp.h
+-rw-r--r-- root/root usr/include/hip/hip_fp16.h
+-rw-r--r-- root/root usr/include/hip/hip_fp4.h
+-rw-r--r-- root/root usr/include/hip/hip_fp6.h
+-rw-r--r-- root/root usr/include/hip/hip_fp8.h
+-rw-r--r-- root/root usr/include/hip/hip_gl_interop.h
+-rw-r--r-- root/root usr/include/hip/hip_hcc.h
+-rw-r--r-- root/root usr/include/hip/hip_math_constants.h
+-rw-r--r-- root/root usr/include/hip/hip_profile.h
+-rw-r--r-- root/root usr/include/hip/hip_runtime.h
+-rw-r--r-- root/root usr/include/hip/hip_runtime_api.h
+-rw-r--r-- root/root usr/include/hip/hip_texture_types.h
+-rw-r--r-- root/root usr/include/hip/hip_vector_types.h
+-rw-r--r-- root/root usr/include/hip/hip_version.h
+-rw-r--r-- root/root usr/include/hip/hiprtc.h
+-rw-r--r-- root/root usr/include/hip/library_types.h
+-rw-r--r-- root/root usr/include/hip/linker_types.h
+-rw-r--r-- root/root usr/include/hip/math_functions.h
+-rw-r--r-- root/root usr/include/hip/surface_types.h
+-rw-r--r-- root/root usr/include/hip/texture_types.h
+drwxr-xr-x root/root usr/include/hip/amd_detail/
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_channel_descriptor.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_device_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_gfx1250_TDM.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_atomic.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_bf16.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_bf16_gcc.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_bfloat16.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_common.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_complex.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_cooperative_groups.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_cooperative_groups_memcpy.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_cooperative_groups_reduce.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_cooperative_groups_scan.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_fp16.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_fp4.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_fp6.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_fp8.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_gl_interop.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_math_constants.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_mx_common.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_ocp_fp.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_ocp_fp_cxx.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_ocp_host.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_ocp_types.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_runtime.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_runtime_pt_api.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_unsafe_atomics.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_hip_vector_types.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_math_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_surface_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_warp_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/amd_warp_sync_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/concepts.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/device_library_decls.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/functional_grid_launch.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/grid_launch.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/grid_launch.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/grid_launch_GGL.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/helpers.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_api_trace.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_assert.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_cooperative_groups_helper.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_fp16_gcc.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_fp16_math_fwd.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_ldg.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_prof_str.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_profiler_ext.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_runtime_prof.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hip_storage.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/host_defines.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/hsa_helpers.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/macro_based_grid_launch.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/math_fwd.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/ockl_image.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/program_state.hpp
+-rw-r--r-- root/root usr/include/hip/amd_detail/texture_fetch_functions.h
+-rw-r--r-- root/root usr/include/hip/amd_detail/texture_indirect_functions.h
+drwxr-xr-x root/root usr/include/hip/cooperative_groups/
+-rw-r--r-- root/root usr/include/hip/cooperative_groups/hip_reduce.h
+-rw-r--r-- root/root usr/include/hip/cooperative_groups/hip_scan.h
+-rw-r--r-- root/root usr/include/hip/cooperative_groups/memcpy_async.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/.hipInfo
+-rwxr-xr-x root/root usr/lib/libamdhip64.so.7.15.0-0000000
+-rwxr-xr-x root/root usr/lib/libhiprtc-builtins.so.7.15.0-0000000
+-rwxr-xr-x root/root usr/lib/libhiprtc.so.7.15.0-0000000
+lrwxrwxrwx root/root usr/lib/libamdhip64.so -> libamdhip64.so.7
+lrwxrwxrwx root/root usr/lib/libamdhip64.so.7 -> libamdhip64.so.7.15.0-0000000
+lrwxrwxrwx root/root usr/lib/libhiprtc-builtins.so -> libhiprtc-builtins.so.7
+lrwxrwxrwx root/root usr/lib/libhiprtc-builtins.so.7 -> libhiprtc-builtins.so.7.15.0-0000000
+lrwxrwxrwx root/root usr/lib/libhiprtc.so -> libhiprtc.so.7
+lrwxrwxrwx root/root usr/lib/libhiprtc.so.7 -> libhiprtc.so.7.15.0-0000000
+drwxr-xr-x root/root usr/lib/cmake/
+drwxr-xr-x root/root usr/lib/cmake/hip-lang/
+-rw-r--r-- root/root usr/lib/cmake/hip-lang/hip-lang-config-version.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip-lang/hip-lang-config.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip-lang/hip-lang-targets-release.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip-lang/hip-lang-targets.cmake
+drwxr-xr-x root/root usr/lib/cmake/hip/
+-rw-r--r-- root/root usr/lib/cmake/hip/FindHIP.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-config-amd.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-config-nvidia.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-config-version.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-config.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-targets-release.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/hip-targets.cmake
+drwxr-xr-x root/root usr/lib/cmake/hip/FindHIP/
+-rw-r--r-- root/root usr/lib/cmake/hip/FindHIP/run_hipcc.cmake
+-rw-r--r-- root/root usr/lib/cmake/hip/FindHIP/run_make2cmake.cmake
+drwxr-xr-x root/root usr/lib/cmake/hiprtc/
+-rw-r--r-- root/root usr/lib/cmake/hiprtc/hiprtc-config-version.cmake
+-rw-r--r-- root/root usr/lib/cmake/hiprtc/hiprtc-config.cmake
+-rw-r--r-- root/root usr/lib/cmake/hiprtc/hiprtc-targets-release.cmake
+-rw-r--r-- root/root usr/lib/cmake/hiprtc/hiprtc-targets.cmake
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/doc/
+drwxr-xr-x root/root usr/share/doc/hip-asan/
+-rw-r--r-- root/root usr/share/doc/hip-asan/LICENSE.md
+drwxr-xr-x root/root usr/share/doc/hip/
+-rw-r--r-- root/root usr/share/doc/hip/LICENSE.md
+drwxr-xr-x root/root usr/share/hip/
+-rw-r--r-- root/root usr/share/hip/version
diff --git a/libs/rocm-hipamd/.signature b/libs/rocm-hipamd/.signature
new file mode 100644
index 0000000..43e9886
--- /dev/null
+++ b/libs/rocm-hipamd/.signature
@@ -0,0 +1,8 @@
+RWTZ9IduCSQ/mHIpN7sPczHfwIDQobRYQqErA5g53A6NomN9XZHx5f23YYtw3CBBMvC2Fd+8zWQEfdYFe9Wg8a2EtdOA0iFjPA4=
+
+SHA256 (MAKEPKG) = 6c974f94fa76fe153b7e964b7046ea65834c7573a0e70311f55ee5d6133b0717
+SHA256 (.footprint) = ea699468dab404b502f4f35f893a7329c922dcee2fb4326237cb98384d2b7e18
+SHA256 (clr.tar.gz) = 07caed9d726232008a2120da24f4e4bbc4998accbeadd309181fce04a9da9f99
+SHA256 (hip.tar.gz) = 373958090db3cab854fa8a0baa5e4f9afe0ea423def204b241bfcbe74f6ce0ca
+SHA256 (fix-os-posix-basename.awk) = 0af885dac36e4f2314f226eb7b618dbf468919c3d2d13915c9cc2635c09753d5
+SHA256 (rocm-hipamd#10.0-2.pkg.tar.gz) = 2959e54bfb413c0940d60feab3b05bc09774f24655d373351824b0e1cea1fdf7
diff --git a/libs/rocm-hipamd/MAKEPKG b/libs/rocm-hipamd/MAKEPKG
new file mode 100644
index 0000000..d355e8b
--- /dev/null
+++ b/libs/rocm-hipamd/MAKEPKG
@@ -0,0 +1,64 @@
+#!/bin/mkpkg
+# description: HIP Runtime (AMD GPU compute - CLR/hipamd)
+# url: https://github.com/ROCm/rocm-systems
+
+name=rocm-hipamd
+_name=therock
+version=10.0
+release=2
+depends=(rocm-rocminfo rocm-rocr-runtime rocm-llvm)
+makedeps=(cmake ninja python3 py-cppheaderparser py-ply)
+source=(
+ https://github.com/ROCm/rocm-systems/releases/download/$_name-$version/clr.tar.gz
+ https://github.com/ROCm/rocm-systems/releases/download/$_name-$version/hip.tar.gz
+ fix-os-posix-basename.awk
+)
+sha256sums=(
+ "07caed9d726232008a2120da24f4e4bbc4998accbeadd309181fce04a9da9f99"
+ "373958090db3cab854fa8a0baa5e4f9afe0ea423def204b241bfcbe74f6ce0ca"
+ "0af885dac36e4f2314f226eb7b618dbf468919c3d2d13915c9cc2635c09753d5"
+)
+
+patch() {
+ awk -f "$SRC/fix-os-posix-basename.awk" \
+ clr/rocclr/os/os_posix.cpp > os_posix.cpp.tmp
+ mv os_posix.cpp.tmp clr/rocclr/os/os_posix.cpp
+
+ sed -i 's/__attribute__((tls_model("initial-exec")))//g' \
+ clr/rocclr/thread/thread.cpp \
+ clr/rocclr/thread/thread.hpp \
+ clr/rocclr/platform/activity.cpp \
+ clr/rocclr/platform/activity.hpp
+
+ sed -i '1i #include <functional>' \
+ clr/hipamd/src/hrr/playback/hrr_playback.cpp
+}
+
+build() {
+
+ cmake -S clr -B build -G Ninja -Wno-dev \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_C_COMPILER=/usr/lib/rocm/llvm/bin/clang \
+ -DCMAKE_CXX_COMPILER=/usr/lib/rocm/llvm/bin/clang++ \
+ -DCMAKE_PREFIX_PATH="/usr;/usr/lib/rocm/llvm" \
+ -DCLR_BUILD_HIP=ON \
+ -DCLR_BUILD_OCL=OFF \
+ -DHIP_COMMON_DIR="$PWD/hip" \
+ -DHIP_PLATFORM=amd \
+ -DROCM_PATH=/usr \
+ -DHIP_ENABLE_ROCPROFILER_REGISTER=OFF \
+ -DHIPCC_BIN_DIR=/nonexistent
+
+ ninja -C build
+ DESTDIR=$PKG ninja -C build install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+
diff --git a/libs/rocm-hipamd/fix-hipcc-no-stdcxxfs.awk b/libs/rocm-hipamd/fix-hipcc-no-stdcxxfs.awk
new file mode 100644
index 0000000..eddf94d
--- /dev/null
+++ b/libs/rocm-hipamd/fix-hipcc-no-stdcxxfs.awk
@@ -0,0 +1,6 @@
+/set\(ADDITIONAL_SHARED_LIBRARIES_TO_LINK/ {
+ print "set(ADDITIONAL_SHARED_LIBRARIES_TO_LINK)"
+ getline
+ next
+}
+{ print }
diff --git a/libs/rocm-hipamd/fix-os-posix-basename.awk b/libs/rocm-hipamd/fix-os-posix-basename.awk
new file mode 100644
index 0000000..4c32ca2
--- /dev/null
+++ b/libs/rocm-hipamd/fix-os-posix-basename.awk
@@ -0,0 +1,6 @@
+/#include <sys\/sysinfo.h>/ {
+ print
+ print "#include <libgen.h>"
+ next
+}
+{ print }