-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcuda-gcc.spec
78 lines (58 loc) · 2.46 KB
/
cuda-gcc.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%global gcc_major 13
Name: cuda-gcc
Version: 13.3.1
Release: 2%{?dist}
Summary: GNU Compiler Collection CUDA compatibility package
License: BSD
URL: http://gcc.gnu.org
BuildArch: noarch
Requires: gcc%{gcc_major}-c++
Provides: cuda-gcc = %{version}-%{release}
Obsoletes: cuda-gcc < %{version}-%{release}
Provides: cuda-gcc-c++ = %{version}-%{release}
Obsoletes: cuda-gcc-c++ < %{version}-%{release}
Provides: cuda-gcc-gfortran = %{version}-%{release}
Obsoletes: cuda-gcc-gfortran < %{version}-%{release}
%description
The %{name} package contains scripts that are sourced in the environment to use
the GCC compatibility packages when invoking NVCC.
%install
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh <<EOF
export NVCC_CCBIN='g++-%{gcc_major}'
# Alternatively you can use the following:
export NVCC_PREPEND_FLAGS='-ccbin %{_bindir}/g++-%{gcc_major}'
EOF
cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh <<EOF
setenv NVCC_CCBIN 'g++-%{gcc_major}'
# Alternatively you can use the following:
setenv NVCC_PREPEND_FLAGS '-ccbin %{_bindir}/g++-%{gcc_major}'
EOF
%files
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.csh
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh
%changelog
* Mon Dec 16 2024 Simone Caronni <[email protected]> - 13.3.1-2
- Trim changelog.
* Fri Dec 13 2024 Simone Caronni <[email protected]> - 13.3.1-1
- There is no need anymore for a custom GCC package, as Fedora ships gcc13 as a
compatibility package. Adjust accordingly. This package is just now a profile.
* Wed Jul 10 2024 Simone Caronni <[email protected]> - 13.3.0-1
- Update to 13.3.0.
* Mon Mar 25 2024 Simone Caronni <[email protected]> - 12.3.0-2
- Fix library exclusions.
* Sat Jun 03 2023 Simone Caronni <[email protected]> - 12.3.0-1
- Update to 12.3.0.
- Adjust binary move.
* Fri Mar 31 2023 Simone Caronni <[email protected]> - 12.2.1-2
- Re-enable libquadmath support.
- Fix rpm perl macro invocation during build and double bin path.
* Mon Mar 13 2023 Simone Caronni <[email protected]> - 12.2.1-1
- Update to latest 12 snapshot.
- Simplify installation. If the package is installed, nvcc is always executed
with -ccbin.
* Mon Aug 08 2022 Peter Kovář <[email protected]> - 11.3.0-2
- Remove info files.
* Tue May 17 2022 Simone Caronni <[email protected]> - 11.3.0-1
- Update to 11.3.0
- Simplify SPEC file.