mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-31 09:11:30 +01:00
CUDA: unify GPU code under aare::cuda
- aare::device -> aare::cuda::detail; drivers, RAII helpers, StreamContext* moved into aare::cuda(::detail) - Algo contract: add compute_type, assert floating point - LaunchParams::nSigma uses compute_type - test: use FastPedestal in the manual route
This commit is contained in:
1 parent
1503331100
commit
0c3c45e653
10 files changed
+73
-49
No files matched your search
@@ -29,8 +29,8 @@ void define_ClusterFinderCUDA(py::module &m, const std::string &typestr) {
|
||||
using ClusterType = Cluster<T, ClusterSizeX, ClusterSizeY, CoordType>;
|
||||
// The driver is templated on the algorithm; a second algorithm is a second
|
||||
// instantiation registered under its own suffix (see ClusterFinder.py).
|
||||
using Algo = aare::cuda::FixedWindow<ClusterType, uint16_t>;
|
||||
using CF = ClusterFinderCUDA<Algo, pd_type>;
|
||||
using Algo = cuda::FixedWindow<ClusterType, uint16_t>;
|
||||
using CF = cuda::ClusterFinderCUDA<Algo, pd_type>;
|
||||
using ContigArr =
|
||||
py::array_t<uint16_t, py::array::c_style | py::array::forcecast>;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ void define_ClusterFinderCUDAGraph(py::module &m, const std::string &typestr) {
|
||||
auto class_name = fmt::format("ClusterFinderCUDAGraph_{}", typestr);
|
||||
|
||||
using ClusterType = Cluster<T, ClusterSizeX, ClusterSizeY, CoordType>;
|
||||
using CF = ClusterFinderCUDAGraph<ClusterType, uint16_t, pd_type>;
|
||||
using CF = cuda::ClusterFinderCUDAGraph<ClusterType, uint16_t, pd_type>;
|
||||
using ContigArr =
|
||||
py::array_t<uint16_t, py::array::c_style | py::array::forcecast>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user