ALT Linux Bugzilla
– Attachment 5863 Details for
Bug 29120
cuda enabled glx
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Enable CUDA
0001-Enabled-CUDA-support.patch (text/plain), 3.62 KB, created by
Denis Pynkin
on 2013-06-29 19:55:33 MSK
(
hide
)
Description:
Enable CUDA
Filename:
MIME Type:
Creator:
Denis Pynkin
Created:
2013-06-29 19:55:33 MSK
Size:
3.62 KB
patch
obsolete
>From edb7c5f67e308e5318ca61cc649756e4f4e0dc6a Mon Sep 17 00:00:00 2001 >From: Denis Pynkin <dans@altlinux.org> >Date: Sat, 29 Jun 2013 18:42:41 +0300 >Subject: [PATCH] Enabled CUDA support > >--- > nvidia_glx_319.32.spec | 51 ++++++++++++++++++++++++++++++++++++++------------ > 1 file changed, 39 insertions(+), 12 deletions(-) > >diff --git a/nvidia_glx_319.32.spec b/nvidia_glx_319.32.spec >index 739324b..8b76a13 100644 >--- a/nvidia_glx_319.32.spec >+++ b/nvidia_glx_319.32.spec >@@ -15,8 +15,8 @@ > %define nv_version 319 > %define nv_release 32 > %define nv_minor %nil >-%define pkg_rel alt114 >-%def_disable common >+%define pkg_rel alt114.1 >+%def_enable common > %def_enable kernelsource > > %define tbver %{nv_version}.%{nv_release}.%{nv_minor} >@@ -86,7 +86,7 @@ BuildRequires: kernel-build-tools rpm-macros-alternatives > ExclusiveArch: %ix86 x86_64 > #ExcludeArch: ppc64 x86_64 ppc s390 s390x ia64 > >- >+Packager: Denis Pynkin <dans@altlinux.ru> > > Group: %myGroup > Summary: %mySummary >@@ -132,7 +132,7 @@ GeForce/Quadro. Ðолее Ñанние веÑÑии видеокаÑÑ Ð½Ð° б > Group: Development/Kernel > Summary: Linux %module_name modules sources > License: %myLicense >-Packager: Kernel Maintainer Team <kernel@packages.altlinux.org> >+Packager: Denis Pynkin <dans@altlinux.ru> > # > %description -n kernel-source-%module_name-%module_version > %module_name modules sources for Linux kernel >@@ -145,6 +145,17 @@ License: %myLicense > %description -n %{bin_pkg_name}-devel > Development files for NVIDIA OpenGL > >+%package -n %{bin_pkg_name}_%{version}-cuda >+Group: Development/C >+Summary: CUDA related binaries and libraries >+License: %myLicense >+Requires: libcuda >+Provides: %virtual_pkg_name-cuda = %version-%release >+Obsoletes: %virtual_pkg_name-cuda < %version-%release >+ >+%description -n %{bin_pkg_name}_%{version}-cuda >+NVIDIA CUDA related binaries and libraries >+ > %package -n libcuda > Group: Development/C > Summary: CUDA library >@@ -172,6 +183,7 @@ Group: Development/C > Summary: Development files for NVIDIA VDPAU > License: %myLicense > Requires: libvdpau = %version-%release libX11-devel >+ > %description -n libvdpau-devel > Development files for NVIDIA VDPAU > >@@ -287,6 +299,13 @@ cat > %buildroot/%_altdir/%name <<__EOF__ > %_bindir/nvidia-bug-report.sh %_bindir/nvidia-bug-report-%version.sh %version > __EOF__ > >+# for Cuda >+for F in nvidia-smi nvidia-cuda-mps-control nvidia-cuda-mps-server >+do >+ install -m 0755 $F %buildroot/%_bindir/ >+done >+# Not sure if we need it: >+%__install -m 0644 libnvidia-ml.so.%tbver %buildroot/%_libdir/ > > %post -n %{bin_pkg_name}_%{version} > # switch nvidia driver and libraries >@@ -323,7 +342,7 @@ fi > %nv_lib_dir/libglx.* > %nv_lib_dir/libGL.so* > %nv_lib_dir/libnvidia-cfg.so* >-%nv_lib_dir/libvdpau_nvidia.so >+%nv_lib_dir/libvdpau_nvidia.so* > %nv_lib_dir/libwfb.so > %nv_lib_dir/libnvidia-wfb.so* > %nv_lib_dir/nvidia.xinf >@@ -334,21 +353,26 @@ fi > %dir %_includedir/nvidia > %_includedir/nvidia/GL > >-%if 0 > %files -n libvdpau > %_libdir/libvdpau.so.* > >+%if 1 > %files -n libvdpau-devel > %_libdir/libvdpau.so >-%_includedir/vdpau >+#_includedir/vdpau > %endif > >-#%files -n libcuda >-#%_libdir/libcuda.so.* >+%files -n %{bin_pkg_name}_%{version}-cuda >+%_bindir/nvidia-smi >+%_bindir/nvidia-cuda* >+%_libdir/libnvidia-ml.so* > >-#%files -n libcuda-devel >-#%_libdir/libcuda.so >-#%_includedir/cuda >+%files -n libcuda >+%_libdir/libcuda.so.* >+ >+%files -n libcuda-devel >+%_libdir/libcuda.so >+#_includedir/cuda > %endif > > %if_enabled kernelsource >@@ -357,6 +381,9 @@ fi > %endif > > %changelog >+* Sat Jun 29 2013 Denis Pynkin <dans@altlinux.ru> 319.32-alt114.1 >+- Rebuild with cuda libs >+ > * Wed Jun 26 2013 Sergey V Turchin <zerg@altlinux.org> 319.32-alt114 > - new version > >-- >1.8.1.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29120
: 5863