diff options
author | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:24:07 -0500 |
---|---|---|
committer | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:24:07 -0500 |
commit | b2d86632ac6abf4ee7ed05c27cc18989e5d27915 (patch) | |
tree | fb397b181178a713009c27dede3783cb7b56b779 /amd/packages/patches/rocr-runtime-5.5.patch | |
parent | 77d9ffffe9a59ad4decdaf2fadb1778e866d36f0 (diff) | |
download | guix-techchud-b2d86632ac6abf4ee7ed05c27cc18989e5d27915.tar.gz guix-techchud-b2d86632ac6abf4ee7ed05c27cc18989e5d27915.tar.bz2 guix-techchud-b2d86632ac6abf4ee7ed05c27cc18989e5d27915.zip |
import guix-hpc amd modules and add gfx1100 support
Diffstat (limited to 'amd/packages/patches/rocr-runtime-5.5.patch')
-rw-r--r-- | amd/packages/patches/rocr-runtime-5.5.patch | 16 |
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. |