-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
plugins/machine_learning/scripts/installation/uninstall.sh
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,22 @@ | ||
#!/bin/bash | ||
|
||
# Stop on the first sign of trouble | ||
set -e | ||
|
||
echo "Removing all NVIDIA drivers and CUDA packages..." | ||
|
||
# Remove the NVIDIA driver | ||
sudo apt-get purge -y '*nvidia*' | ||
|
||
# Remove CUDA Toolkit and associated packages | ||
sudo apt-get purge -y '*cuda*' | ||
sudo apt-get purge -y '*cublas*' '*cufft*' '*curand*' '*cusolver*' '*cusparse*' '*npp*' '*nvjpeg*' | ||
|
||
# Autoremove remaining dependencies | ||
sudo apt-get autoremove -y | ||
|
||
# Remove any remaining NVIDIA and CUDA directories | ||
sudo rm -rf /usr/local/cuda* | ||
|
||
echo "Uninstallation complete. Please reboot the system." | ||
|
9 changes: 9 additions & 0 deletions
9
plugins/machine_learning/scripts/testing/minimal_cuda_test.py
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,9 @@ | ||
import torch | ||
|
||
print(torch.__version__) | ||
print(torch.version.cuda) | ||
print(torch.cuda.is_available()) | ||
|
||
|
||
x = torch.rand(5, 3).cuda() | ||
print(x) |
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