#ICYDK: As I have bought new PC and set up NGC ( NVIDIA GPU CLOUD ), here is the memo of my setting-up process.
1. Registration for NGC
Access to https://www.nvidia.com/ja-jp/gpu-cloud and push Register Now button.
Input necessary information and Read Term of Use
Push Sign-up buttom
Access to e-mail sent after registration and Reset password
2. Get API key
Access to https://ngc.nvidia.com/ and sign in
Generate API Key by pushing “Generate API Key” buttom
Confirm the generation by pushing “Confirm” buttom
Save the API key for later use
3. Logging in to NGC
$ sudo docker login nvcr.io
Username: $oauthtoken
Password:
4. Get docker image
Select docker image and download
$ sudo docker pull nvcr.io/nvidia/tensorflow:18.06-py3
5. Run Docker
$ sudo nvidia-docker run -it –rm -v : nvcr.io/nvidia/tensorflow:18.06-py3
root# python >>> import tensorflow as tf
>>> hello = tf.constant(‘Hello, TensorFlow!’)
>>> sess = tf.Session()
>>> sess.run(hello) Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> sess.run(a+b)
42
6. Test Confirmation
$ sudo docker run –runtime=nvidia –rm nvcr.io/nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 nvidia-smi https://goo.gl/inSuis #DataScience #Cloud
Share this:
- Click to share on Facebook (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to email a link to a friend (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on Reddit (Opens in new window)