Skip to content

Commit c678caa

Browse files
authored
updating the readme for sollve_vv, HeCBench, and smoke (#64)
* updating the readmes for the external benchmarks of sollve_vv, hecBench and smoke * updating based on suggestion * changes based on suggestions
1 parent e78f595 commit c678caa

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

External/HeCBench/README

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ This directory contains a CMakeLists.txt for the HeCBench so it can be built as
55
of the LLVM test-suite. Its sources are not part of the test-suite but
66
have 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+
826
An 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

External/smoke/README

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
smoke
2+
https://github.com/ROCm/aomp
3+
4+
This directory contains a CMakeLists.txt for the aomp benchmark with
5+
the smoke test that is built as part of the LLVM test-suite.
6+
Its sources are not part of the test-suite but
7+
have to be fetched separately from https://github.com/ROCm/aomp
8+
9+
The CMakeLists.txt contains internal greenlists and redlists that the user
10+
must declare which options to use with SYSTEM_GPU. The user is able to
11+
declare multiple lists to use.
12+
13+
here are all of the options:
14+
-amd (this is the greenlist that contains tests that passes)
15+
-amd_runtime_redlist
16+
-amd_compiler_redlist
17+
-amd_redlist(this is the combination of both runtime and compiler redlists)
18+
-nvidia (this is the greenlist that contains tests that passes)
19+
-nvidia_runtime_redlist
20+
-nvidia_compiler_redlist
21+
-nvidia_redlist(this is the combination of both runtime and compiler redlists)
22+
-intel (this is the greenlist that contains tests that passes)
23+
-intel_runtime_redlist
24+
-intel_compiler_redlist
25+
-intel_redlist(this is the combination of both runtime and compiler redlists)
26+
27+
An example run is:
28+
29+
$ cmake ../llvm-test-suite \
30+
-GNinja -DCMAKE_BUILD_TYPE=Release \
31+
-DTEST_SUITE_SMOKE_ROOT=${HOME}/src/aomp \
32+
-DTEST_SUITE_LIT=${HOME}/build/llvm-project/release/bin/llvm-lit \
33+
-DCMAKE_C_COMPILER=${HOME}/install/llvm-project/release/bin/clang \
34+
-DCMAKE_CXX_COMPILER=${HOME}/install/llvm-project/release/bin/clang++ \
35+
-DTEST_SUITE_SUBDIRS=External/smoke \
36+
-DTEST_SUITE_OFFLOADING_CFLAGS=--offload-arch=native \
37+
-DTEST_SUITE_OFFLOADING_LDFLAGS=--offload-arch=native;-lopenmptarget \
38+
-DSYSTEM_GPU="amd\;amd_runtime_redlist" \
39+
-DTEST_SUITE_LIT_FLAGS=-svj1
40+
41+
$ LD_LIBRARY_PATH=${HOME}/install/llvm-project/release/lib ninja check

External/sollve_vv/README

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@ OpenMP V&V suite, compile and run them. That is, running llvm-lit
1818
(or "make check") will require a compatible accelerator on the running
1919
machine.
2020

21+
The CMakeLists.txt contains internal greenlists and redlists that the user
22+
must declare which options to use with SYSTEM_GPU. The user is able to
23+
declare multiple lists to use.
24+
25+
here are all of the options:
26+
-amd (this is the greenlist that contains tests that passes)
27+
-amd_runtime_redlist
28+
-amd_compiler_redlist
29+
-amd_redlist(this is the combination of both runtime and compiler redlists)
30+
-nvidia (this is the greenlist that contains tests that passes)
31+
-nvidia_runtime_redlist
32+
-nvidia_compiler_redlist
33+
-nvidia_redlist(this is the combination of both runtime and compiler redlists)
34+
-intel (this is the greenlist that contains tests that passes)
35+
-intel_runtime_redlist
36+
-intel_compiler_redlist
37+
-intel_redlist(this is the combination of both runtime and compiler redlists)
38+
39+
2140
OpenMP support is autodetected by CMake, but clang requires additional
2241
flags to enable offloading. An example run is:
2342

@@ -29,6 +48,7 @@ $ cmake ../llvm-test-suite -GNinja -DCMAKE_BUILD_TYPE=Release \
2948
-DTEST_SUITE_SUBDIRS=External/sollve_vv \
3049
-DTEST_SUITE_SOLLVEVV_OFFLOADING_CFLAGS=-fopenmp-targets=nvptx64-nvidia-cuda;--cuda-path=/soft/compilers/cuda/cuda-10.1.243;-Xopenmp-target;-march=sm_70 \
3150
-DTEST_SUITE_SOLLVEVV_OFFLOADING_LDFLAGS=-fopenmp-targets=nvptx64-nvidia-cuda;--cuda-path=/soft/compilers/cuda/cuda-10.1.243;-Xopenmp-target;-march=sm_70;-lopenmptarget \
51+
-DSYSTEM_GPU="amd\;amd_runtime_redlist" \
3252
-DTEST_SUITE_LIT_FLAGS=-svj1
3353

3454
$ LD_LIBRARY_PATH=${HOME}/install/llvm-project/release/lib ninja check

0 commit comments

Comments
 (0)