Hello community,

here is the log from the commit of package blender for openSUSE:Leap:15.2 
checked in at 2020-03-06 12:40:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/blender (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.blender.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "blender"

Fri Mar  6 12:40:11 2020 rev:22 rq:781470 version:2.82

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/blender/blender.changes        2020-02-19 
18:43:30.138449743 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.blender.new.26092/blender.changes     
2020-03-06 12:43:24.722835063 +0100
@@ -1,0 +2,16 @@
+Sat Feb 29 15:50:02 UTC 2020 - Hans-Peter Jansen <h...@urpla.net>
+
+- remove lang recommends
+- provide/obsolete blender-282-devel
+
+-------------------------------------------------------------------
+Sun Feb 23 16:08:53 UTC 2020 - Hans-Peter Jansen <h...@urpla.net>
+
+- Add SUSE-NVIDIA-GPU-rendering.txt
+
+-------------------------------------------------------------------
+Wed Feb 19 22:39:08 UTC 2020 - Hans-Peter Jansen <h...@urpla.net>
+
+- improve cuda configuration
+
+-------------------------------------------------------------------

New:
----
  SUSE-NVIDIA-GPU-rendering.txt

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ blender.spec ++++++
--- /var/tmp/diff_new_pack.52e1Fg/_old  2020-03-06 12:43:26.962836425 +0100
+++ /var/tmp/diff_new_pack.52e1Fg/_new  2020-03-06 12:43:26.986836440 +0100
@@ -59,12 +59,14 @@
 Source3:        geeko.README
 Source4:        blender-sample
 Source8:        %{name}.appdata.xml
+Source9:        SUSE-NVIDIA-GPU-rendering.txt
 Source99:       series
 # only rely on patch availibility, if python_36 is requested
 Patch0:         make_python_3.6_compatible.patch
 #!BuildIgnore:  libGLwM1
 BuildRequires:  OpenColorIO-devel
 BuildRequires:  OpenEXR-devel
+BuildRequires:  OpenImageIO
 BuildRequires:  OpenImageIO-devel
 BuildRequires:  SDL2-devel
 BuildRequires:  binutils-gold
@@ -180,7 +182,6 @@
 Requires(postun):  hicolor-icon-theme
 Provides:       %{name}-%{_suffix} = %{version}
 Obsoletes:      %{name}-%{_suffix} < %{version}
-Recommends:     %{name}-lang
 
 %description
 Blender is a 3D modelling and rendering package. It is the in-house
@@ -206,7 +207,9 @@
 #This package is for blender with cycles OSL
 License:        Apache-2.0
 Group:          Development/Sources
-Obsoletes:      blender-devel <= %{version}
+Obsoletes:      %{name}-devel <= %{version}
+Provides:       %{name}-%{_suffix} = %{version}
+Obsoletes:      %{name}-%{_suffix} < %{version}
 BuildArch:      noarch
 
 %description cycles-devel
@@ -351,6 +354,8 @@
       -DWITH_X11_XINPUT:BOOL=ON \
       -DWITH_X11_XF86VMODE:BOOL=ON \
       -DWITH_DOC_MANPAGE:BOOL=ON \
+      -DCYCLES_CUDA_BINARIES:BOOL=ON \
+      -DCYCLES_CUBIN_COMPILER:BOOL=OFF \
       
-DCYCLES_CUDA_BINARIES_ARCH="sm_30;sm_35;sm_37;sm_50;sm_52;sm_60;sm_61;sm_70;sm_75"
 
 make %{_smp_mflags}
@@ -374,10 +379,11 @@
 install -D -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/
 install -D -m 0644 %{SOURCE3} %{buildroot}%{_docdir}/%{name}/
 install -D -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/
-
 # install appdata file
 mkdir -p %{buildroot}%{_datadir}/appdata/
 install -D -m 0644 %{SOURCE8} %{buildroot}%{_datadir}/appdata/
+# GPU rendering text
+install -D -m 0644 %{SOURCE9} %{buildroot}%{_docdir}/%{name}/
 
 chmod -f 0644 
%{buildroot}%{_datadir}/%{name}/%{_version}/scripts/modules/console_python.py
 

++++++ SUSE-NVIDIA-GPU-rendering.txt ++++++
NVIDIA GPU rendering on openSUSE

Prerequisites

A CUDA-enabled GPU

If you are designated for this task, determine your exact GPU model with:

$ sudo hwinfo --gfxcard

Look up the model of your card (the part in square brackets of the Model: line
at https://developer.nvidia.com/cuda-gpus.

If the "Compute Capability" level for your GPU is 3.0 at least, your set.

Install the x11-video-nvidiaG0x driver. 

Please follow https://en.opensuse.org/SDB:NVIDIA_drivers and come back, when
you're ready.

Next, you need to install the cuda libraries from NVIDIA. This is documented
here: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/

Short version (at the time of this writing):

$ sudo zypper addrepo 
http://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/cuda-opensuse15.repo
$ sudo zypper refresh
$ sudo zypper install cuda-toolkit-10-2

Be careful, other cuda packages may want to deinstall the NVIDIA driver, which 
would be better avoided at this point.

Please add any user, that want to use NVIDIA GPU rendering, to the video group:

$ sudo usermod -a -G video <userid>

Now set up CUDA environment, e.g. in ~/.bashrc or in /etc/profile.local:

export 
PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}}
export 
LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Relogin or reboot to activate these changes.

Optional: verify the installation

As a prepared user (see above), run:

Check, if the correct driver if installed:

$ cat /proc/driver/nvidia/version

Check, if the nvidia compiler is installed correctly:

$ nvcc -V

Install the sample source code in <dir>

$ cuda-install-samples-10.2.sh <dir>

At the time of this writing, gcc9 or later is not supported from CUDA 10.2.
For Tumbleweed, you may want to create compatibility symlinks:

$ ln -s /usr/bin/gcc-7 ~/bin/gcc
$ ln -s /usr/bin/g++-7 ~/bin/g++

Compile the sample code:

$ cd <dir>/NVIDIA_CUDA-10.2_Samples
$ make -k

We run make with the keep going option, because it is expected to fail to
compile a few modules, e.g.:

In file included from cudaNvSci.cpp:12:0:
cudaNvSci.h:14:10: fatal error: nvscibuf.h: No such file or directory
 #include <nvscibuf.h>

Don't bother.

Check the device from CUDA POV:

$ ./bin/x86_64/linux/release/deviceQuery
./bin/x86_64/linux/release/deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 650"

[...]

You're set. Run blender, check Edit -> Preferences -> System -> CUDA
Enable devices to your liking.

Troubleshooting

Check, that user is member of the video group:

$ id

Check driver:

$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  440.59  Thu Jan 30 01:00:41 UTC 
2020
GCC version:  gcc version 9.2.1 20200128 [revision 
83f65674e78d97d27537361de1a9d74067ff228d] (SUSE Linux) 

$ nvidia-smi
Sun Feb 23 16:54:48 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 650     Off  | 00000000:01:00.0 N/A |                  N/A |
| 16%   29C    P8    N/A /  N/A |    207MiB /  1991MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

Check devices and permissions:

$ ls -la /dev/nvidia*
crw-rw----+ 1 root video 195,   0 21. Feb 13:51 /dev/nvidia0
crw-rw----+ 1 root video 195, 255 21. Feb 13:51 /dev/nvidiactl
crw-rw----+ 1 root video 195, 254 21. Feb 13:51 /dev/nvidia-modeset
crw-rw----+ 1 root video 240,   0 21. Feb 13:51 /dev/nvidia-uvm

$ chacl -l /dev/nvidia*
/dev/nvidia0 [u::rw-,u:<userid>:rw-,g::rw-,m::rw-,o::---]
/dev/nvidiactl [u::rw-,u:<userid>:rw-,g::rw-,m::rw-,o::---]
/dev/nvidia-modeset [u::rw-,u:<userid>:rw-,g::rw-,m::rw-,o::---]
/dev/nvidia-uvm [u::rw-,u:<userid>:rw-,g::rw-,m::rw-,o::---]

At this point, the CUDA devices should be available in Blender.

Remember: Blender needs a CUDA "Compute Capability" of 3.0 at least.

As a final resort, create a bug report at https://bugzilla.opensuse.org.

Enjoy!


Reply via email to