Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scipy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JupyterLab
CUDA
MAX
scipy
Commits
95a46547
Verified
Commit
95a46547
authored
2 months ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
MAX: Prevent installation of PyTorch, its own CUDA runtime
- and the required CUDA binaries/libraries in the regular images
parent
489ac668
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
base/latest.Dockerfile
+9
-0
9 additions, 0 deletions
base/latest.Dockerfile
with
9 additions
and
0 deletions
base/latest.Dockerfile
+
9
−
0
View file @
95a46547
...
...
@@ -461,6 +461,11 @@ RUN curl -ssL https://magic.modular.com | grep '^MODULAR_HOME\|^BIN_DIR' \
## MAX/Mojo: Install Python dependencies
&& export PIP_BREAK_SYSTEM_PACKAGES=1 \
&& if [ "${INSTALL_MAX}" = "1" ] || [ "${INSTALL_MAX}" = "true" ]; then \
if [ -z "${CUDA_VERSION}" ]; then \
## MAX: Prevent installation of PyTorch, its own CUDA runtime
## and the required CUDA binaries/libraries in the regular images
sed -i "/torch/d" /usr/local/lib/python${PYTHON_VERSION%.*}/site-packages/max*.dist-info/METADATA; \
fi; \
packages=$(grep "Requires-Dist:" \
/usr/local/lib/python${PYTHON_VERSION%.*}/site-packages/max*.dist-info/METADATA | \
sed "s|Requires-Dist: \(.*\)|\1|" | \
...
...
@@ -524,3 +529,7 @@ CMD ["start-notebook.sh"]
ARG
BUILD_START
ENV
BUILD_DATE=${BUILD_START}
## For use with the NVIDIA Container Runtime
ENV
NVIDIA_VISIBLE_DEVICES=all
ENV
NVIDIA_DRIVER_CAPABILITIES=compute,utility
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment