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
RuntimeError: Invalid Device #0 #24
Comments
Can you build dlprimitives and run some basic tests - I want to see if there an issue with driver or something else run some basic test from there https://github.com/artyom-beilis/dlprimitives/blob/master/docs/build.md#benchmarking to see if it runs at all. |
|
8/33 Test for
|
|
Looks like a nice result for an old GPU. No it seems that from dlprimitives side it works more or less ok. There is some accuracy failure with Wingord that can be investigated further but in general seems to be working.
I see you use 2.0.0. Can you check against 1.13? I just want to make sure it isn't related to latest development changes. |
I just switch pytorch to ver 1.13.1 and rebuild it, but
little change, first line output was |
Sorry for delay can you please add to CLTensor.h few debug lines to see why device/platform wasn't loaded:
|
That's OK. we have some new output here
|
Ok from what I see that the query of platforms list fails... Looks like kind of installation of OpenCL drivers/runtime issue. Can you check what libOpenCL.so the build/libpt_ocl.so is linked to and which is linked to clinfo? Check if there are several libOpenCL.so libraries exist. Also look into |
|
I just built a shared library with cl::Platform::get(&platforms) and loaded it with CDLL in python. It works fine in system Python, but not in conda Python. I think the error is caused by conda environment configuration, not related to pytorch_dlprim. |
It works fine now. |
RuntimeError: Invalid Device in there, I don't know why.
python mnist.py --device=ocl:0
clinfo
conda list
The text was updated successfully, but these errors were encountered: