File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed
runtime/cudaq/platform/pasqal Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ ENV ZLIB_INSTALL_PREFIX=/usr/local/zlib
126126ENV OPENSSL_INSTALL_PREFIX=/usr/local/openssl
127127ENV CURL_INSTALL_PREFIX=/usr/local/curl
128128ENV AWS_INSTALL_PREFIX=/usr/local/aws
129+ ENV QRMI_INSTALL_PREFIX=/usr/local/qrmi
129130ENV CUQUANTUM_INSTALL_PREFIX=/usr/local/cuquantum
130131ENV CUTENSOR_INSTALL_PREFIX=/usr/local/cutensor
131132RUN bash /scripts/install_prerequisites.sh
Original file line number Diff line number Diff line change @@ -80,5 +80,12 @@ cmake.args = [
8080 "-DCUDAQ_ENABLE_PASQAL_QRMI_CONNECTOR=OFF"
8181]
8282
83+ # Linux x86_64: enable Pasqal QRMI connector
84+ [[tool.scikit-build.overrides]]
85+ if.platform-system = "linux"
86+ if.platform-machine = "x86_64"
87+ inherit.cmake.args = "append"
88+ cmake.args = ["-DCUDAQ_ENABLE_PASQAL_QRMI_CONNECTOR=ON"]
89+
8390[tool.setuptools_scm]
8491write_to = "_version.py"
Original file line number Diff line number Diff line change @@ -82,6 +82,13 @@ cmake.args = [
8282 "-DCUDAQ_ENABLE_PASQAL_QRMI_CONNECTOR=OFF"
8383]
8484
85+ # Linux x86_64: enable Pasqal QRMI connector
86+ [[tool.scikit-build.overrides]]
87+ if.platform-system = "linux"
88+ if.platform-machine = "x86_64"
89+ inherit.cmake.args = "append"
90+ cmake.args = ["-DCUDAQ_ENABLE_PASQAL_QRMI_CONNECTOR=ON"]
91+
8592# macOS: Disable symbol stripping. LLVM's JIT relies on local symbols for
8693# internal data structures (eg., PassRegistry). On macOS
8794# with it's two-level namespace they are removed by stripping which
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ if(CUDAQ_ENABLE_PASQAL_QRMI_CONNECTOR AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
108108 set_property (TARGET ${SERVERHELPER_LIBRARY_NAME} APPEND PROPERTY
109109 BUILD_RPATH "${QRMI_LIBRARY_DIR} " )
110110 set_property (TARGET ${SERVERHELPER_LIBRARY_NAME} APPEND PROPERTY
111- INSTALL_RPATH "${QRMI_LIBRARY_DIR} " )
111+ INSTALL_RPATH "$ORIGIN" " $ {QRMI_LIBRARY_DIR} " )
112112 endif ()
113113 endif ()
114114endif ()
Original file line number Diff line number Diff line change @@ -404,6 +404,13 @@ else
404404
405405 # Move repaired wheel to output
406406 repaired_wheel=$( ls " ${auditwheel_tmp:? } " /* manylinux* .whl 2> /dev/null | head -1)
407+ if [ " $( uname -m) " = " x86_64" ] && [ -n " $repaired_wheel " ]; then
408+ if ! unzip -l " $repaired_wheel " 2> /dev/null | grep -q ' libqrmi' ; then
409+ echo " WARNING: libqrmi.so not bundled in x86_64 wheel"
410+ else
411+ echo " Verified libqrmi.so is bundled in x86_64 wheel"
412+ fi
413+ fi
407414 if [ -n " $repaired_wheel " ]; then
408415 mv " $repaired_wheel " " $output_dir /"
409416 echo " Repaired wheel: $output_dir /$( basename " $repaired_wheel " ) "
You can’t perform that action at this time.
0 commit comments