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
TensorFlow compile from source with GPU support error #16988
Comments
@ciprianflow have you gotten other TF builds to work from src on this machine, and it's just this particular version that isn't building for you? |
Yes I have, I've actually downgraded to CUDA 8.0 and I managed to successfully build. It seems to be a problem with CUDA 9.0 only. |
I'm experiencing the same issue in very similar circumstances. I've read all the related issues and stack overflow posts I can find, and employed the workaround to no avail. I'm trying to build on a machine running The shared objects which @ciprianflow and @cy89 could we reopen? |
I am also experiencing this issue. I've tried TF v.1.8 and the latest Github master. My system: I have tried with/without the --action_env="LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" as suggested. Failure occurs in various places (this is a 32-core machine, so there's some parallelism-related non-determinism with which files cause a fault-out first). It gets to about 11,000 of 12,462 tasks. """"" log with verbose errors """" |
I was able to work around this issue by modifying: adding this under toolchain "local_linux" (I used my full pathnames.. but I put in $HOME for reference here) linker_flag: "-Wl,-rpath=$HOME/.local/cuda/lib64" and below that under %host_compiler_includes: |
@dan-1d Thanks! |
dan1-d I had modified CROSSTOOL_nvcc.tpl but it did not help. can you post the complete modified cross tool file pls? |
System information
Describe the problem
I have tried to compile the master version from source, I've added all the env variables, been through stackoverflow and github issues, nothing works, I think it's a bug.
Source code / logs
ERROR: /home/ubuntu/work/master/tensorflow/tensorflow/contrib/periodic_resample/BUILD:40:1: Linking of rule '//tensorflow/contrib/periodic_resample:gen_gen_periodic_resample_op_py_py_wrappers_cc' failed (Exit 1)
/usr/bin/ld: warning: libcublas.so.9.0, needed by bazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scontrib_Speriodic_Uresample_Cgen_Ugen_Uperiodic_Uresample_Uop_Upy_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcudnn.so.7, needed by bazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scontrib_Speriodic_Uresample_Cgen_Ugen_Uperiodic_Uresample_Uop_Upy_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcurand.so.9.0, needed by bazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scontrib_Speriodic_Uresample_Cgen_Ugen_Uperiodic_Uresample_Uop_Upy_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so, not found (try using -rpath or -rpath-link)
bazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scontrib_Speriodic_Uresample_Cgen_Ugen_Uperiodic_Uresample_Uop_Upy_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so: undefined reference to `cublasGemmEx@libcublas.so.9.0'
and a lot more going
The text was updated successfully, but these errors were encountered: