3 %bcond_with prof # package computeprof (requires Qt < 4.7)
5 Summary: NVIDIA CUDA Toolkit
6 Summary(pl.UTF-8): Zestaw narzędzi NVIDIA CUDA
10 License: nVidia Binary
11 Group: Development/Tools
12 Source0: http://developer.download.nvidia.com/compute/cuda/4_0/toolkit/%{name}_%{version}_linux_32_ubuntu10.10.run
13 # Source0-md5: 8d025093ac6713eaa7dbffc8f3493606
14 Source1: http://developer.download.nvidia.com/compute/cuda/4_0/toolkit/%{name}_%{version}_linux_64_ubuntu10.10.run
15 # Source1-md5: fb1f87e7a112545f6f07bc30e646bdf4
16 Source2: http://developer.download.nvidia.com/compute/cuda/4_0/sdk/gpucomputingsdk_%{version}_linux.run
17 # Source2-md5: 07393c5eb702485deaa06a37747391ea
18 Source3: http://developer.download.nvidia.com/compute/cuda/4_0/ToolsSDK/cudatools_%{version}_linux_32.run
19 # Source3-md5: 6426892e521b931a18b57e3680b1cc4e
20 Source4: http://developer.download.nvidia.com/compute/cuda/4_0/ToolsSDK/cudatools_%{version}_linux_64.run
21 # Source4-md5: 1fc9673eccb604ed6e386397b995ec25
22 URL: http://www.nvidia.com/object/cuda_home.html
23 Requires: %{name}-libs = %{version}-%{release}
24 %{?with_prof:Requires: qt4-assistant}
25 Requires: xorg-driver-video-nvidia-libs >= 1:190.53-4
26 ExclusiveArch: %{ix86} %{x8664}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The CUDA(tm) architecture enables developers to leverage the massively
31 parallel processing power of NVIDIA GPUs, delivering the performance
32 of NVIDIA's world-renowned graphics processor technology to general
33 purpose GPU Computing.
35 With the CUDA architecture and tools, developers are achieving
36 dramatic speedups in fields such as medical imaging and natural
37 resource exploration, and creating breakthrough applications in areas
38 such as image recognition and real-time HD video playback and
41 CUDA enables this unprecedented performance via standard APIs such
42 OpenCL and DirectCompute, and high level programming languages such as
43 C/C++, Fortran, Java, Python, and the Microsoft .NET Framework.
46 Summary: NVIDIA CUDA libraries
47 Summary(pl.UTF-8): Biblioteki NVIDIA CUDA
51 NVIDIA CUDA libraries.
53 %description libs -l pl.UTF-8
54 Biblioteki NVIDIA CUDA.
59 /bin/sh %{SOURCE0} --noexec --keep
60 /bin/sh %{SOURCE3} --noexec --keep
62 /bin/sh %{SOURCE1} --noexec --keep
63 /bin/sh %{SOURCE4} --noexec --keep
65 /bin/sh %{SOURCE2} --noexec --keep
66 cp -a pkg/computeprof/doc pkg/computeprof/computeprof
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cuda/prof/{doc,bin}} \
71 $RPM_BUILD_ROOT{%{_mandir}/man{1,3},%{_includedir}/cuda} \
72 $RPM_BUILD_ROOT%{_sysconfdir}
74 install -p pkg/bin/* $RPM_BUILD_ROOT%{_bindir}
75 cp -a pkg/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
76 cp -p pkg/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
77 cp -p pkg/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
78 cp -a pkg/include/* $RPM_BUILD_ROOT%{_includedir}/cuda
80 cp -a pkg/open64 $RPM_BUILD_ROOT%{_libdir}/cuda
82 mv $RPM_BUILD_ROOT%{_bindir}/nvcc{,.bin}
83 cat <<'EOF' >$RPM_BUILD_ROOT%{_sysconfdir}/nvcc.conf
84 INCLUDES="-I/usr/include/cuda"
92 cat <<'EOF' >$RPM_BUILD_ROOT%{_bindir}/nvcc
94 . %{_sysconfdir}/nvcc.conf
96 export INCLUDES LIBRARIES CUDAFE_FLAGS OPENCC_FLAGS PTXAS_FLAG
98 exec %{_bindir}/nvcc.bin "$@"
102 cp -a pkg/computeprof/doc/computeprof.{html,q*} $RPM_BUILD_ROOT%{_libdir}/cuda/prof/doc
103 cp -a pkg/computeprof/doc/help.png $RPM_BUILD_ROOT%{_libdir}/cuda/prof/doc
104 install -p pkg/computeprof/bin/computeprof $RPM_BUILD_ROOT%{_libdir}/cuda/prof/bin
106 ln -s %{_libdir}/qt4/bin/assistant $RPM_BUILD_ROOT%{_libdir}/cuda/prof/bin/assistant
107 ln -s %{_libdir}/cuda/prof/bin/computeprof $RPM_BUILD_ROOT%{_bindir}/computeprof
110 ln -s %{_libdir}/cuda/open64/bin/nvopencc $RPM_BUILD_ROOT%{_bindir}/nvopencc
113 rm -rf $RPM_BUILD_ROOT
115 %post libs -p /sbin/ldconfig
116 %postun libs -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc pkg/doc/* pkg/bin/nvcc.profile
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nvcc.conf
122 %attr(755,root,root) %{_bindir}/bin2c
123 %attr(755,root,root) %{_bindir}/cuda-gdb
124 %attr(755,root,root) %{_bindir}/cuda-memcheck
125 %attr(755,root,root) %{_bindir}/cudafe*
126 %attr(755,root,root) %{_bindir}/fatbin
127 %attr(755,root,root) %{_bindir}/filehash
128 %attr(755,root,root) %{_bindir}/nvcc
129 %attr(755,root,root) %{_bindir}/nvcc.bin
130 %attr(755,root,root) %{_bindir}/nvopencc
131 %attr(755,root,root) %{_bindir}/ptxas
135 %doc pkg/computeprof/CUDA_Visual_Profiler_Release_Notes.txt pkg/computeprof/computeprof
136 %dir %{_libdir}/cuda/prof
137 %dir %{_libdir}/cuda/prof/bin
138 %attr(755,root,root) %{_bindir}/computeprof
139 %attr(755,root,root) %{_libdir}/cuda/prof/bin/*
140 %{_libdir}/cuda/prof/doc
142 %dir %{_libdir}/cuda/open64
143 %dir %{_libdir}/cuda/open64/bin
144 %dir %{_libdir}/cuda/open64/lib
145 %attr(755,root,root) %{_libdir}/cuda/open64/bin/*
146 %attr(755,root,root) %{_libdir}/cuda/open64/lib/*
147 %{_libdir}/libcublas.so
148 %{_libdir}/libcudart.so
149 %{_libdir}/libcufft.so
154 %defattr(644,root,root,755)
155 %ghost %{_libdir}/libcublas.so.3
156 %attr(755,root,root) %{_libdir}/libcublas.so.*.*.*
157 %ghost %{_libdir}/libcudart.so.3
158 %attr(755,root,root) %{_libdir}/libcudart.so.*.*.*
159 %ghost %{_libdir}/libcufft.so.3
160 %attr(755,root,root) %{_libdir}/libcufft.so.*.*.*