-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibcusparselt.spec
105 lines (78 loc) · 3.22 KB
/
libcusparselt.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
%global debug_package %{nil}
%global __strip /bin/true
%global _missing_build_ids_terminate_build 0
%global _build_id_links none
Name: libcusparselt
Version: 0.6.0.6
Release: 1%{?dist}
Summary: CUDA Library for Sparse Matrix-Matrix Multiplication
License: NVIDIA License
URL: https://docs.nvidia.com/cuda/cusparselt/index.html
ExclusiveArch: x86_64 aarch64
Source0: https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-x86_64/libcusparse_lt-linux-x86_64-%{version}-archive.tar.xz
Source1: https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-sbsa/libcusparse_lt-linux-sbsa-%{version}-archive.tar.xz
Conflicts: %{name}0 < %{?epoch:%{epoch}:}%{version}-%{release}
%description
NVIDIA cuSPARSELt is a high-performance CUDA library dedicated to general
matrix-matrix operations in which at least one operand is a sparse matrix.
The cuSPARSELt APIs allow flexibility in the algorithm/operation selection,
epilogue, and matrix characteristics, including memory layout, alignment, and
data types.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: cuda-devel%{?_isa}
Conflicts: %{name}-devel < %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use cuSPARSELt.
%package static
Summary: Static libraries for %{name}
Requires: %{name}-devel%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description static
Static libraries for cuSPARSELt.
%prep
%ifarch x86_64
%setup -q -n libcusparse_lt-linux-x86_64-%{version}-archive
%endif
%ifarch aarch64
%setup -q -T -b 1 -n libcusparse_lt-linux-sbsa-%{version}-archive
%endif
%build
# Nothing to build
%install
mkdir -p %{buildroot}%{_libdir}/
cp -a lib/libcusparseLt.so* %{buildroot}%{_libdir}/
chmod 755 %{buildroot}%{_libdir}/*.so*
install -p -m0644 lib/libcusparseLt_static.a %{buildroot}%{_libdir}/
mkdir -p %{buildroot}%{_includedir}/
install -p -m0644 include/cusparseLt.h %{buildroot}%{_includedir}/
%{?ldconfig_scriptlets}
%files
%license LICENSE
%{_libdir}/libcusparseLt.so.*
%files devel
%{_includedir}/cusparseLt.h
%{_libdir}/libcusparseLt.so
%files static
%{_libdir}/libcusparseLt_static.a
%changelog
* Sat Mar 16 2024 Simone Caronni <[email protected]> - 0.6.0.6-1
- Update to 0.6.0.6.
* Sat Jan 06 2024 Simone Caronni <[email protected]> - 0.5.2.1-1
- Update to 0.5.2.1.
* Wed Nov 29 2023 Simone Caronni <[email protected]> - 0.5.0.1-1
- Update to 0.5.0.1.
* Thu Sep 28 2023 Simone Caronni <[email protected]> - 0.4.0.7-1
- Update to 0.4.0.7.
* Tue Apr 11 2023 Simone Caronni <[email protected]> - 0.3.0.3-2
- Fix symlinks.
- Update SPEC file.
* Fri Nov 11 2022 Simone Caronni <[email protected]> - 0.3.0.3-1
- Update to 0.3.0.3.
* Wed Feb 02 2022 Simone Caronni <[email protected]> - 0.2.0.1-2
- Rename to libcusparselt.
* Tue Nov 02 2021 Simone Caronni <[email protected]> - 0.2.0.1-1
- Update to 0.2.0.1.
* Wed Jul 28 2021 Simone Caronni <[email protected]> - 0.1.0.2-1
- First build.