summaryrefslogtreecommitdiffstats
path: root/amd/packages/patches/rocr-runtime-5.5.patch
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2025-06-19 19:25:22 -0500
committermsglm <msglm@techchud.xyz>2025-06-19 19:25:22 -0500
commitd6119d8f49be6149c176f3de34a9e65cd7a20064 (patch)
treefb397b181178a713009c27dede3783cb7b56b779 /amd/packages/patches/rocr-runtime-5.5.patch
parentedb38a355aebe1786447bacdfd5b3550aee5f91e (diff)
downloadguix-msglm-master.tar.gz
guix-msglm-master.tar.bz2
guix-msglm-master.zip
import guix-hpc amd modules and add gfx1100 supportHEADmaster
Diffstat (limited to 'amd/packages/patches/rocr-runtime-5.5.patch')
-rw-r--r--amd/packages/patches/rocr-runtime-5.5.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/amd/packages/patches/rocr-runtime-5.5.patch b/amd/packages/patches/rocr-runtime-5.5.patch
new file mode 100644
index 0000000..72e92fe
--- /dev/null
+++ b/amd/packages/patches/rocr-runtime-5.5.patch
@@ -0,0 +1,16 @@
+Help clang find relevant device libraries
+diff --git a/src/image/blit_src/CMakeLists.txt b/src/image/blit_src/CMakeLists.txt
+index 21f998b..9aa1d8c 100644
+--- a/src/image/blit_src/CMakeLists.txt
++++ b/src/image/blit_src/CMakeLists.txt
+@@ -67,8 +67,8 @@ function(gen_kernel_bc TARGET_ID INPUT_FILE OUTPUT_FILE)
+
+ separate_arguments(CLANG_ARG_LIST UNIX_COMMAND
+ "-O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0
+- -target amdgcn-amd-amdhsa -mcpu=${TARGET_ID} -mcode-object-version=4
+- -o ${OUTPUT_FILE} ${INPUT_FILE}")
++ -target amdgcn-amd-amdhsa -mcpu=${TARGET_ID} -mcode-object-version=5
++ -o ${OUTPUT_FILE} ${INPUT_FILE} --hip-device-lib-path=${BITCODE_DIR}")
+
+ ## Add custom command to produce a code object file.
+ ## This depends on the kernel source file & compiler.