-
-
Notifications
You must be signed in to change notification settings - Fork 82
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-gpu 2.17.0 Could not find GPU #410
Comments
the error is still there after installing |
Hi @alexfanqi, please report the result when setting the environment variable TF_CPP_MAX_VLOG_LEVEL=3 python -c "import tensorflow as tf;print(tf.config.list_physical_devices('GPU'))" |
And searching my conda env, I found
also jax and pytorch seem to be detecting my GPU correctly |
Are you using Windows Subsystem for Linux? |
Nah, this is on Fedora and micromamba. Maybe it is having similar issues with WSL? |
I'm not sure. many of us don't use windows, so WSL adds an other layer of complexity to troubleshoot. I wanted to make sure you were not seeing it. On ubuntu it seems to find it fine. But tbh, you report
which I have never seen before (which is why i thought you were on WSL). |
ok, fiddling with
but apparently libcudnn version doesn't match with tensorflow. simple soft linking cudnn.so doesn't work.
|
Can you please create a clean environment (without your own proprietary stuff) and see if the issue can be produced? Please provide the full list of installed packages, not the subset that you feel is helpful. The reason I ask is that build "X02" and above were built with CUDNN9 #402 |
sure, I don't have proprietary stuff and I tried to create a clean environment with
And with the exports, I got the same mismatched cudnn version
a full list of packages
|
Can yo utry to run with the environment variable
Low probability of working.... but got to try |
no luck :-\ |
silly thing, can you restart your computer? it helps when nvidia updates their driver live. |
finally, does |
still no luck. btw, in case other people are searching for tensorrt, tensorrt can seemingly be loaded as well via
Tensorflow 2.17.0 apparently requires tensorrt version 8.6. |
After downgrading to cudnn to 8.9.7, tensorflow loads my GPU successfully. So tensorflow 2.17.0 is not compiled with cudnn 9 although it is updated in the dependency list even after #402? |
lets not mix issues.
I think something is up with fedora's libraries names. It wouldn't be the first time. Basically I have GPU detected by tensorflow
and conda list``` $ conda list # packages in environment at /home/mark/miniforge3/envs/tf: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge absl-py 2.1.0 pyhd8ed1ab_1 conda-forge astunparse 1.6.3 pyhd8ed1ab_3 conda-forge brotli-python 1.1.0 py312h2ec8cdc_2 conda-forge bzip2 1.0.8 h4bc722e_7 conda-forge c-ares 1.34.4 hb9d3cd8_0 conda-forge ca-certificates 2024.12.14 hbcca054_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge certifi 2024.12.14 pyhd8ed1ab_0 conda-forge cffi 1.17.1 py312h06ac9bb_0 conda-forge charset-normalizer 3.4.1 pyhd8ed1ab_0 conda-forge cuda-crt-tools 12.6.85 ha770c72_0 conda-forge cuda-cudart 12.6.77 h5888daf_0 conda-forge cuda-cudart_linux-64 12.6.77 h3f2d84a_0 conda-forge cuda-cupti 12.6.80 hbd13f7d_0 conda-forge cuda-nvcc-tools 12.6.85 he02047a_0 conda-forge cuda-nvrtc 12.6.85 hbd13f7d_0 conda-forge cuda-nvtx 12.6.77 hbd13f7d_0 conda-forge cuda-nvvm-tools 12.6.85 he02047a_0 conda-forge cuda-version 12.6 h7480c83_3 conda-forge cudnn 9.3.0.75 h62a6f1c_2 conda-forge flatbuffers 24.3.25 h59595ed_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_3 conda-forge fontconfig 2.15.0 h7e30c49_1 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge freetype 2.12.1 h267a509_2 conda-forge gast 0.6.0 pyhd8ed1ab_0 conda-forge giflib 5.2.2 hd590300_0 conda-forge google-pasta 0.2.0 pyhd8ed1ab_2 conda-forge grpcio 1.65.5 py312h374181b_0 conda-forge h2 4.1.0 pyhd8ed1ab_1 conda-forge h5py 3.12.1 nompi_py312hd203070_103 conda-forge hdf5 1.14.4 nompi_h2d575fe_105 conda-forge hpack 4.0.0 pyhd8ed1ab_1 conda-forge hyperframe 6.0.1 pyhd8ed1ab_1 conda-forge icu 75.1 he02047a_0 conda-forge idna 3.10 pyhd8ed1ab_1 conda-forge importlib-metadata 8.5.0 pyha770c72_1 conda-forge keras 3.8.0 pyh753f3f9_0 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.21.3 h659f571_0 conda-forge ld_impl_linux-64 2.43 h712a8e2_2 conda-forge libabseil 20240722.0 cxx17_hbbce691_4 conda-forge libaec 1.1.3 h59595ed_0 conda-forge libblas 3.9.0 26_linux64_openblas conda-forge libcblas 3.9.0 26_linux64_openblas conda-forge libcublas 12.6.4.1 hbd13f7d_0 conda-forge libcufft 11.3.0.4 hbd13f7d_0 conda-forge libcurand 10.3.7.77 hbd13f7d_0 conda-forge libcurl 8.11.1 h332b0f4_0 conda-forge libcusolver 11.7.1.2 hbd13f7d_0 conda-forge libcusparse 12.5.4.2 hbd13f7d_0 conda-forge libedit 3.1.20240808 pl5321h7949ede_0 conda-forge libev 4.33 hd590300_2 conda-forge libexpat 2.6.4 h5888daf_0 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc 14.2.0 h77fa898_1 conda-forge libgcc-ng 14.2.0 h69a702a_1 conda-forge libgfortran 14.2.0 h69a702a_1 conda-forge libgfortran5 14.2.0 hd5240d6_1 conda-forge libgomp 14.2.0 h77fa898_1 conda-forge libgrpc 1.65.5 hf5c653b_0 conda-forge libjpeg-turbo 3.0.0 hd590300_1 conda-forge liblapack 3.9.0 26_linux64_openblas conda-forge liblzma 5.6.3 hb9d3cd8_1 conda-forge libnghttp2 1.64.0 h161d5f1_0 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libnvjitlink 12.6.85 hbd13f7d_0 conda-forge libopenblas 0.3.28 pthreads_h94d23a6_1 conda-forge libpng 1.6.45 h943b412_0 conda-forge libprotobuf 5.27.5 h5b01275_2 conda-forge libre2-11 2024.07.02 hbbce691_2 conda-forge libsqlite 3.47.2 hee588c1_0 conda-forge libssh2 1.11.1 hf672d98_0 conda-forge libstdcxx 14.2.0 hc0a3c3a_1 conda-forge libstdcxx-ng 14.2.0 h4852527_1 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libxcb 1.17.0 h8a09558_0 conda-forge libxcrypt 4.4.36 hd590300_1 conda-forge libzlib 1.3.1 hb9d3cd8_2 conda-forge markdown 3.6 pyhd8ed1ab_0 conda-forge markdown-it-py 3.0.0 pyhd8ed1ab_1 conda-forge markupsafe 3.0.2 py312h178313f_1 conda-forge mdurl 0.1.2 pyhd8ed1ab_1 conda-forge ml_dtypes 0.4.0 py312hf9745cd_2 conda-forge namex 0.0.8 pyhd8ed1ab_1 conda-forge nccl 2.24.3.1 hb92ee24_0 conda-forge ncurses 6.5 h2d0b736_2 conda-forge numpy 1.26.4 py312heda63a1_0 conda-forge openssl 3.4.0 h7b32b05_1 conda-forge opt_einsum 3.4.0 pyhd8ed1ab_1 conda-forge optree 0.13.1 py312h68727a3_1 conda-forge packaging 24.2 pyhd8ed1ab_2 conda-forge pip 24.3.1 pyh8b19718_2 conda-forge protobuf 5.27.5 py312h2ec8cdc_0 conda-forge pthread-stubs 0.4 hb9d3cd8_1002 conda-forge pycparser 2.22 pyh29332c3_1 conda-forge pygments 2.19.1 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyha55dd90_7 conda-forge python 3.12.8 h04291be_102_cpython ramonaoptics python-flatbuffers 24.12.23 pyhe33e51e_0 conda-forge python_abi 3.12 5_cp312 conda-forge re2 2024.07.02 h9925aae_2 conda-forge requests 2.32.3 pyhd8ed1ab_1 conda-forge rich 13.9.4 pyhd8ed1ab_1 conda-forge setuptools 75.8.0 pyhff2d567_0 conda-forge six 1.17.0 pyhd8ed1ab_0 conda-forge snappy 1.2.1 h8bd8927_1 conda-forge tensorboard 2.17.1 pyhd8ed1ab_0 conda-forge tensorboard-data-server 0.7.0 py312hda17c39_2 conda-forge tensorflow 2.17.0 cuda120py312h02ad488_203 conda-forge tensorflow-base 2.17.0 cuda120py312hbec54f7_203 conda-forge tensorflow-estimator 2.17.0 cuda120py312hfa0f5ef_203 conda-forge termcolor 2.5.0 pyhd8ed1ab_1 conda-forge tk 8.6.13 xft_h3930020_2 mark.harfouche typing-extensions 4.12.2 hd8ed1ab_1 conda-forge typing_extensions 4.12.2 pyha770c72_1 conda-forge tzdata 2024b hc8b5060_0 conda-forge urllib3 2.3.0 pyhd8ed1ab_0 conda-forge werkzeug 3.1.3 pyhd8ed1ab_1 conda-forge wheel 0.45.1 pyhd8ed1ab_1 conda-forge wrapt 1.17.0 py312h66e93f0_0 conda-forge xorg-libx11 1.8.10 h4f16b4b_1 conda-forge xorg-libxau 1.0.12 hb9d3cd8_0 conda-forge xorg-libxdmcp 1.1.5 hb9d3cd8_0 conda-forge xorg-libxft 2.3.8 ha04879e_1 conda-forge xorg-libxrender 0.9.12 hb9d3cd8_0 conda-forge zipp 3.21.0 pyhd8ed1ab_1 conda-forge zstandard 0.23.0 py312hef9b889_1 conda-forge zstd 1.5.6 ha6fb4c9_0 conda-forge ```so it has cudnn 9 and tensorflow 2.17.0 build 203 |
Could you print python -c "import tensorflow as tf;print(tf)" Just want to confirm the TF you load is what you just installed. |
ah! yes, thank you for pointing that out. I didn't expect it is taking my local user version. |
Solution to issue cannot be found in the documentation.
Issue
I installed tensorflow-gpu 2.17.0 via conda. It cannot recognise my GPU and report the following warning,
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: