Home » Uncategorized

Setting up NVIDIA GPU CLOUD

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: <NGC API Key>

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 <local dir>:<containern dir> 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

Leave a Reply

Your email address will not be published. Required fields are marked *