Skip to content

Commit

Permalink
Add Debug
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Howe <[email protected]>
  • Loading branch information
bmhowe23 committed Jan 18, 2025
1 parent f5317df commit 0e3e87a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libs/core/include/cuda-qx/core/library_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ inline static void getCUDAQXLibraryPath(CUDAQXLibraryData *data) {
inline static int getCUDAQXLibraryPath(struct dl_phdr_info *info, size_t size,
void *data) {
std::string libraryName(info->dlpi_name);
printf("BMH libraryName is %s\n", libraryName.c_str());
auto casted = static_cast<CUDAQXLibraryData *>(data);
if (libraryName.find(casted->libName) != std::string::npos) {
printf("BMH Setting it.\n");
casted->path = std::string(info->dlpi_name);
}
return 0;
Expand Down
1 change: 1 addition & 0 deletions libs/qec/lib/plugin_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static std::map<std::string, PluginHandle> &get_plugin_handles() {

// Function to load plugins from a directory based on their type
void load_plugins(const std::string &plugin_dir, PluginType type) {
printf("BMH Loading plugins from %s\n", plugin_dir.c_str());
if (!fs::exists(plugin_dir)) {
std::cerr << "WARNING: Plugin directory does not exist: " << plugin_dir
<< std::endl;
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ${python} -m pip install --no-cache-dir pytest
# ======================================

${python} -m pip install /wheels/cudaq_qec-*-cp${python_version_no_dot}-cp${python_version_no_dot}-*.whl
${python} -m pytest libs/qec/python/tests/
${python} -m pytest -s libs/qec/python/tests/test_decoder.py::test_decoder_plugin_initialization # libs/qec/python/tests/

# Solvers library
# ======================================
Expand Down

0 comments on commit 0e3e87a

Please sign in to comment.