TensorFlow-gpu 2.12 and cuda 12.1
nitin chandra
nitinchandra1 at gmail.com
Fri May 5 16:48:31 UTC 2023
Hello All,
I am trying to install Tensorflow 2.12 via pip3
with CUDA 12.1 already installed.
OS is Ubuntu 22.04
Linux nitin-Ryzen5 5.19.1-051901-generic #202208111238 SMP PREEMPT_DYNAMIC
Thu Aug 11 12:45:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
CPU is Ryzen 5 5500 6 core
nitin at nitin-Ryzen5:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0
nitin at nitin-Ryzen5:~$ nvidia-smi
Fri May 5 21:55:14 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA
Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile
Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util
Compute M. |
| | |
MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce GTX 1050 Ti On | 00000000:01:00.0 Off |
N/A |
| 29% 35C P8 N/A / 75W| 297MiB / 4096MiB | 1%
Default |
| | |
N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes:
|
| GPU GI CI PID Type Process name
GPU Memory |
| ID ID
Usage |
|=======================================================================================|
| 0 N/A N/A 1622 G /usr/lib/xorg/Xorg
76MiB |
| 0 N/A N/A 1754 G /usr/bin/gnome-shell
32MiB |
| 0 N/A N/A 3127 G ...irefox/2605/usr/lib/firefox/firefox
185MiB |
+---------------------------------------------------------------------------------------+
nitin at nitin-Ryzen5:~$ python3
Python 3.11.3 (main, Apr 5 2023, 14:14:37) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cuda
>>> import torch
>>>
nitin at nitin-Ryzen5:~$ nvidia-smi -L
GPU 0: NVIDIA GeForce GTX 1050 Ti (UUID: GPU-10....)
BUT, when I try to install tensorflow-gpu
It gives error as follows (pasted in PasteBin) :
https://pastebin.com/FLXsTh1Y
Thanking you
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230505/905461ba/attachment.html>
More information about the ubuntu-users
mailing list