9.2
general documentation
cs_execution_context.h File Reference
#include "base/cs_defs.h"
#include "base/cs_dispatch.h"
#include <utility>
+ Include dependency graph for cs_execution_context.h:

Go to the source code of this file.

Classes

class  mpi_wrapper
 
class  environment
 

Namespaces

namespace  cs
 
namespace  cs::execution
 

Typedefs

using cs_mpi_wrapper = cs::execution::mpi_wrapper
 

Enumerations

enum class  exec_type { device , host , unknown }
 

Functions

const environment * default_env (void)
 
cs_dispatch_contextdefault_context (void)
 
cs_host_contextdefault_h_context (void)
 
mpi_wrapper & default_mpi (void)
 
void cs_execution_default_env_init (void)
 Initialize the global execution context. More...
 
void cs_execution_default_env_finalize (void)
 Free the global execution context pointer. More...
 
void cs_execution_default_env_init_context (void)
 Initialize context (CPU/GPU) More...
 
template<exec_type _EXEC_, class F , class... Args>
bool parallel_for (cs_lnum_t n, F &&f, Args &&... args)
 parallel_for construct using a dispatch context based on template parameter (enum) "exec_type" More...
 
template<class F , class... Args>
bool parallel_for (cs_lnum_t n, F &&f, Args &&... args)
 parallel_for construct using the default global dispatch context More...
 
template<class F , class... Args>
bool parallel_for (cs_dispatch_context &ctx, cs_lnum_t n, F &&f, Args &&... args)
 parallel_for construct using a dispatch context as input argument More...
 
template<class F , class... Args>
bool parallel_for (cs_host_context &ctx, cs_lnum_t n, F &&f, Args &&... args)
 parallel_for construct using a host context as input argument More...
 
template<exec_type _EXEC_, class M , class F , class... Args>
bool parallel_for_i_faces (const M *m, F &&f, Args &&... args)
 parallel_for_i_faces construct using a dispatch context based on template parameter (enum) "exec_type" More...
 
template<class M , class F , class... Args>
bool parallel_for_i_faces (const M *m, F &&f, Args &&... args)
 parallel_for_i_faces construct using the default global dispatch context More...
 
template<class M , class F , class... Args>
bool parallel_for_i_faces (cs_dispatch_context &ctx, const M *m, F &&f, Args &&... args)
 parallel_for_i_faces construct using dispatch context as input argument More...
 
template<class M , class F , class... Args>
bool parallel_for_i_faces (cs_host_context &ctx, const M *m, F &&f, Args &&... args)
 parallel_for_i_faces construct using host context as input argument More...
 
template<exec_type _EXEC_, class T , class F , class... Args>
bool parallel_for_reduce_sum (cs_lnum_t n, T &sum, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using a dispatch context based on template parameter (enum) "exec_type" More...
 
template<class T , class F , class... Args>
bool parallel_for_reduce_sum (cs_lnum_t n, T &sum, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using the default global dispatch context More...
 
template<class T , class F , class... Args>
bool parallel_for_reduce_sum (cs_dispatch_context &ctx, cs_lnum_t n, T &sum, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using the default global dispatch context More...
 
template<class T , class F , class... Args>
bool parallel_for_reduce_sum (cs_host_context &ctx, cs_lnum_t n, T &sum, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using the default global host context More...
 
template<exec_type _EXEC_, class T , class R , class F , class... Args>
bool parallel_for_reduce (cs_lnum_t n, T &result, R &reducer, F &&f, Args &&... args)
 parallel_for_reduce construct using a dispatch context based on template parameter (enum) "exec_type" More...
 
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)
 parallel_for_reduce construct using the default global dispatch context More...
 
template<class T , class R , class F , class... Args>
bool parallel_for_reduce (cs_dispatch_context &ctx, cs_lnum_t n, T &result, R &reducer, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using the default global dispatch context More...
 
template<class T , class R , class F , class... Args>
bool parallel_for_reduce (cs_host_context &ctx, cs_lnum_t n, T &result, R &reducer, F &&f, Args &&... args)
 parallel_for_reduce_sum construct using the default global host context More...
 
template<exec_type _EXEC_, class... Args>
bool wait (void)
 wait construct using a dispatch context based on template parameter of exec_type (enum) More...
 
template<class... Args>
bool wait (void)
 wait construct using the default global dispatch context More...
 
template<class... Args>
bool wait (cs_dispatch_context &ctx)
 wait construct using a dispatch context as input argument More...
 
template<class... Args>
bool wait (cs_host_context &ctx)
 wait construct using a host context as input argument More...
 

Typedef Documentation

◆ cs_mpi_wrapper

Function Documentation

◆ cs_execution_default_env_finalize()

void cs_execution_default_env_finalize ( )

Free the global execution context pointer.

◆ cs_execution_default_env_init()

void cs_execution_default_env_init ( void  )

Initialize the global execution context.

◆ cs_execution_default_env_init_context()

void cs_execution_default_env_init_context ( void  )

Initialize context (CPU/GPU)