ImageSpotFinderGPU: Rename
This commit is contained in:
@@ -21,13 +21,13 @@ static std::vector<DiffractionSpot> run_gpu_and_collect_spots(const std::vector<
|
||||
size_t width, size_t height,
|
||||
const SpotFindingSettings& settings)
|
||||
{
|
||||
GPUImageAnalysis gpu(static_cast<int32_t>(width), static_cast<int32_t>(height));
|
||||
REQUIRE(GPUImageAnalysis::GPUPresent());
|
||||
ImageSpotFinderGPU gpu(static_cast<int32_t>(width), static_cast<int32_t>(height));
|
||||
REQUIRE(ImageSpotFinderGPU::GPUPresent());
|
||||
|
||||
// Set input buffer pointer to our CPU data, register and upload
|
||||
// Note: RegisterBuffer/UnregisterBuffer are optional for plain memcpy path,
|
||||
// but we use them to mirror intended flow.
|
||||
const_cast<GPUImageAnalysis&>(gpu).SetInputBuffer((void*)input.data());
|
||||
const_cast<ImageSpotFinderGPU&>(gpu).SetInputBuffer((void*)input.data());
|
||||
gpu.RegisterBuffer();
|
||||
gpu.LoadDataToGPU();
|
||||
|
||||
@@ -47,7 +47,7 @@ static std::vector<DiffractionSpot> run_gpu_and_collect_spots(const std::vector<
|
||||
|
||||
// Mirror of ImageSpotFinder_SignalToNoise
|
||||
TEST_CASE("GPUImageAnalysis_SignalToNoise") {
|
||||
if (!GPUImageAnalysis::GPUPresent()) {
|
||||
if (!ImageSpotFinderGPU::GPUPresent()) {
|
||||
WARN("No CUDA GPU present. Skipping GPUImageAnalysis_SignalToNoise");
|
||||
return;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ TEST_CASE("GPUImageAnalysis_SignalToNoise") {
|
||||
}
|
||||
|
||||
TEST_CASE("GPUImageAnalysis_CountThreshold") {
|
||||
if (!GPUImageAnalysis::GPUPresent()) {
|
||||
if (!ImageSpotFinderGPU::GPUPresent()) {
|
||||
WARN("No CUDA GPU present. Skipping GPUImageAnalysis_SignalToNoise");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user