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: use released cudaq version in dockerfile #653

Merged
merged 1 commit into from
Dec 17, 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
5 changes: 2 additions & 3 deletions examples/nvidia_cuda_q/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM 292282985366.dkr.ecr.us-west-2.amazonaws.com/amazon-braket-pytorch-jobs:latest
RUN python3 -m pip install --upgrade pip

# install cuda-quantum
# install cudaq
ARG SCRIPT_PATH
ARG CUDAQ_PATH=/opt/conda/lib/python3.10/site-packages
ENV MPI_PATH=/opt/amazon/openmpi

COPY "${SCRIPT_PATH}/cudaq_wheel/wheelhouse/cuda_quantum_cu12-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl" .
RUN python3 -m pip install cuda_quantum_cu12-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl
RUN python3 -m pip install cudaq
RUN bash "${CUDAQ_PATH}/distributed_interfaces/activate_custom_mpi.sh"

# install additional python dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ docker login -u AWS -p $(aws ecr get-login-password --region us-west-2) 29228298
# with the full name.
script_dir=$(dirname "$0")

# download cudaq wheel files
wget -O container/cudaq_wheel.zip https://github.com/bettinaheim/cuda-quantum/releases/download/11272024/wheelhouse.zip
unzip container/cudaq_wheel.zip -d container/cudaq_wheel

# build docker image
docker build --build-arg SCRIPT_PATH="$script_dir" \
-t ${image} -f "${script_dir}/Dockerfile" . --platform linux/amd64 --progress=plain \

Expand Down
Loading