Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Howe <[email protected]>
  • Loading branch information
bmhowe23 committed Jan 17, 2025
1 parent 84e696c commit 58b6f99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/qec/lib/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ std::unique_ptr<decoder> get_decoder(const std::string &name,
// Constructor function for auto-loading plugins
__attribute__((constructor)) void load_decoder_plugins() {
// Load plugins from the decoder-specific plugin directory
load_plugins(cudaq::getCUDAQLibraryPath() + "/decoder-plugins",
PluginType::DECODER);
std::filesystem::path cudaqLibPath{cudaq::getCUDAQLibraryPath()};
auto pluginPath = cudaqLibPath.parent_path() / "decoder-plugins";
load_plugins(pluginPath.string(), PluginType::DECODER);
}

// Destructor function to clean up only decoder plugins
Expand Down

0 comments on commit 58b6f99

Please sign in to comment.