Ubuntu 17.04: blender cycles error: CUDA kernel compilation failed

Bug #1667874 reported by Mike Gresens
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
blender (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Upgrade to ubuntu 17.04
Running blender with cycles engine and GPU device.
Error: CUDA kernel compilation failed, see console for details.

Versions:

mike@workstation:~$ lsb_release -rd
Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04

mike@workstation:~$ blender --version
Blender 2.78 (sub 0)

mike@workstation:~$ gcc --version
gcc (Ubuntu 6.3.0-2ubuntu1) 6.3.0 20161229
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mike@workstation:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep__4_22:14:01_CDT_2016
Cuda compilation tools, release 8.0, V8.0.44

Error messages:

Compiling CUDA kernel ...
"nvcc" -arch=sm_61 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/mike/.config/blender/2.78/cache/cycles_kernel_sm61_A0A61E36E31F7DEB1BE59DAAA463B5A5.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -D__KERNEL_CUDA_VERSION__=80 -I"/usr/share/blender/scripts/addons/cycles/kernel"
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
       Use 'nvcc -ccbin clang-3.8' to use that instead.
CUDA kernel compilation failed, see console for details.

Refer to the Cycles GPU rendering documentation for possible solutions:
http://www.blender.org/manual/render/cycles/gpu_rendering.html

Error: CUDA kernel compilation failed, see console for details.

Revision history for this message
Mike Gresens (msg-72) wrote :

This bug is related to Bug #1667815.

affects: nvidia-cuda-toolkit (Ubuntu) → blender (Ubuntu)
Mike Gresens (msg-72)
description: updated
Revision history for this message
Mike Gresens (msg-72) wrote :

According to
http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#system-requirements
the nvcc does not support g++-6 at all!? :-(

After installing g++-5 by
sudo apt install g++-5
the nvcc started to work again.

Changed in blender (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.