CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
get_device.hpp
Go to the documentation of this file.
1
4
5
#pragma once
6
7
#include "CLUEstering/core/detail/defines.hpp"
8
#include <alpaka/alpaka.hpp>
9
10
namespace
clue {
11
16
inline
clue::Device
get_device
(uint32_t device_id) {
17
return
alpaka::getDevByIdx(clue::Platform{}, device_id);
18
}
19
20
}
// namespace clue
clue::get_device
clue::Device get_device(uint32_t device_id)
Get the alpaka device corresponding to a given index.
Definition
get_device.hpp:16
include
CLUEstering
utils
get_device.hpp
Generated by
1.13.2