gentoo/dev-libs/rocm-device-libs/files/rocm-device-libs-6.2.0-test-bitcode-dir.patch
Sv. Lockal c9925f6ac9
dev-libs/rocm-device-libs: add 6.3.0, drop 6.2.4
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-01-05 21:46:25 +00:00

33 lines
1.3 KiB
Diff

`--rocm-device-lib-path` is needed to execute the tests because they are not
installed to system yet
--- a/test/compile/CMakeLists.txt
+++ b/test/compile/CMakeLists.txt
@@ -40,6 +40,7 @@ function(add_compile_test test_name func_name)
-DFILECHECK_BIN=${FILECHECK_BIN}
-DOUTPUT_FILE=output.${test_name}.${test_cpu}.s
-DINPUT_FILE=${file_name}
+ -DAMDGCN_BITCODES=${PROJECT_BINARY_DIR}/lib/amdgcn/bitcode
-DTEST_CPU=${test_cpu}
-DCOMPILE_FLAGS=${COMPILE_TEST_COMPILE_FLAGS}
-DEXTRA_CHECK_PREFIX=${COMPILE_TEST_EXTRA_CHECK_PREFIXES}
--- a/test/compile/RunCompileTest.cmake
+++ b/test/compile/RunCompileTest.cmake
@@ -16,6 +16,7 @@ execute_process(COMMAND
-target amdgcn-amd-amdhsa -mcpu=${TEST_CPU}
-Xclang -finclude-default-header
--rocm-path=${BINARY_DIR}
+ --rocm-device-lib-path=${AMDGCN_BITCODES}
-mllvm -amdgpu-simplify-libcall=0
${COMPILE_FLAGS}
-o ${OUTPUT_FILE} ${INPUT_FILE}
--- a/test/compile/RunConstantFoldTest.cmake
+++ b/test/compile/RunConstantFoldTest.cmake
@@ -16,6 +16,7 @@ execute_process(COMMAND
-target amdgcn-amd-amdhsa -mcpu=${TEST_CPU}
-Xclang -finclude-default-header
--rocm-path=${BINARY_DIR}
+ --rocm-device-lib-path=${AMDGCN_BITCODES}
-mllvm -amdgpu-simplify-libcall=0
-o ${OUTPUT_FILE} ${INPUT_FILE}
RESULT_VARIABLE CLANG_RESULT