How do we access CUDA?

Hi, I’m brand new to Codespaces. I thought I’d give it a try with my neural network code (GitHub - drscotthawley/SPNet: Object detection for ESPI images of oscillating steelpan drums), that installs via conda & pip. I had some trouble with that installation (below), but even then, looking around in the docs, I’m confused:

How do we access CUDA?
nvidia-smi isn’t even defined. ("Command not found"). I can’t find any Codespace docs that mention CUDA at all. (So how do other people use this thing?)

Thanks.

Run log:

(spnet) codespace ➜ /workspaces/SPNet (master ✗) $ pip install -r requirements.txt
Collecting numba==0.36.2
  Using cached numba-0.36.2.tar.gz (1.3 MB)
Collecting Keras==2.1.3
  Using cached Keras-2.1.3-py2.py3-none-any.whl (319 kB)
Collecting numpy==1.14.5
  Downloading numpy-1.14.5-cp37-cp37m-manylinux1_x86_64.whl (12.2 MB)
     |████████████████████████████████| 12.2 MB 19.7 MB/s 
Collecting pandas==0.23.0
  Using cached pandas-0.23.0.tar.gz (13.1 MB)
Collecting tensorflow-gpu==1.14.0
  Using cached tensorflow_gpu-1.14.0-cp37-cp37m-manylinux1_x86_64.whl (377.1 MB)
Collecting matplotlib==2.1.1
  Using cached matplotlib-2.1.1.tar.gz (36.1 MB)
Collecting opencv_python>=3.4.0.12
  Using cached opencv_python-4.5.2.54-cp37-cp37m-manylinux2014_x86_64.whl (51.0 MB)
Collecting Pillow==7.0.0
  Using cached Pillow-7.0.0-cp37-cp37m-manylinux1_x86_64.whl (2.1 MB)
Collecting llvmlite
  Using cached llvmlite-0.36.0-cp37-cp37m-manylinux2010_x86_64.whl (25.3 MB)
Collecting six>=1.9.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pyyaml
  Using cached PyYAML-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (636 kB)
Collecting scipy>=0.14
  Using cached scipy-1.7.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.5 MB)
Collecting python-dateutil>=2.5.0
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz>=2011k
  Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting google-pasta>=0.1.6
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 2.5 MB/s 
Collecting absl-py>=0.7.0
  Downloading absl_py-0.13.0-py3-none-any.whl (132 kB)
     |████████████████████████████████| 132 kB 33.9 MB/s 
Collecting astor>=0.6.0
  Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting keras-preprocessing>=1.0.5
  Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting protobuf>=3.6.1
  Using cached protobuf-3.17.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Requirement already satisfied: wheel>=0.26 in /home/codespace/.conda/envs/spnet/lib/python3.7/site-packages (from tensorflow-gpu==1.14.0->-r requirements.txt (line 7)) (0.36.2)
Collecting grpcio>=1.8.6
  Using cached grpcio-1.38.1-cp37-cp37m-manylinux2014_x86_64.whl (4.2 MB)
Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0
  Using cached tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488 kB)
Collecting gast>=0.2.0
  Using cached gast-0.5.0-py3-none-any.whl (10 kB)
Collecting wrapt>=1.11.1
  Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting keras-applications>=1.0.6
  Downloading Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
     |████████████████████████████████| 50 kB 3.1 MB/s 
Collecting termcolor>=1.1.0
  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting tensorboard<1.15.0,>=1.14.0
  Downloading tensorboard-1.14.0-py3-none-any.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 59.1 MB/s 
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 2.8 MB/s 
Collecting h5py
  Downloading h5py-3.3.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.1 MB)
     |████████████████████████████████| 4.1 MB 54.1 MB/s 
Collecting scipy>=0.14
  Downloading scipy-1.6.3-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
     |████████████████████████████████| 27.4 MB 58 kB/s 
  Downloading scipy-1.6.2-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
     |████████████████████████████████| 27.4 MB 54 kB/s 
  Downloading scipy-1.6.1-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
     |████████████████████████████████| 27.4 MB 79 kB/s 
  Downloading scipy-1.6.0-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
     |████████████████████████████████| 27.4 MB 48 kB/s 
  Downloading scipy-1.5.4-cp37-cp37m-manylinux1_x86_64.whl (25.9 MB)
     |████████████████████████████████| 25.9 MB 41 kB/s 
Requirement already satisfied: setuptools>=41.0.0 in /home/codespace/.conda/envs/spnet/lib/python3.7/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow-gpu==1.14.0->-r requirements.txt (line 7)) (52.0.0.post20210125)
Collecting markdown>=2.6.8
  Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 3.5 MB/s 
Collecting werkzeug>=0.11.15
  Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB)
     |████████████████████████████████| 288 kB 104.3 MB/s 
Collecting importlib-metadata
  Downloading importlib_metadata-4.6.0-py3-none-any.whl (17 kB)
Collecting cached-property
  Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting zipp>=0.5
  Downloading zipp-3.5.0-py3-none-any.whl (5.7 kB)
Collecting typing-extensions>=3.6.4
  Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Building wheels for collected packages: numba, pandas, matplotlib, termcolor, wrapt
  Building wheel for numba (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/codespace/.conda/envs/spnet/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nobouk_s
       cwd: /tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/
  Complete output (7 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py", line 260, in <module>
      metadata['ext_modules'] = get_ext_modules()
    File "/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py", line 87, in get_ext_modules
      import numpy.distutils.misc_util as np_misc
  ModuleNotFoundError: No module named 'numpy'
  ----------------------------------------
  ERROR: Failed building wheel for numba
  Running setup.py clean for numba
  ERROR: Command errored out with exit status 1:
   command: /home/codespace/.conda/envs/spnet/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0
  Complete output (7 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py", line 260, in <module>
      metadata['ext_modules'] = get_ext_modules()
    File "/tmp/pip-install-9g_edmdn/numba_db54eaa918914c429d042d66ece717c0/setup.py", line 87, in get_ext_modules
      import numpy.distutils.misc_util as np_misc
  ModuleNotFoundError: No module named 'numpy'
  ----------------------------------------
  ERROR: Failed cleaning build dir for numba
  Building wheel for pandas (setup.py) ... /
/
^canceled
ERROR: Operation cancelled by user
(spnet) codespace ➜ /workspaces/SPNet (master ✗) $ nvidia-smi
bash: nvidia-smi: command not found
(spnet) codespace ➜ /workspaces/SPNet (master ✗) $