Some checks failed
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Failing after 10m37s
Build Packages / build:rpm (rocky8) (push) Failing after 11m34s
Build Packages / Generate python client (push) Successful in 33s
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 12m27s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 12m40s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky9_nocuda) (push) Failing after 12m53s
Build Packages / build:rpm (rocky9) (push) Failing after 12m48s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Failing after 13m2s
Build Packages / Build documentation (push) Successful in 49s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 12m56s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 6m49s
Build Packages / Unit tests (push) Has been cancelled
19 lines
611 B
C++
19 lines
611 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#include "BraggPredictionFactory.h"
|
|
#include "BraggPredictionRotation.h"
|
|
|
|
#ifdef JFJOCH_USE_CUDA
|
|
#include "../../common/CUDAWrapper.h"
|
|
#include "BraggPredictionGPU.h"
|
|
#endif
|
|
|
|
std::unique_ptr<BraggPrediction> CreateBraggPrediction(bool rotation_indexing, int max_reflections) {
|
|
#ifdef JFJOCH_USE_CUDA
|
|
if (get_gpu_count() > 0)
|
|
return std::make_unique<BraggPredictionGPU>(max_reflections);
|
|
#endif
|
|
return std::make_unique<BraggPrediction>(max_reflections);
|
|
}
|