9.1
general documentation
cs_void_context Class Reference

#include <cs_dispatch.h>

+ Inheritance diagram for cs_void_context:
+ Collaboration diagram for cs_void_context:

Public Member Functions

 cs_void_context (void)
 Constructor. More...
 
void set_cuda_grid (long grid_size, long block_size)
 
void set_cuda_stream (int stream_id)
 
void set_cuda_device (int device_id)
 
void set_use_gpu (bool use_gpu)
 
bool use_gpu (void)
 Check whether we are trying to run on GPU. More...
 
cs_alloc_mode_t alloc_mode (void)
 Check preferred allocation mode depending on execution policy. More...
 
cs_alloc_mode_t alloc_mode (bool readable_on_cpu)
 
template<class F , class... Args>
bool parallel_for (cs_lnum_t n, F &&f, Args &&... args)
 
template<class T , class F , class... Args>
bool parallel_for_reduce_sum (cs_lnum_t n, T &sum, F &&f, Args &&... args)
 
template<class T , class R , class F , class... Args>
bool parallel_for_reduce (cs_lnum_t n, T &result, R &reducer, F &&f, Args &&... args)
 
template<class... Args>
bool wait (void)
 
- Public Member Functions inherited from cs_dispatch_context_mixin< cs_void_context >
decltype(auto) parallel_for (cs_lnum_t n, F &&f, Args &&... args)=delete
 
decltype(auto) parallel_for_i_faces (const M *m, F &&f, Args &&... args)
 
decltype(auto) parallel_for_b_faces (const M *m, F &&f, Args &&... args)
 
decltype(auto) parallel_for_reduce_sum (cs_lnum_t n, T &sum, F &&f, Args &&... args)=delete
 
decltype(auto) parallel_for_reduce (cs_lnum_t n, T &r, R &reducer, F &&f, Args &&... args)=delete
 
decltype(auto) wait (void)=delete
 
bool try_get_parallel_for_i_faces_sum_type (const M *m, cs_dispatch_sum_type_t &st)
 
bool try_get_parallel_for_b_faces_sum_type (const M *m, cs_dispatch_sum_type_t &st)
 

Detailed Description

Context to group unused options and catch missing execution paths.

Constructor & Destructor Documentation

◆ cs_void_context()

cs_void_context ( void  )
inline

Constructor.

Member Function Documentation

◆ alloc_mode() [1/2]

cs_alloc_mode_t alloc_mode ( bool  readable_on_cpu)
inline

◆ alloc_mode() [2/2]

cs_alloc_mode_t alloc_mode ( void  )
inline

Check preferred allocation mode depending on execution policy.

◆ parallel_for()

bool parallel_for ( cs_lnum_t  n,
F &&  f,
Args &&...  args 
)
inline

◆ parallel_for_reduce()

bool parallel_for_reduce ( cs_lnum_t  n,
T &  result,
R &  reducer,
F &&  f,
Args &&...  args 
)
inline

◆ parallel_for_reduce_sum()

bool parallel_for_reduce_sum ( cs_lnum_t  n,
T &  sum,
F &&  f,
Args &&...  args 
)
inline

◆ set_cuda_device()

void set_cuda_device ( int  device_id)
inline

◆ set_cuda_grid()

void set_cuda_grid ( long  grid_size,
long  block_size 
)
inline

◆ set_cuda_stream()

void set_cuda_stream ( int  stream_id)
inline

◆ set_use_gpu()

void set_use_gpu ( bool  use_gpu)
inline

◆ use_gpu()

bool use_gpu ( void  )
inline

Check whether we are trying to run on GPU.

◆ wait()

bool wait ( void  )
inline

The documentation for this class was generated from the following file: