Skip to content

Commit cfc2f8e

Browse files
committed
updated instructions to enable docker network access to host for proper jupyter access
1 parent eea4f55 commit cfc2f8e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,26 @@ Additional note: we provide all the sampling and code-scraping data -- therefore
6262
```
6363
git clone https://github.com/Scientific-Computing-Lab/gpuFLOPBench.git ./gpu-flopbench
6464
65+
# we only really need the Dockerfile from the repo
6566
cd ./gpu-flopbench
6667
67-
# one of our code scrape files is 100MB, so we need to fetch it via Git LFS
68-
git lfs install && git lfs pull && git lfs fetch --all && git lfs checkout
69-
68+
# this takes about 10-20 minutes
7069
docker build --progress=plain -t 'gpu-flopbench' .
7170
7271
## Alternative docker build if host machine is Apple Silicon (M1/2/3/4)
7372
docker build --platform=linux/amd64 --progress=plain -t 'gpu-flopbench' .
7473
75-
docker run -ti --gpus all --name gpu-flopbench-container --runtime=nvidia -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all gpu-flopbench
74+
# please make sure that the Settings > Resources > Network > 'Enable Host Networking' option is enabled on Docker Desktop
75+
# this is so you can run and view Jupyter Notebooks
76+
docker run -ti --network=host --gpus all --name gpu-flopbench-container --runtime=nvidia -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all gpu-flopbench
7677
7778
## Alternative docker run if host machine is Apple Silicon (M1/2/3/4)
78-
docker run -ti --name gpu-flopbench-container --platform=linux/amd64 gpu-flopbench
79+
docker run -ti --network=host --name gpu-flopbench-container --platform=linux/amd64 gpu-flopbench
7980
8081
docker exec -it gpu-flopbench-container /bin/bash
8182
```
8283

83-
Note: if you're on a **Windows Docker Desktop** host, be sure to enable the following:
84+
Note: if you're on a **Windows Docker Desktop** host, be sure to enable the following for GPU access:
8485
```
8586
NVIDIA Control Panel >> Desktop Tab >> Enable Developer Settings (make sure it's enabled)
8687

0 commit comments

Comments
 (0)