-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AI Math Terms and Skills content for clarity and organization;…
… add GPU command reference
- Loading branch information
Showing
3 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# gpu | ||
|
||
## Useful Commands | ||
|
||
```bash | ||
# Displays information about an NVIDIA graphics card, including its usage | ||
nvidia-smi | ||
|
||
# Finds the GPU model | ||
lspci | grep -i vga | ||
|
||
# Finds the installed video card and the driver in use | ||
lspci -k | grep -EA3 'VGA|3D|Display' | ||
|
||
# Displays the version of CUDA installed on the system | ||
nvcc --version | ||
|
||
# Runs the nvidia-smi command every two seconds to provide updated GPU | ||
# utilization and memory | ||
watch -n 2 nvidia-smi --id=1 | ||
|
||
# You can also use the lshw command to list the hardware installed on a | ||
# Linux computer. It reports a variety of types, too---not just PCI | ||
# hardware. | ||
|
||
# To tell it to report on the graphics cards it finds, we'll use the -C | ||
# (class) option and pass the "display" modifier. | ||
sudo lshw -numeric -C display | ||
|
||
``` |