Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Commit 4c080fc

Browse files
authored
fixed example
1 parent 140b4fd commit 4c080fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/05.container_gpu.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,16 @@ for this purpose.
125125
```
126126
# Change to your $WORK directory
127127
cd $WORK
128+
128129
#Get the software
129130
git clone https://github.com/tensorflow/models.git ~/models
131+
130132
# Pull the image
131133
singularity pull docker://gzynda/tacc-maverick-ml:latest
134+
135+
# Is the GPU detected?
136+
singularity exec --nv tacc-maverick-ml-latest.img python -c "import tensorflow as tf; tf.test.is_gpu_available()"
137+
132138
# Run the code
133139
singularity exec --nv tacc-maverick-ml-latest.img python $HOME/models/tutorials/image/mnist/convolutional.py
134140
```
@@ -143,7 +149,7 @@ You may be thinking "what about overlayfs??". The Linux kernel on Maverick does
143149
You can also prototype your application from inside your container with the `shell` command.
144150

145151
```
146-
singularity shell tacc-maverick-ml-latest.img
152+
singularity shell --nv tacc-maverick-ml-latest.img
147153
python --version
148154
exit
149155
python --version

0 commit comments

Comments
 (0)