Skip to content
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

The use of the GPU. #840

Open
Ambitioner-c opened this issue Dec 21, 2020 · 0 comments
Open

The use of the GPU. #840

Ambitioner-c opened this issue Dec 21, 2020 · 0 comments
Labels

Comments

@Ambitioner-c
Copy link

Ambitioner-c commented Dec 21, 2020

Describe the Question


I can't use GPU.

Environment:

TensorFlow-gpu==2.0.0

>>>tf.__version__
'2.0.0'

CUDA==10.0

~$ nvcc -V
Cuda compilation tools, release 10.0, V10.0.130
>>> import tensorflow as tf
>>> tf.test.is_gpu_available()
...
...
True

I called the GPU in the program.

import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"

However

~$ nvidia-smi
Sun Dec 20 22:20:35 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.40       Driver Version: 430.40       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  TITAN X (Pascal)    Off  | 00000000:02:00.0 Off |                  N/A |
| 23%   36C    P8    10W / 250W |    269MiB / 12196MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  TITAN X (Pascal)    Off  | 00000000:03:00.0 Off |                  N/A |
| 23%   40C    P8    11W / 250W |     10MiB / 12196MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  TITAN X (Pascal)    Off  | 00000000:82:00.0 Off |                  N/A |
| 23%   41C    P8     9W / 250W |     10MiB / 12196MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   3  TITAN X (Pascal)    Off  | 00000000:83:00.0 Off |                  N/A |
| 25%   44C    P0    58W / 250W |     10MiB / 12196MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     21783      C   /home/cuifulai/Lib/Python36/bin/python3      259MiB |
+-----------------------------------------------------------------------------+

Describe your attempts

  • [√] I walked through the tutorials
  • [√] I checked the documentation
  • [√] I checked to make sure that this is not a duplicate question
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant