-
Notifications
You must be signed in to change notification settings - Fork 428
running on GPU #158
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
Comments
That log line doesn't say anything about whether it's using GPU or not. It just says you're using a binary that wasn't compiled with SSE, AVX, or FMA, which your CPU supports. This message is normal if you're using a precompiled binary on a modern CPU. Since you're installing the shared libraries manually, you might want to double-check that Rust is using the libraries you installed and not downloading its own copies, especially since it uses CPU by default (unless you enable the By the way, we now have a new mailing list for questions like this. |
Thanks. I will use the mailing list in the future. The complain message about opt flags is not a problem. The problem is it's the only output.
This log is I think not specific to python (you can see the log format is the same as rust version, so I guess the log comes from c backend). I did a little experiment and found strange behavior:
Here is my
So my test binary is built against /usr/local/libtensorflow.so (gpu version) but running via |
Correction: The issue is that tensorflow-sys crate ignores my LD_LIBRARY_PATH and downloads its own cpu libtensorflow.
|
Solved: If you built from source and copied lib*.so, run the following: test:
If you download the pre-built binary, you may have to generate yourself. |
My code doesn't run on GPU.
I installed libtensorflow with
python installation uses GPU, but rust code only prints
Is there extra step I need to configure?
The text was updated successfully, but these errors were encountered: