#include <cs_dispatch.h>
Inheritance diagram for cs_dispatch_context:
Collaboration diagram for cs_dispatch_context:Additional Inherited Members | |
Public Member Functions inherited from cs_combined_context< cs_host_context, cs_void_context > | |
| cs_combined_context ()=default | |
| cs_combined_context (Contexts... contexts) | |
| auto | parallel_for_i_faces (const M *m, F &&f, Args &&... args) |
| auto | parallel_for_b_faces (const M *m, F &&f, Args &&... args) |
| auto | parallel_for (cs_lnum_t n, F &&f, Args &&... args) |
| auto | parallel_for_reduce_sum (cs_lnum_t n, T &sum, F &&f, Args &&... args) |
| auto | parallel_for_reduce (cs_lnum_t n, T &result, R &reducer, F &&f, Args &&... args) |
| void | wait (void) |
| Wait (synchronize) until launched computations have finished. More... | |
| cs_dispatch_sum_type_t | get_parallel_for_i_faces_sum_type (const M *m) |
| Return sum type to be used with parallel_for_i_faces. More... | |
| cs_dispatch_sum_type_t | get_parallel_for_b_faces_sum_type (const M *m) |
| Return sum type to be used with parallel_for_b_faces. More... | |
Public Member Functions inherited from cs_dispatch_context_mixin< cs_combined_context< Contexts... > > | |
| 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) |
Default cs_dispatch_context that is a combination of (CPU) and GPU (CUDA) context if available.