Skip to content

Commit 7161e19

Browse files
[CI] Use extra param to set CUDA_PATH in gpu workflow
Rather instead of hard-coding a path specific machine, use env var available in the system.
1 parent a7945ea commit 7161e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
name: "${{matrix.os}}, ${{matrix.build_type}}, shared=${{matrix.shared_library}}"
3636
env:
3737
VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows;"
38-
CUDA_PATH: "C:/cuda"
3938
COVERAGE_NAME : "exports-coverage-${{inputs.name}}"
4039
# run only on upstream; forks will not have the HW
4140
if: github.repository == 'oneapi-src/unified-memory-framework'
@@ -52,6 +51,7 @@ jobs:
5251
- os: 'Windows'
5352
compiler: {c: cl, cxx: cl}
5453
number_of_processors: '$Env:NUMBER_OF_PROCESSORS'
54+
extra_cmake_path: '$Env:CUDA_PATH'
5555

5656
runs-on: ["DSS-${{inputs.name}}", "DSS-${{matrix.os}}"]
5757
steps:
@@ -81,7 +81,7 @@ jobs:
8181
- name: Configure build
8282
run: >
8383
cmake
84-
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}${{env.CUDA_PATH}}"
84+
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}};${{matrix.extra_cmake_path}}"
8585
-B ${{env.BUILD_DIR}}
8686
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
8787
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}

0 commit comments

Comments
 (0)