Skip to content

Commit

Permalink
use cudaq from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer committed Dec 16, 2024
1 parent d8789bf commit 29510f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
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
5 changes: 0 additions & 5 deletions examples/nvidia_cuda_q/container/container_build_and_push.sh
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

0 comments on commit 29510f4

Please sign in to comment.