Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] check for the CUDA version installed on image #1418

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ods_ci/tests/Resources/Page/ODH/JupyterHub/GPU.resource
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Library OperatingSystem
Verify Installed CUDA Version
[Documentation] Checks the installed CUDA version
[Arguments] ${expected_version}
Run Cell And Check Output !nvidia-smi | grep "CUDA Version:" | awk '{split($0,a); print a[9]}'
Run Cell And Check Output !nvcc --version | grep "release" | sed "s/.*release \\\\(.*\\\\),.*/\\\\1/"
... ${expected_version}

Verify CUDA Is Not Installed
Expand Down
5 changes: 3 additions & 2 deletions ods_ci/tests/Tests/500__jupyterhub/minimal-cuda-test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Test Tags JupyterHub

*** Variables ***
${NOTEBOOK_IMAGE} = minimal-gpu
${EXPECTED_CUDA_VERSION} = 12.4
${EXPECTED_CUDA_VERSION} = 12.1
${EXPECTED_CUDA_VERSION_N_1} = 11.8


*** Test Cases ***
Expand Down Expand Up @@ -61,7 +62,7 @@ Verify Previous CUDA Notebook Image With GPU
... ODS-2128
[Setup] N-1 CUDA Setup
Spawn Notebook With Arguments image=${NOTEBOOK_IMAGE} size=Small gpus=1 version=previous
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION}
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION_N_1}
Verify PyTorch Can See GPU install=True
Verify Tensorflow Can See GPU install=True
${nvcc_version} = Run Cell And Get Output input=!nvcc --version
Expand Down
5 changes: 3 additions & 2 deletions ods_ci/tests/Tests/500__jupyterhub/minimal-pytorch-test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Test Tags JupyterHub

*** Variables ***
${NOTEBOOK_IMAGE} = pytorch
${EXPECTED_CUDA_VERSION} = 12.2
${EXPECTED_CUDA_VERSION} = 12.1
${EXPECTED_CUDA_VERSION_N_1} = 11.8


*** Test Cases ***
Expand Down Expand Up @@ -87,7 +88,7 @@ Verify Previous PyTorch Notebook Image With GPU
... ODS-2129
[Setup] N-1 PyTorch Setup
Spawn Notebook With Arguments image=${NOTEBOOK_IMAGE} size=Small gpus=1 version=previous
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION}
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION_N_1}
Verify PyTorch Can See GPU
Run Repo And Clean https://github.com/lugi0/notebook-benchmarks notebook-benchmarks/pytorch/fgsm_tutorial.ipynb
[Teardown] End Web Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Test Tags JupyterHub

*** Variables ***
${NOTEBOOK_IMAGE} = tensorflow
${EXPECTED_CUDA_VERSION} = 12.2
${EXPECTED_CUDA_VERSION} = 12.1
${EXPECTED_CUDA_VERSION_N_1} = 11.8


*** Test Cases ***
Expand Down Expand Up @@ -85,7 +86,7 @@ Verify Previous Tensorflow Notebook Image With GPU
... ODS-2130
[Setup] N-1 Tensorflow Setup
Spawn Notebook With Arguments image=${NOTEBOOK_IMAGE} size=Small gpus=1 version=previous
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION}
Verify Installed CUDA Version ${EXPECTED_CUDA_VERSION_N_1}
Verify Tensorflow Can See GPU
Run Repo And Clean https://github.com/lugi0/notebook-benchmarks notebook-benchmarks/tensorflow/GPU-no-warnings.ipynb
[Teardown] End Web Test
Expand Down
Loading