-
Notifications
You must be signed in to change notification settings - Fork 614
Package import fails when using tensorflow-gpu and CUDA libraries are missing #532
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thanks for catching. Just for clarity |
Yes. |
Thx.. I was also able to confirm this using the cc @gunan @yifeif Do either of you have any insight on why our dynamic loading (when paired with I tested the same release 0.5.1 with just |
Hmmm as just a note. When running
But it doesn't Segfault right afterward and eventually returns EDIT ---- Not the same warning. Our package was looking for |
Full trace using faulthandler. Not much info other than it happens in
|
One scenario I see happening is the following:
Yifei, do we have our wrappers for CUDA code exposed? is there a way to rewrite tfa to use those, and avoid directly linking CUDA? |
I find the same problem when using tensorflow-addons==0.5.0 with tensorflow-gpu==2.0.0-rc0 on Linux non-gpu environment. |
I think we can link against libtensorflow_framework.so instead of nvidia's shared library as long as the symbols used by custom ops are wrapped in TF, but I haven't tried it yet. The tool chain needs to be udpated to point to libtensorflow_framework.so. |
System information
Describe the bug
When using
tensorflow-gpu
, importing thetensorflow_addons
package fails if CUDA libraries are missing while importingtensorflow
itself works without issue.Code to reproduce the issue
On a non-GPU system:
Other info / logs
The text was updated successfully, but these errors were encountered: