@@ -5,6 +5,24 @@ This directory contains a CMakeLists.txt for the HeCBench so it can be built as
5
5
of the LLVM test-suite. Its sources are not part of the test-suite but
6
6
have to be fetched separately from https://github.com/zjin-lcf/HeCBench.
7
7
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
+
8
26
An example run is:
9
27
10
28
$ cmake ../llvm-test-suite \
@@ -14,8 +32,9 @@ $ cmake ../llvm-test-suite \
14
32
-DCMAKE_C_COMPILER=${HOME}/install/llvm-project/release/bin/clang \
15
33
-DCMAKE_CXX_COMPILER=${HOME}/install/llvm-project/release/bin/clang++ \
16
34
-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" \
19
38
-DTEST_SUITE_LIT_FLAGS=-svj1
20
39
21
40
$ LD_LIBRARY_PATH=${HOME}/install/llvm-project/release/lib ninja check
0 commit comments