-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CUDA_ERROR_NO_BINARY_FOR_GPU #289
Comments
How did you start the tests? You must specify which device to run on: DEVICE=cuda0 make test On Tue, Nov 22, 2016 at 1:52 AM, khaotik [email protected] wrote:
|
@nouiz I'm already doing that. My command line is:
|
Most often, NO_BINARY_FOR_GPU, means that there is a syntax error or some other problem while compiling. The C tests want a full device (as in DEVICE=cuda0, not DEVICE=cuda). Also, if you use the distribution-packaged drivers they tend to not work properly with cuda. To see what the real problem is, we should switch from cuLoadModule to cuLoadModuleEx and use the additional parameters to get the build logs. |
@abergeron Modified code to cuLoadModuleEx to get error messages. Turns out I lacked |
If you want to make a PR with your code to show those messages (when compiled with DEBUG). I would be interested. |
Trying to switch to the new GPU backend for Theano, however most tests for
libgpuarray
failed.Debugging through the code:
In file
libgpuarray/src/gpuarray_buffer_cuda.c
:In function
static gpukernel *cuda_newkernel(..)
:calling to
cuModuleLoadData
returned code 209, which isCUDA_ERROR_NO_BINARY_FOR_GPU
in mycuda.h
.OS: Kali Linux Rolling
CPU Core i5-3210M (64 bit)
GPU GeForce GT650m compute capability 3.0
gcc 4.9.3
CUDA Toolkit 8.0
NVIDIA driver: 367.44
I'm unsure about the cause from this point on. Theano runs OK with the old backend.
UPDATE This and this case is similar to mine.
UPDATE 2 this is the generated kernel source from running
check_elemwise
test:I'm able to compile the above kernel by using
nvcc
from command line.UPDATE 3 This is the generated PTX assembly of above kernel after calling
call_compiler
:I saved the file as
test.ptx
. When trying to assemble withptxas
:This is quite weird. I wonder is it just me or some else also have the problem.
The text was updated successfully, but these errors were encountered: