Skip to content
Draft
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: 2 additions & 0 deletions .github/actions/build-lib/build_qec.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion libs/core/include/cuda-qx/core/tensor_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class tensor_impl : public extension_point<tensor_impl<Scalar>, 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';
}
Expand Down
2 changes: 0 additions & 2 deletions libs/qec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libs/solvers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading