Celeritas  0.5.0-86+4a8eea4
Enumerations | Functions
Thrust.device.hh File Reference

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"
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Platform and version-specific thrust setup.

Function Documentation

◆ thrust_execute_on()

template<ThrustExecMode T = ThrustExecMode::Async>
auto celeritas::thrust_execute_on ( StreamId  stream_id)
inline

Returns an execution space for the given stream.

The template parameter defines whether the algorithm should be executed synchronously or asynchrounously.