Comments (3)
Dear Sir,
I have fixed this problem. I think the previous error is because I lack a nvcc and set the environment correctly.
CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.file)"))
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/:$CUDNN_PATH/lib
Thanks.
from tensorflow.
@Dustglaxy,
Yes, As you mentioned, you should install cuda toolkit and cudnn, then you should update LD_LIBRARY_PATH and it will work. Glad the issue is resolved. Please feel free to move this issue to closed status.
> conda activate tf-test
> conda install cudatoolkit=11.8
> export LD_LIBRARY_PATH="$HOME/miniconda3/envs/tf-test/lib"
> conda install cudnn=8.9
> python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2024-11-06 01:43:59.188890: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-11-06 01:44:00.239682: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-11-06 01:44:01.023567: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2024-11-06 01:44:01.065869: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2024-11-06 01:44:01.066223: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
from tensorflow.
Are you satisfied with the resolution of your issue?
Yes
No
from tensorflow.
Related Issues (20)
- TFlite: GPU delegate: ability to limit amount of GPU memory used by TFlite?
- Tensorflow Dataset API continues to be broken, list_files no longer works HOT 7
- In the local server command line environment, TensorFlow is able to recognize and utilize the GPU. However, when attempting to use TensorFlow in a Jupyter Notebook through a remote VSCode connection to the same server, there is an issue with loading the GPU libraries. HOT 1
- wasm-ld: error: --shared-memory is disallowed by c_api.o because it was not compiled with 'atomics' or 'bulk-memory' features. HOT 6
- IntelliSence in VS Code - Keras module not found by the IDE but is present HOT 3
- Tensorflow distributed + DTensor approach for large outer product HOT 1
- `tf.data.Dataset.prefetch()` error with basic usage HOT 1
- TensorFlow embedded in esp32
- Tensorflow crash driver CUDA of GeForce RTX 4090 HOT 3
- No dashboards are active for the current data set. HOT 3
- Memory usage with tf.data pipeline (HDF5, TFRecords) HOT 4
- Build Error on aarch64 AWS Graviton3 with Ubuntu 22.04 for TensorFlow v2.17.0 with mkl_aarch64 HOT 1
- cublas64_11.dll,cublasLt64_11.dll,cufft64_10.dll,cusparse64_11.dll,cudnn64_8.dll not found issue HOT 1
- Output says inference.so file does not exist when importing tfdf when it exists HOT 1
- Error: 'class tensorflow::tools::proto_splitter::SavedModelSplitter' has no member named 'WriteToCord' HOT 1
- tensorflow HOT 1
- TF timeline timestamp was shifted. The resultant timeline cannot be shown correctly in chrome tracing viewer
- TFLite 2.16.2 and 2.17.0 not present on Maven
- Which phones are supporting tensorflow lite GPU delegate?
- Wheel built for wrong python version (3.11 not 3.10) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.