[Bug 1094777] New: Blender cycles are broken
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777 Bug ID: 1094777 Summary: Blender cycles are broken Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: mati865@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Blender spec file has command that removes cycles headers from the package. It results in broken GPU rendering with cycles, example with CUDA: ``` Compiling CUDA kernel ... "/usr/local/cuda/bin/nvcc" -arch=sm_61 --cubin "/usr/share/blender/2.79/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu" -o "/home/mateusz/.cache/cycles/kernels/cycles_kernel_sm61_52CFAD0EF032EEC8D0F7A458B14C818A.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -D__KERNEL_CUDA_VERSION__=92 -I"/usr/share/blender/2.79/scripts/addons/cycles/source" /usr/share/blender/2.79/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu:21:10: fatal error: kernel/kernel_compat_cuda.h: No such file or directory #include "kernel/kernel_compat_cuda.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. CUDA kernel compilation failed, see console for details. ``` Removing `find %{buildroot}%{_datadir}/%{name}/%{_version}/scripts/ -name "*.h" -print -delete` from line 321 as shown here: https://build.opensuse.org/package/rdiff/home:mati865:branches:graphics/blender?linkrev=base&rev=2 resolves issue and Blender works fine. However it causes rpmlint errors: ``` [ 988s] A file that is needed only e.g. when developing or building software is [ 988s] included in a non-devel package. These files should go in devel packages. [ 988s] [ 988s] (none): E: badness 10450 exceeds threshold 1000, aborting. [ 988s] 3 packages and 0 specfiles checked; 209 errors, 0 warnings. [ 988s] [ 988s] [ 988s] linux-d4vu failed "build blender.spec" at Sun May 27 12:56:33 UTC 2018. [ 988s] ``` On Fedora those headers are packed in the main package causing rpmlint warnings which are ignored: https://taskotron.fedoraproject.org/artifacts/all/3f4f799e-48ae-11e8-a47d-52... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777
Mateusz Mikuła
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777
Mateusz Mikuła
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777#c1
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777#c2
Mateusz Mikuła
Blender is deliberately packaged to be gpu and cpu agnostic in openSUSE,
Without cycles headers Blender GPU rendering doesn't work with Nvidia at least. I cannot test OpenCL because I don't have AMD card but I expect it to fail because `kernel_compat_opencl.h` was removed as well.
I'm assuming that this bug is against the source rpm and the output you posted is the result of some form of build command.
First error (with CUDA) happens when Blender tries to build cycles kernel. Second error with rpmlint is the impact of removing line which breaks cycles from `blender.spec`, I don't know how to solve it in openSUSE.
It is impossible to package anything built against cuda due to license issues.
Those headers are property of Blender Foundation and are licensed under Apache License, Version 2.0. CUDA is not unnecessary for package building. Blender will build and link cycles kernel against it on runtime.
Could you please post the steps to reproduce this bug.
1. Start blender from terminal with command `blender` 2. In Blender open: File->User Preferences (or use Ctrl+Alt+U) 3. Go to System tab and under Cycles Compute Device select CUDA or OpenCL depending on the GPU 4. Save and exit settings 5. At the centre or top toolbar click list with `Blender Render` selected and choose `Cycles Render` 6. On the right toolbar change Device from `CPU` to `GPU Compute` 7. Click Render above previously changed Device 8. Look into terminal for errors -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777
http://bugzilla.opensuse.org/show_bug.cgi?id=1094777#c3
--- Comment #3 from Dave Plater
participants (1)
-
bugzilla_noreply@novell.com