-1

I have GPUs in my machine and I am running linux. Is it possible to take up the memory space without having to run any application? For example below is the output if the GPUs arent being utilized.

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.104      Driver Version: 410.104      CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  On   | 00000000:01:00.0 Off |                  N/A |
| 62%   66C    P8    19W / 280W |     18MiB / 11176MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 108...  On   | 00000000:02:00.0 Off |                  N/A |
| 71%   75C    P2   261W / 280W |     18MiB / 11178MiB |     99%      Default |
+-------------------------------+----------------------+----------------------+

I was wondering if there is a command like use_gpu 0 11000MiB

  • Why would you want to do that? Stuffing things in video ram will not use the gpu in any sense. What do you want to achieve? – vidarlo May 11 at 22:10
  • @vidarlo yes I just want to stuff things in the video ram. experiments. – Kong May 11 at 22:39
  • What things? Random data? – vidarlo May 12 at 8:00
  • @vidarlo yes random data. like i could create a large numpy array if I wanted to fill up my cpu memory. what about gpu? – Kong May 12 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.