Skip to content

Commit

Permalink
More cleanup
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 5bbd9fc commit 1eac4ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions libs/core/include/cuda-qx/core/library_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ 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
9 changes: 0 additions & 9 deletions libs/qec/python/bindings/py_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "common/Logger.h"

#include "cudaq/qec/decoder.h"
#include "cudaq/qec/plugin_loader.h"

#include "type_casters.h"
#include "utils.h"
Expand Down Expand Up @@ -71,14 +70,6 @@ std::unordered_map<std::string, std::function<py::object(
PyDecoderRegistry::registry;

void bindDecoder(py::module &mod) {
// Required by all plugin classes
auto cleanup_callback = []() {
// Change the type to the correct plugin type
cleanup_plugins(PluginType::DECODER);
};
// This ensures the correct shutdown sequence
mod.add_object("_cleanup", py::capsule(cleanup_callback));

auto qecmod = py::hasattr(mod, "qecrt")
? mod.attr("qecrt").cast<py::module_>()
: mod.def_submodule("qecrt");
Expand Down

0 comments on commit 1eac4ae

Please sign in to comment.