@@ -5,6 +5,24 @@ This directory contains a CMakeLists.txt for the HeCBench so it can be built as
55of the LLVM test-suite. Its sources are not part of the test-suite but
66have to be fetched separately from https://github.com/zjin-lcf/HeCBench.
77
8+ The CMakeLists.txt contains internal greenlists and redlists that the user
9+ must declare which options to use with SYSTEM_GPU. The user is able to
10+ declare multiple lists to use.
11+
12+ here are all of the options:
13+ -amd (this is the greenlist that contains tests that passes)
14+ -amd_runtime_redlist
15+ -amd_compiler_redlist
16+ -amd_redlist(this is the combination of both runtime and compiler redlists)
17+ -nvidia (this is the greenlist that contains tests that passes)
18+ -nvidia_runtime_redlist
19+ -nvidia_compiler_redlist
20+ -nvidia_redlist(this is the combination of both runtime and compiler redlists)
21+ -intel (this is the greenlist that contains tests that passes)
22+ -intel_runtime_redlist
23+ -intel_compiler_redlist
24+ -intel_redlist(this is the combination of both runtime and compiler redlists)
25+
826An example run is:
927
1028$ cmake ../llvm-test-suite \
@@ -14,8 +32,9 @@ $ cmake ../llvm-test-suite \
1432 -DCMAKE_C_COMPILER=${HOME}/install/llvm-project/release/bin/clang \
1533 -DCMAKE_CXX_COMPILER=${HOME}/install/llvm-project/release/bin/clang++ \
1634 -DTEST_SUITE_SUBDIRS=External/HeCBench \
17- -DTEST_SUITE_HECBENCH_OFFLOADING_CFLAGS=--offload-arch=native \
18- -DTEST_SUITE_HECBENCH_OFFLOADING_LDFLAGS=--offload-arch=native;-lopenmptarget \
35+ -DTEST_SUITE__OFFLOADING_CFLAGS=--offload-arch=native \
36+ -DTEST_SUITE_OFFLOADING_LDFLAGS=--offload-arch=native;-lopenmptarget \
37+ -DSYSTEM_GPU="amd\;amd_runtime_redlist" \
1938 -DTEST_SUITE_LIT_FLAGS=-svj1
2039
2140$ LD_LIBRARY_PATH=${HOME}/install/llvm-project/release/lib ninja check
0 commit comments