Skip to content
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
2 changes: 1 addition & 1 deletion .cudaq_version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cudaq": {
"repository": "NVIDIA/cuda-quantum",
"ref": "30e0737b4f8d5b580d8b97c3352458122485568e"
"ref": "da8d0430a2b039f40924c6b27d744cfe0197414b"
}
}
9 changes: 3 additions & 6 deletions scripts/ci/build_cudaq_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ echo "Building MLIR bindings for ${python}" && \
echo "Building CUDA-Q wheel for ${python}."
cd /cuda-quantum

# Patch the pyproject.toml file to change the CUDA version if needed
if [ "${CUDA_VERSION#12.}" != "${CUDA_VERSION}" ]; then \
sed -i "s/-cu11/-cu12/g" pyproject.toml && \
sed -i -E "s/(nvidia-cublas-cu[0-9]* ~= )[0-9\.]*/\1${CUDA_VERSION}/g" pyproject.toml; \
sed -i -E "s/(nvidia-cuda-runtime-cu[0-9]* ~= )[0-9\.]*/\1${CUDA_VERSION}/g" pyproject.toml; \
fi
# Select the correct pyproject.toml file.
rm -f pyproject.toml # remove the symlink if it exists
cp pyproject.toml.cu${CUDA_VERSION} pyproject.toml

# Build the wheel
echo "Building wheel for python${python_version}."
Expand Down