Cuda Error CUDA_ERROR_NO_BINARY_FOR_GPU

I have a PTX code that is not loading. I run this on 650M, with OSX. Other CUDA examples work fine on the system, but when I load the module, I always get error 209: CUDA_ERROR_NO_BINARY_FOR_GPU

What am I missing?

.version 3.1 .target sm_20, texmode_independent .address_size 64 // .globl examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx .entry examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx( .param .u64 .ptr .global .align 8 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_0, .param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_1, .param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_2, .param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_3 ) { .reg .pred %p<396>; .reg .s16 %rc<396>; .reg .s16 %rs<396>; .reg .s32 %r<396>; .reg .s64 %rl<396>; .reg .f32 %f<396>; .reg .f64 %fl<396>; ld.param.u64 %rl0, [examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_0]; mov.b64 func_retval0, %rl0; ret; } 
+4
source share
2 answers

You get an error because your PTX contains a syntax error and never compiles as a result. Line

 mov.b64 func_retval0, %rl0; 

refers to the label func_retval0 , but this is not indicated in the PTX file anywhere. You can verify this by trying to compile PTX yourself using the toolchain:

 $ ptxas -arch=sm_20 own.ptx ptxas own.ptx, line 24; error : Arguments mismatch for instruction 'mov' ptxas own.ptx, line 24; error : Unknown symbol 'func_retval0' ptxas own.ptx, line 24; error : Label expected for forward reference of 'func_retval0' ptxas fatal : Ptx assembly aborted due to errors 
+6
source

Great tip for starting ptxas. I was getting error 209: the problem turned out __shared__ the memory was exceeded. This used to be a compilation warning. I have Cuda 5.5 and no compilation warnings now - even with detailed inclusion. thanks

+1
source

All Articles