Skip to content

Commit 6254b79

Browse files
committed
Cleanup and add new pytorch packages to cmssw-tools
1 parent 9eb1b4d commit 6254b79

File tree

11 files changed

+11
-127
lines changed

11 files changed

+11
-127
lines changed

cmssw-tools.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ Requires: oracle-fake
188188
Requires: xtensor
189189
Requires: xtl
190190
Requires: xgboost
191-
Requires: pytorch
191+
Requires: pytorch-cpu
192+
# TODO
193+
#Requires: pytorch-cuda
194+
#Requires: pytorch-rocm
192195
Requires: pytorch-custom-ops
193196

194197
## INCLUDE tfaot-models

pytorch-cluster.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Source: git+https://github.com/%{github_user}/pytorch_cluster.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz
1111

1212
BuildRequires: cmake
13-
Requires: pytorch %{!?without_cuda:cuda}
13+
Requires: pytorch-cpu %{!?without_cuda:cuda}
1414
%define build_flags -Wall -Wextra -pedantic %{?arch_build_flags}
1515
%define cuda_arch_float $(echo %{cuda_arch} | tr ' ' '\\n' | sed -E 's|([0-9])$|.\\1|' | tr '\\n' ' ')
1616

pytorch-ignore-different-cuda-include-dir.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.

pytorch-scatter.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Source: git+https://github.com/%{github_user}/pytorch_scatter.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz
1111

1212
BuildRequires: cmake
13-
Requires: pytorch %{!?without_cuda:cuda}
13+
Requires: pytorch-cpu %{!?without_cuda:cuda}
1414
%define build_flags -Wall -Wextra -pedantic %{?arch_build_flags}
1515
%define cuda_arch_float $(echo %{cuda_arch} | tr ' ' '\\n' | sed -E 's|([0-9])$|.\\1|' | tr '\\n' ' ')
1616

pytorch-sparse.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Source: git+https://github.com/%{github_user}/pytorch_sparse.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz
1111

1212
BuildRequires: cmake
13-
Requires: pytorch %{!?without_cuda:cuda}
13+
Requires: pytorch-cpu %{!?without_cuda:cuda}
1414
%define build_flags -Wall -Wextra -pedantic %{?arch_build_flags}
1515
%define cuda_arch_float $(echo %{cuda_arch} | tr ' ' '\\n' | sed -E 's|([0-9])$|.\\1|' | tr '\\n' ' ')
1616

pytorch.file

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
2-
# Revision 1
32

43
Source: git+https://github.com/pytorch/pytorch.git?obj=main/v%{realversion}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz
54
Source1: FindEigen3.cmake

pytorch.spec

Lines changed: 0 additions & 102 deletions
This file was deleted.

scram-tools.file/tools/pytorch-cluster/pytorch-cluster.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<environment name="INCLUDE" default="$@TOOL_BASE@/include/torchcluster/"/>
66
<environment name="LIBDIR" default="$@TOOL_BASE@/lib"/>
77
</client>
8-
<use name="pytorch"/>
8+
<use name="pytorch-cpu"/>
99
<lib name="torchcluster"/>
1010
<flags FORCE_LINK="1"/>
1111
</tool>

scram-tools.file/tools/pytorch-custom-ops/pytorch-custom-ops.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<tool name="@TOOL@" version="1.0" revision="2">
2-
<use name="pytorch"/>
2+
<use name="pytorch-cpu"/>
33
<use name="pytorch-scatter"/>
44
<use name="pytorch-cluster"/>
55
<use name="pytorch-sparse"/>

scram-tools.file/tools/pytorch-scatter/pytorch-scatter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<environment name="INCLUDE" default="$@TOOL_BASE@/include/torchscatter/"/>
66
<environment name="LIBDIR" default="$@TOOL_BASE@/lib"/>
77
</client>
8-
<use name="pytorch"/>
8+
<use name="pytorch-cpu"/>
99
<lib name="torchscatter"/>
1010
<flags FORCE_LINK="1"/>
1111
</tool>

0 commit comments

Comments
 (0)