CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
get_queue.hpp
Go to the documentation of this file.
1
4
5
#pragma once
6
7
#include "CLUEstering/core/detail/defines.hpp"
8
#include "CLUEstering/detail/concepts.hpp"
9
#include <concepts>
10
#include <alpaka/alpaka.hpp>
11
12
namespace
clue {
13
19
template
<std::
int
egral TIdx>
20
inline
clue::Queue
get_queue
(TIdx device_id = TIdx{}) {
21
auto
device = alpaka::getDevByIdx(clue::Platform{}, device_id);
22
return
clue::Queue{device};
23
}
24
30
template
<detail::concepts::device TDevice>
31
inline
clue::Queue
get_queue
(
const
TDevice& device) {
32
return
clue::Queue{device};
33
}
34
35
}
// namespace clue
clue::get_queue
clue::Queue get_queue(TIdx device_id=TIdx{})
Get an alpaka queue created from a device correspoding to a given index.
Definition
get_queue.hpp:20
include
CLUEstering
utils
get_queue.hpp
Generated by
1.13.2