mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
docs: add nvisel sample results
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
be4b6fdee8
commit
e621e02ce2
1 changed files with 7 additions and 0 deletions
|
|
@ -426,6 +426,13 @@ $ export CUDA_VISIBLE_DEVICES="$(nvisel -O uuid -c 2 -f 5000M)"
|
|||
CUDA_VISIBLE_DEVICES="GPU-849d5a8d-610e-eeea-1fd4-81ff44a23794,GPU-18ef14e9-dec6-1d7e-1284-3010c6ce98b1,GPU-96de99c9-d68f-84c8-424c-7c75e59cc0a0,GPU-2428d171-8684-5b64-830c-435cd972ec4a,GPU-6d2a57c9-7783-44bb-9f53-13f36282830a,GPU-f8e5a624-2c7e-417c-e647-b764d26d4733,GPU-f9ca790e-683e-3d56-00ba-8f654e977e02"
|
||||
|
||||
# Pipe output to other shell utilities
|
||||
$ nvisel --newline -O uuid -C 6 -f 8GiB
|
||||
GPU-849d5a8d-610e-eeea-1fd4-81ff44a23794
|
||||
GPU-18ef14e9-dec6-1d7e-1284-3010c6ce98b1
|
||||
GPU-96de99c9-d68f-84c8-424c-7c75e59cc0a0
|
||||
GPU-2428d171-8684-5b64-830c-435cd972ec4a
|
||||
GPU-6d2a57c9-7783-44bb-9f53-13f36282830a
|
||||
GPU-f8e5a624-2c7e-417c-e647-b764d26d4733
|
||||
$ nvisel -0 -O uuid -c 2 -f 4GiB | xargs -0 -I {} nvidia-smi --id={} --query-gpu=index,memory.free --format=csv
|
||||
CUDA_VISIBLE_DEVICES="GPU-849d5a8d-610e-eeea-1fd4-81ff44a23794,GPU-18ef14e9-dec6-1d7e-1284-3010c6ce98b1,GPU-96de99c9-d68f-84c8-424c-7c75e59cc0a0,GPU-2428d171-8684-5b64-830c-435cd972ec4a,GPU-6d2a57c9-7783-44bb-9f53-13f36282830a,GPU-f8e5a624-2c7e-417c-e647-b764d26d4733,GPU-f9ca790e-683e-3d56-00ba-8f654e977e02"
|
||||
index, memory.free [MiB]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue