Skip to content

Commit 06abaf9

Browse files
authored
Merge pull request #9835 from cms-sw/cuda-tool-cleanup
Cleanup cuda tools to avoid creation of cuda/lib64 links under cmssw/external
2 parents a03f8a4 + 8c0aee1 commit 06abaf9

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<tool name="cuda-interface" version="@TOOL_VERSION@" revision="1">
2+
<info url="https://docs.nvidia.com/cuda/index.html"/>
3+
<client>
4+
<environment name="CUDA_INTERFACE_BASE" default="@TOOL_ROOT@"/>
5+
<environment name="BINDIR" default="$CUDA_INTERFACE_BASE/bin"/>
6+
<environment name="LIBDIR" default="$CUDA_INTERFACE_BASE/lib64"/>
7+
<environment name="INCLUDE" default="$CUDA_INTERFACE_BASE/include"/>
8+
</client>
9+
<flags SKIP_TOOL_SYMLINKS="1"/>
10+
<runtime name="@OS_RUNTIME_LDPATH_NAME@" value="$LIBDIR" type="path"/>
11+
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
12+
<runtime name="PATH" value="$BINDIR" type="path"/>
13+
</tool>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<tool name="cuda-stubs" version="@TOOL_VERSION@" revision="1">
1+
<tool name="cuda-stubs" version="@TOOL_VERSION@" revision="2">
22
<info url="https://docs.nvidia.com/cuda/index.html"/>
33
<lib name="cuda"/>
4+
<use name="cuda-interface"/>
45
<client>
56
<environment name="CUDA_STUBS_BASE" default="@TOOL_ROOT@"/>
67
<environment name="LIBDIR" default="$CUDA_STUBS_BASE/lib64/stubs"/>
7-
<environment name="INCLUDE" default="$CUDA_STUBS_BASE/include"/>
88
</client>
99
<flags SKIP_TOOL_SYMLINKS="1"/>
1010
</tool>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
<tool name="cuda" version="@TOOL_VERSION@" revision="2">
1+
<tool name="cuda" version="@TOOL_VERSION@" revision="3">
22
<info url="https://docs.nvidia.com/cuda/index.html"/>
33
<use name="cuda-stubs"/>
44
<lib name="cudart"/>
55
<lib name="cudadevrt"/>
66
<lib name="nvToolsExt"/>
7+
<use name="cuda-interface"/>
78
<client>
89
<environment name="CUDA_BASE" default="@TOOL_ROOT@"/>
910
<environment name="NVCC" default="$CUDA_BASE/bin/nvcc"/>
10-
<environment name="BINDIR" default="$CUDA_BASE/bin"/>
11-
<environment name="LIBDIR" default="$CUDA_BASE/lib64"/>
12-
<environment name="INCLUDE" default="$CUDA_BASE/include"/>
1311
</client>
1412
<flags CUDA_FLAGS="@CUDA_FLAGS@"/>
1513
<flags REM_CUDA_HOST_CXXFLAGS="-std=%"/>
@@ -22,6 +20,4 @@
2220
%endif
2321
%endif
2422
<lib name="cudadevrt" type="cuda"/>
25-
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
26-
<runtime name="PATH" value="$CUDA_BASE/bin" type="path"/>
2723
</tool>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
<tool name="cupti" version="@TOOL_VERSION@" revision="1">
1+
<tool name="cupti" version="@TOOL_VERSION@" revision="2">
22
<info url="https://docs.nvidia.com/cupti/Cupti/index.html"/>
33
<lib name="cupti"/>
4-
<client>
5-
<environment name="CUPTI_BASE" default="@TOOL_ROOT@"/>
6-
<environment name="LIBDIR" default="$CUPTI_BASE/lib64"/>
7-
<environment name="INCLUDE" default="$CUPTI_BASE/include"/>
8-
</client>
4+
<use name="cuda-interface"/>
95
</tool>

scram-tools.file/tools/cuda/env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source ${SCRAM_TOOLS_BIN_DIR}/os_libdir.sh
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
<tool name="nvperf" version="@TOOL_VERSION@" revision="1">
1+
<tool name="nvperf" version="@TOOL_VERSION@" revision="2">
22
<info url="https://docs.nvidia.com/cupti/Cupti/index.html"/>
33
<lib name="nvperf_host"/>
44
<lib name="nvperf_target"/>
5-
<client>
6-
<environment name="NVPERF_BASE" default="@TOOL_ROOT@"/>
7-
<environment name="LIBDIR" default="$NVPERF_BASE/lib64"/>
8-
<environment name="INCLUDE" default="$NVPERF_BASE/include"/>
9-
</client>
5+
<use name="cuda-interface"/>
106
</tool>

0 commit comments

Comments
 (0)