[Bf-cycles] Cuda on OSX broken

Sebastian Röthlisberger lalli at gmx.net
Tue Oct 30 15:10:25 CET 2012


Hi there, 

since some weeks (at least) me and Lúthien Merilin are not able to build the CUDA Kernels anymore. Always the same Error.

Code:
ptxas info    : Compiling entry function 'kernel_cuda_shader' for 'sm_12'
ptxas info    : Used 24 registers, 4300+0 bytes lmem, 24+16 bytes smem, 1152 bytes cmem[0], 5876 bytes cmem[1]
ptxas info    : Compiling entry function 'kernel_cuda_tonemap' for 'sm_12'
ptxas info    : Used 7 registers, 48+16 bytes smem, 1152 bytes cmem[0], 20 bytes cmem[1]
ptxas info    : Compiling entry function 'kernel_cuda_path_trace' for 'sm_12'
ptxas(19657) malloc: *** mmap(size=266240) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ptxas fatal   : Memory allocation failure
scons: *** [/blender-build/build/darwin/intern/cycles/kernel/kernel_sm_12.cubin] Error 255
scons: building terminated because of errors.


tried with osx 10.7.5 - XCode 4.2 - 4.5.1 - CUDA Dev Tools + Driver from 4.0, 4.1, 4.2, 5.0.24, 5.0.36
then reinstalled the complete system to osx 10.8.5, same error with all possible combinations.

As i remember correctly, the issue began with upgrade CUDA Dev tools to 5.0.24 + GPU Driver 8.0.61 295.30.20f02
unfortunately, since the os already upgraded i can't downgrade the GPU Driver. (And i'm not entirely sure it is causing the Problem.)

it seems like an ordinary Out of Memory issue, but the Point is i've got 1.29Gb (from 8) free Memory while this is happening...

tried to find anything about either ptxas Error code 12 or scons Error 255, found nothing.

Strange thing as well is, with CUDA dev tools 4.0 if i start Blender without the kernels it's able to build it, without error..

So my questions: 

Is there something wrong in the sourcefiles?
Does it seem possible that this GPU Driver is causing the Error? 
Is there a difference from building from scons to building Blender "internally"?
Anyone able to build CUDA Kernels on OSX? if yes, which GPU Driver Version?

thanks for any idea

bashi



More information about the Bf-cycles mailing list