File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
devops/actions/run-tests/e2e Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 55
55
if : inputs.testing_mode != 'run-only'
56
56
shell : bash
57
57
run : |
58
- cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" -DCUDA_LIBS_DIR=/usr/local/cuda/lib64 -DCUDA_INCLUDE=/usr/local/cuda/include ${{ steps.cmake_opts.outputs.opts }}
58
+ cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
59
59
- name : SYCL End-to-end tests
60
60
shell : bash {0}
61
61
env :
Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ endif()
69
69
70
70
set (SYCL_E2E_CLANG_CXX_FLAGS "${SYCL_E2E_CLANG_CXX_FLAGS} -Werror" )
71
71
72
+ find_package (CUDAToolkit )
73
+
74
+ if (CUDAToolkit_FOUND )
75
+ set (CUDA_LIBS_DIR "${CUDAToolkit_LIBRARY_DIR} " )
76
+ set (CUDA_INCLUDE "${CUDAToolkit_INCLUDE_DIRS} " )
77
+ endif ()
78
+
72
79
if (SYCL_TEST_E2E_STANDALONE )
73
80
configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in"
74
81
"${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg.py" )
Original file line number Diff line number Diff line change @@ -180,9 +180,9 @@ at the full path specified by this variable.
180
180
181
181
***LEVEL_ZERO_LIBS_DIR*** - path to Level Zero libraries.
182
182
183
- ***CUDA_INCLUDE*** - path to CUDA headers.
183
+ ***CUDA_INCLUDE*** - path to CUDA headers (autodetected) .
184
184
185
- ***CUDA_LIBS_DIR*** - path to CUDA libraries.
185
+ ***CUDA_LIBS_DIR*** - path to CUDA libraries (autodetected) .
186
186
187
187
***AMD_ARCH*** - flag may be set for when using HIP AMD triple. For example it
188
188
may be set to "gfx906". Otherwise must be provided via the ***amd_arch*** LIT
@@ -288,9 +288,9 @@ configure specific single test execution in the command line:
288
288
* ** level_zero_libs_dir** - directory containing Level_Zero native libraries,
289
289
can be also set by CMake variable LEVEL_ZERO_LIBS_DIR.
290
290
* ** cuda_include** - directory containing CUDA SDK headers, can be also set by
291
- CMake variable CUDA_INCLUDE.
291
+ CMake variable CUDA_INCLUDE (autodetected) .
292
292
* ** cuda_libs_dir** - directory containing CUDA SDK libraries, can be also set
293
- by CMake variable CUDA_LIBS_DIR.
293
+ by CMake variable CUDA_LIBS_DIR (autodetected) .
294
294
* ** run_launcher** - part of ` %{run* }` expansion/substitution to alter execution
295
295
of the test by, e.g., running it through Valgrind.
296
296
You can’t perform that action at this time.
0 commit comments