Celeritas
0.5.0-86+4a8eea4
|
Platform and version-specific thrust setup. More...
#include <thrust/execution_policy.h>
#include <thrust/mr/allocator.h>
#include <thrust/version.h>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
#include "Device.hh"
#include "Stream.hh"
#include "ThreadId.hh"
Enumerations | |
enum class | celeritas::ThrustExecMode { Sync , Async } |
Execution semantics for thrust algorithms. | |
Functions | |
template<ThrustExecMode T = ThrustExecMode::Async> | |
auto & | celeritas::thrust_execution_policy () |
Returns an execution policy depending on thrust's version. | |
template<ThrustExecMode T = ThrustExecMode::Async> | |
auto | celeritas::thrust_execute_on (StreamId stream_id) |
Returns an execution space for the given stream. More... | |
Platform and version-specific thrust setup.
|
inline |
Returns an execution space for the given stream.
The template parameter defines whether the algorithm should be executed synchronously or asynchrounously.