Two projects on one shared GPU server need different RAPIDS and CUDA versions. How do you avoid conflicts?
- Exam domain
- GPU and Cloud Computing16% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
GPU and Cloud Computing (16% of the exam)
Objective in the exam guide: Utilizing dependency management frameworks, such as Docker and Conda to manage software-versioning conflicts
Docker and Conda are named for versioning conflicts.
Why A is the answer
Use separate Conda environments or Docker containers per project
Conda environments and containers isolate dependencies, so each project gets its own RAPIDS and CUDA user-space libraries on the same driver.
Remember: Isolate dependencies with Conda or Docker.
How it works
Conda and Docker isolate software versions to avoid dependency conflicts.
In detail
- Isolate per project.
- Containers share the host driver.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Use separate Conda environments or Docker containers per projectRight
Isolate dependencies with Conda or Docker.
B. Use only one projectWrong
Dropping a project is not a fix.
C. Install both versions globally and switch symbolic links by hand before each runWrongMost tempting
Manual symlinks are fragile.
Why it tempts: Symlinks work until they do not.
D. Upgrade both projects to whatever was installed most recentlyWrong
Forced upgrades can break code.
Use case
An illustrative scenario, not a real incident.
Illustrative: two RAPIDS containers with different versions run side by side on one server.
See it in different ways
mindmap
root(("Dependency management"))
n1["Conda"]
n2["Per-project env"]
n3["Docker"]
n4["Per-project image"]
n5["Host"]
n6["One driver for all"]How to read this chart
- The centre is "Dependency management".
- "Conda" covers "Per-project env".
- "Docker" covers "Per-project image".
- "Host" covers "One driver for all".
sequenceDiagram participant P0 as Project A container participant P1 as Host driver participant P2 as Project B container P0->>P1: CUDA calls P2-->>P1: CUDA calls
How to read this chart
- 1. Project A container sends "CUDA calls" to Host driver.
- 2. Host driver gets a reply from Project B container: "CUDA calls".