CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
get_device.hpp File Reference

Provides a function to get an alpaka device by its index. More...

#include "CLUEstering/core/detail/defines.hpp"
#include <alpaka/alpaka.hpp>

Go to the source code of this file.

Functions

clue::Device clue::get_device (uint32_t device_id)
 Get the alpaka device corresponding to a given index.
 

Detailed Description

Provides a function to get an alpaka device by its index.

Authors
Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini

Function Documentation

◆ get_device()

clue::Device clue::get_device ( uint32_t device_id)
inline

Get the alpaka device corresponding to a given index.

Parameters
device_idThe index of the device
Returns
The alpaka device corresponding to the given index