Skip to content

Commit

Permalink
Fix simmux_gpu.h compile error and config bzl rule error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeyoo committed May 1, 2023
1 parent b47882d commit bc16f20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/simmux_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifdef __CUSTATEVEC__
# include "simulator_custatevec.h"
namespace qsim {
using SimulatorGpu = SimulatorCuStateVec;
using SimulatorGpu = SimulatorCuStateVec<>;
}
#else
# include "simulator_cuda.h"
namespace qsim {
using SimulatorGpu = SimulatorCUDA;
using SimulatorGpu = SimulatorCUDA<>;
}
#endif

Expand Down
7 changes: 6 additions & 1 deletion third_party/cuquantum/cuquantum_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ def _symlink_genrule_for_dir(


def _cuquantum_pip_impl(repository_ctx):
cuquantum_root = repository_ctx.os.environ[_CUQUANTUM_ROOT]
if _CUQUANTUM_ROOT in repository_ctx.os.environ:
cuquantum_root = repository_ctx.os.environ[_CUQUANTUM_ROOT]
else:
repository_ctx.os.environ[_CUQUANTUM_ROOT] = ""
cuquantum_root = ""

if cuquantum_root == "":
cuquantum_header_path = _find_file(repository_ctx, "custatevec.h")
cuquantum_header_path = cuquantum_header_path[:cuquantum_header_path.find("/custatevec.h")]
Expand Down

0 comments on commit bc16f20

Please sign in to comment.