-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
fbec8ce
commit f0b44bf
Showing
31 changed files
with
1,203 additions
and
808 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
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
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,46 @@ | ||
## On Fedora 34 | ||
##### Installing Aria2, Conda and Docker ##### | ||
sudo dnf install aria2 conda docker | ||
|
||
## Starting Docker / enabling at boot | ||
sudo systemctl start docker | ||
sudo systemctl enable docker.service | ||
sudo systemctl enable containerd.service | ||
|
||
## Testing docker | ||
sudo docker run hello-world | ||
|
||
## Creating docker group + add user(s) to it + activate docker group changes | ||
sudo groupadd docker | ||
sudo usermod -aG docker $USER | ||
newgrp docker | ||
|
||
## Installing NVIDIA docker container - https://www.if-not-true-then-false.com/2020/install-nvidia-container-toolkit-on-fedora/ | ||
sudo wget -O /etc/yum.repos.d/inttf.repo https://rpms.if-not-true-then-false.com/inttf.repo | ||
sudo dnf install nvidia-docker2 | ||
|
||
## Modifying configuration file | ||
sudo nano /etc/nvidia-container-runtime/config.toml | ||
# Remove comment from 'no-cgroups = false' and change to 'no-cgroups = true' | ||
# Under [nvidia-container-runtime] | ||
# Remove comment (enable): debug = "/var/log/nvidia-container-runtime.log" | ||
|
||
## Restarting Docker and checking that nvidia configuration is working | ||
systemctl restart docker | ||
nvidia-container-cli info | ||
docker run \ | ||
--privileged \ | ||
--gpus all \ | ||
--rm nvidia/cuda:11.1-base \ | ||
nvidia-smi | ||
|
||
## Make sure to add --privileged to prevent 'Failed to initialize NVML: Unknown Error' | ||
## Add user(s) to docker group | ||
|
||
## Testing capabilities with sample | ||
docker run \ | ||
--privileged \ | ||
--gpus all \ | ||
--rm nvcr.io/nvidia/k8s/cuda-sample:nbody nbody \ | ||
-benchmark \ | ||
-numbodies=512000 |
Oops, something went wrong.