mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
33 lines
1.3 KiB
Diff
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
|