Closed JuliaWasala closed 1 year ago
It doesn't look like a AutoKeras issue, but a local setup issue. Can you run TF successfully on GPU with your setup?
No, but I got it working by placing the lib in my working directory. Not a pretty fix but better than nothing.
From: Haifeng Jin @.> Sent: Thursday, 5 January 2023 21:37 To: keras-team/autokeras @.> Cc: Julia Wąsala @.>; Author @.> Subject: Re: [keras-team/autokeras] Bug: libdevice not found at ./libdevice / doesn't run on GPU (Issue #1813)
It doesn't look like a AutoKeras issue, but a local setup issue. Can you run TF successfully on GPU with your setup?
— Reply to this email directly, view it on GitHubhttps://github.com/keras-team/autokeras/issues/1813#issuecomment-1372715586, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIISAST3TZACQD55RRXGINDWQ4WFPANCNFSM6AAAAAAS6QYCMQ. You are receiving this because you authored the thread.Message ID: @.**@.>>
For anyone encounter this problem, you may follow the following instructions to install TensorFlow.
conda create --name=test python=3.10 -y
conda run -n test conda install cuda-nvcc=11.3.58 cudatoolkit=11.2.2 cudnn=8.1.0 -c conda-forge -c nvidia -y
conda run -n test pip install tensorflow
conda run -n test mkdir -p $CONDA_PREFIX/etc/conda/activate.d
conda run -n test printf 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/\nexport XLA_FLAGS=--xla_gpu_cuda_data_dir=$CONDA_PREFIX/lib/\n' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
conda run -n test mkdir -p $CONDA_PREFIX/lib/nvvm/libdevice
conda run -n test cp $CONDA_PREFIX/lib/libdevice.10.bc $CONDA_PREFIX/lib/nvvm/libdevice/
Bug Description
Bug Reproduction
Code for reproducing the bug: Installation:
Code:
With the ImageClassifier training/testing code:
Expected Behavior
Setup Details
Include the details about the versions of: