Skip to content

Commit

Permalink
Fix serial builds
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jun 14, 2023
1 parent 7f4115f commit 307863c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/qcircuit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class QCircuit {

#if ENABLE_ALU
/** Add integer (without sign) */
virtual void INC(bitCapInt toAdd, bitLenInt start, bitLenInt length);
void INC(bitCapInt toAdd, bitLenInt start, bitLenInt length);
#endif
};

Expand Down
4 changes: 4 additions & 0 deletions src/common/parallel_for.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ ParallelFor::ParallelFor()
#else
: pStride((bitCapIntOcl)ONE_BCI << PSTRIDEPOW)
#endif
#if ENABLE_PTHREAD
, numCores(std::thread::hardware_concurrency())
#else
, numCores(1)
#endif
{
const bitLenInt pStridePow = log2(pStride);
const bitLenInt minStridePow = (numCores > 1U) ? (bitLenInt)pow2Ocl(log2(numCores - 1U)) : 0U;
Expand Down

0 comments on commit 307863c

Please sign in to comment.