1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

plugin: fix lookup

This commit is contained in:
Steffen Vogel 2020-06-11 16:01:42 +02:00
parent 86f8997b05
commit cc1d1d4298
4 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ villas::gpu::GpuAllocator::getName() const
GpuFactory::GpuFactory() :
Plugin("GPU", "GpuFactory")
Plugin("cuda", "CUDA capable GPUs")
{
logger = villas::logging.get("GpuFactory");
}

View file

@ -95,7 +95,7 @@ setupFpgaCard(const std::string& configFile, const std::string& fpgaName)
}
// get the FPGA card plugin
auto fpgaCardPlugin = plugin::Registry::lookup<fpga::PCIeCardFactory>("");
auto fpgaCardPlugin = plugin::Registry::lookup<fpga::PCIeCardFactory>("pcie");
if(fpgaCardPlugin == nullptr) {
logger->error("No FPGA plugin found");
exit(1);

View file

@ -44,7 +44,7 @@ Test(fpga, gpu_dma, .description = "GPU DMA tests")
auto& card = state.cards.front();
auto gpuPlugin = villas::Plugin::Registry<GpuFactory>("");
auto gpuPlugin = villas::Plugin::Registry<GpuFactory>("cuda");
cr_assert_not_null(gpuPlugin, "No GPU plugin found");
auto gpus = gpuPlugin->make();

View file

@ -260,7 +260,7 @@ Test(fpga, rtds2gpu_rtt_gpu, .description = "Rtds2Gpu RTT via GPU")
cr_assert_not_null(gpu2rtds, "No Gpu2Rtds IP found");
cr_assert_not_null(rtds2gpu, "No Rtds2Gpu IP not found");
auto gpuPlugin = villas::Registry::lookup<GpuFactory>("");
auto gpuPlugin = villas::Registry::lookup<GpuFactory>("cuda");
cr_assert_not_null(gpuPlugin, "No GPU plugin found");
auto gpus = gpuPlugin->make();