nvidia - CUDA kernel compilation failed - Ask Ubuntu


i have geforce 1070, ubuntu-studio 16.10 , installed cuda 8 (from here: https://developer.nvidia.com/cuda-toolkit). install g++ 5 , make symlink

ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc

but when try render model in blender, got stack of messages after "compile cuda kernel". log (run console)

crystal@ustudio:~$ blender connect failed: no such file or directory read new prefs: /home/crystal/.config/blender/2.77/config/userpref.blend cannot connect server socket err = no such file or directory cannot connect server request channel jack server not running or cannot started jackshmreadwriteptr::~jackshmreadwriteptr - init not done 4294967295, skipping unlock jackshmreadwriteptr::~jackshmreadwriteptr - init not done 4294967295, skipping unlock al lib: (ww) alcjackbackendfactory_init: jack_client_open() failed, 0x11 al lib: (ww) alc_initconfig: failed initialize backend "jack" read blend: /home/crystal/downloads/bmw27.blend skipping driver '-90*brake', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled cuda version 8.0 detected, build may succeed cuda 7.5 officially supported. compiling cuda kernel ... "/usr/local/cuda/bin/nvcc" -arch=sm_61 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/crystal/.config/blender/2.77/cache/cycles_kernel_sm61_19bab894867ffaff2adc00f401d5e4eb.cubin" --ptxas-options="-v" --use_fast_math -i"/usr/share/blender/scripts/addons/cycles/kernel" -dnvcc -d__kernel_cuda_version__=80 /usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu:94:2: error: #error "unknown or unsupported cuda architecture, can't determine launch bounds"  #error "unknown or unsupported cuda architecture, can't determine launch bounds"   ^ /usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu:112:87: error: division 0 in #if  #if cuda_multipressor_max_registers/(cuda_threads_block_width*cuda_threads_block_width*cuda_kernel_max_registers) > cuda_multiprocessor_max_blocks                                                                                        ^ cuda kernel compilation failed, see console details.  refer cycles gpu rendering documentation possible solutions: http://www.blender.org/manual/render/cycles/gpu_rendering.html  skipping driver '100*power', automatic scripts disabled skipping driver '90*brake', automatic scripts disabled skipping driver '-100*power', automatic scripts disabled skipping driver '-90*brake', automatic scripts disabled error: cuda kernel compilation failed, see console details. 

blender --version
blender 2.77 (sub 0)

how fix it? in advance.

this worked me on blender 2.76b (ubuntu 16.04)

  1. open kernel.cu

sudo gedit /usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu

  1. find line looks this:

/* 5.0 , 5.2 */

#elif __cuda_arch__ == 500 || __cuda_arch__ == 520

it may different, should start #elif __cuda_arch___ ==

  1. change line to: #elif __cuda_arch__ >= 500

this allow blender compile newer cuda architectures. may not work expected, , you'll warnings first time run (as compiles), won't compile error more. also, working me on ubuntu 16.04 blender 2.76b , cuda 8.0


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User