Skip to content

Commit

Permalink
Merge pull request #607 from jaeyoo/fix_gpu_config
Browse files Browse the repository at this point in the history
Fix simmux_gpu.h compile error and config bzl rule error.
  • Loading branch information
95-martin-orion authored May 1, 2023
2 parents b47882d + bc16f20 commit 4d6bdd2
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 4d6bdd2

Please sign in to comment.