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.
Related Issues (20)
- CMake Error: could not find requested file BuildFlatBuffers when cmake the lite kernel test HOT 1
- tf.py_function does not output ragged tensors HOT 2
- Aborted (core dumped) in `tf.raw_ops.CropAndResizeGradImage` HOT 2
- Crash in `tf.raw_ops.UnsortedSegmentJoin/UnsortedSegmentMin/UnsortedSegmentMax/UnsortedSegmentProd/UnsortedSegmentSum` HOT 4
- error: no such file or directory: 'v2' when Bazel build for macOS HOT 6
- GCS gfile operations fail in TF 2.17.0rc0 and 2.18 nightly when not running in GCP HOT 9
- [Feature Request] Batch Renormalization HOT 1
- -
- Update curl from 8.4.0 to 8.6.0 due to security vulnerabilities CVE-2023-46219 and CVE-2023-46218 HOT 4
- Immediate Assistance Required: Issue with Converting Keras Model to TFLite HOT 2
- Help Needed: AttributeError in tf2onnx Conversion from ONNX to TensorFlow Model HOT 2
- In tflite, how to use the same memory to serve different models with exactly the same structure HOT 5
- Too many duplicate debug logs
- Cannot take the length of shape with unknown rank. HOT 16
- Non-deprecated tf.keras.preprocessing alternatives don't cover properly all the deprecated features HOT 3
- build arm image use docker HOT 2
- cannot import name 'mean_squared_error' from 'tensorflow.keras.losses HOT 3
- Improve documentation for custom training loops HOT 2
- `tf.debugging.enable_check_numerics` maximum recursion depth HOT 2
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.