From cc1d1d42987fd85118b89e2098413303f87514da Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 11 Jun 2020 16:01:42 +0200 Subject: [PATCH] plugin: fix lookup --- fpga/gpu/src/gpu.cpp | 2 +- fpga/src/villas-fpga-pipe.cpp | 2 +- fpga/tests/gpu.cpp | 2 +- fpga/tests/rtds2gpu.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fpga/gpu/src/gpu.cpp b/fpga/gpu/src/gpu.cpp index dcf0d006a..637ef0b5d 100644 --- a/fpga/gpu/src/gpu.cpp +++ b/fpga/gpu/src/gpu.cpp @@ -69,7 +69,7 @@ villas::gpu::GpuAllocator::getName() const GpuFactory::GpuFactory() : - Plugin("GPU", "GpuFactory") + Plugin("cuda", "CUDA capable GPUs") { logger = villas::logging.get("GpuFactory"); } diff --git a/fpga/src/villas-fpga-pipe.cpp b/fpga/src/villas-fpga-pipe.cpp index ddd8ab45b..312eeae37 100644 --- a/fpga/src/villas-fpga-pipe.cpp +++ b/fpga/src/villas-fpga-pipe.cpp @@ -95,7 +95,7 @@ setupFpgaCard(const std::string& configFile, const std::string& fpgaName) } // get the FPGA card plugin - auto fpgaCardPlugin = plugin::Registry::lookup(""); + auto fpgaCardPlugin = plugin::Registry::lookup("pcie"); if(fpgaCardPlugin == nullptr) { logger->error("No FPGA plugin found"); exit(1); diff --git a/fpga/tests/gpu.cpp b/fpga/tests/gpu.cpp index 7d8fae339..5ee08cecc 100644 --- a/fpga/tests/gpu.cpp +++ b/fpga/tests/gpu.cpp @@ -44,7 +44,7 @@ Test(fpga, gpu_dma, .description = "GPU DMA tests") auto& card = state.cards.front(); - auto gpuPlugin = villas::Plugin::Registry(""); + auto gpuPlugin = villas::Plugin::Registry("cuda"); cr_assert_not_null(gpuPlugin, "No GPU plugin found"); auto gpus = gpuPlugin->make(); diff --git a/fpga/tests/rtds2gpu.cpp b/fpga/tests/rtds2gpu.cpp index 56cf7ca64..a36cf6f18 100644 --- a/fpga/tests/rtds2gpu.cpp +++ b/fpga/tests/rtds2gpu.cpp @@ -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(""); + auto gpuPlugin = villas::Registry::lookup("cuda"); cr_assert_not_null(gpuPlugin, "No GPU plugin found"); auto gpus = gpuPlugin->make();