Course/apcomp297r#9
Conversation
jaguillette
left a comment
There was a problem hiding this comment.
Glad to see reusing the existing environment for CS 1090b works well for this. I was able to validate in prod from a development app that the CPU app has the regular packages available, and that the GPU app has those packages and appropriate access to a GPU. Thanks!
| spack: "mamba" | ||
|
|
||
| # mamba environment to activate from inside the Spack environment | ||
| mamba: "cs1090b-cpu" # Assuming this mamba environment is built and already created in the spack mamba environment |
There was a problem hiding this comment.
Nice idea to reuse the cs1090b environments.
| spack: "mamba-gpu" | ||
|
|
||
| # mamba environment to activate from inside the Spack environment | ||
| mamba: "cs1090b-gpu" |
There was a problem hiding this comment.
I was able to successfully launch the Jupyter Lab - APCOMP 297R (GPU) app in my sandbox apps from this branch and confirmed I was able to load tensorflow and see a GPU.
import tensorflow as tf
gpus = tf.config.list_physical_devices('GPU')
print(f"Detected GPUs: {gpus}")Output:
Detected GPUs: [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
|
@kgray-hu just doing a quick sweep and I noticed this PR was still open and it looks like it's been fully reviewed, etc. I'm wondering if it should be merged? |
Overview
The purpose of this PR is to create 2 IPython Jupyterlab based course enviornments for APCOMP297r, a capstone course in order to provide an interactive python cpu environment and GPU environment, this leverages the GPU/CPU setup for cs1090b.
Changes
local/apcomp297r-cpu.yml.erbfor CPUlocal/apcomp297r-gpu.yml.erbfor GPUcs1090b-cpuandcs1090b-gpumamba environments (reused from CS 1090b)Notes
Key differences between APCOMP 297R GPU differs from CS 1090b GPU:
diff: apcomp297r-gpu.yml.erb vs. cs1090b-gpu.yml.erb
References
APCOMP 297r Course Setup Outline