Skip to content

Commit

Permalink
use CMD instead of RUN in GPU tests to make env ready when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruinong Tian committed Dec 24, 2024
1 parent a7a8447 commit a8af79a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_artifacts/v0/gpu-dependencies.test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ARG MAMBA_DOCKERFILE_ACTIVATE=1
# 2. Check if Pytorch is installed with CUDA support for GPU image
COPY --chown=$MAMBA_USER:$MAMBA_USER scripts/cuda_validation.py .
RUN chmod +x cuda_validation.py
RUN python3 cuda_validation.py
CMD python3 cuda_validation.py
2 changes: 1 addition & 1 deletion test/test_artifacts/v1/gpu-dependencies.test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ARG MAMBA_DOCKERFILE_ACTIVATE=1
# 2. Check if Pytorch is installed with CUDA support for GPU image
COPY --chown=$MAMBA_USER:$MAMBA_USER scripts/cuda_validation.py .
RUN chmod +x cuda_validation.py
RUN python3 cuda_validation.py
CMD python3 cuda_validation.py

0 comments on commit a8af79a

Please sign in to comment.