diff --git a/.github/actions/build-lib/build_qec.sh b/.github/actions/build-lib/build_qec.sh index 15e6d850..b065970b 100755 --- a/.github/actions/build-lib/build_qec.sh +++ b/.github/actions/build-lib/build_qec.sh @@ -1,5 +1,7 @@ #!/bin/sh +echo cmake -S libs/qec -B "$1" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCUDAQ_DIR=/cudaq-install/lib/cmake/cudaq/ -DCUDAQX_INCLUDE_TESTS=ON -DCUDAQX_BINDINGS_PYTHON=ON -DCMAKE_INSTALL_PREFIX=$HOME/.cudaqx + cmake -S libs/qec -B "$1" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER=gcc-11 \ diff --git a/libs/core/include/cuda-qx/core/tensor_impl.h b/libs/core/include/cuda-qx/core/tensor_impl.h index c9339307..247f3d4d 100644 --- a/libs/core/include/cuda-qx/core/tensor_impl.h +++ b/libs/core/include/cuda-qx/core/tensor_impl.h @@ -73,7 +73,7 @@ class tensor_impl : public extension_point, const Scalar *, scalar_type *scalar_data = new scalar_type[size](); auto result = iter->second(scalar_data, {num_rows, num_cols}); for (size_t r = 0; r < num_rows; r++) { - Scalar __restrict__ *resultRow = &result->at({r, 0}); + Scalar *__restrict__ resultRow = &result->at({r, 0}); for (size_t c = 0; c < num_cols; c++) { resultRow[c] = data[r][c] - '0'; } diff --git a/libs/qec/CMakeLists.txt b/libs/qec/CMakeLists.txt index 22686eac..9bc95120 100644 --- a/libs/qec/CMakeLists.txt +++ b/libs/qec/CMakeLists.txt @@ -103,8 +103,6 @@ endif() # ============================================================================== if (CUDAQX_QEC_STANDALONE_BUILD) - # FIXME for now, we only use library mode - set(CUDAQ_LIBRARY_MODE ON) find_package(CUDAQ REQUIRED) # FIXME diff --git a/libs/solvers/CMakeLists.txt b/libs/solvers/CMakeLists.txt index 52823d45..f77e351e 100644 --- a/libs/solvers/CMakeLists.txt +++ b/libs/solvers/CMakeLists.txt @@ -134,8 +134,6 @@ FetchContent_Declare( FetchContent_MakeAvailable(cppitertools json) if (CUDAQX_SOLVERS_STANDALONE_BUILD) - # FIXME for now, we only use library mode - set(CUDAQ_LIBRARY_MODE ON) find_package(CUDAQ REQUIRED) # FIXME