Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Functions
KernelLauncher.hh File Reference
#include <utility>
#include "corecel/Config.hh"
#include "MultiExceptionHandler.hh"
#include "ThreadId.hh"
This graph shows which files directly or indirectly include this file:

Functions

template<class F >
void celeritas::launch_kernel (size_type num_threads, F &&execute_thread)
 Helper function to run an executor in parallel on CPU.
 

Function Documentation

◆ launch_kernel()

template<class F >
void celeritas::launch_kernel ( size_type  num_threads,
F &&  execute_thread 
)

Helper function to run an executor in parallel on CPU.

The function should be an executor with the signature

void(*)(ThreadId)

.

Example:

void do_something()
{
launch_kernel(num_threads, make_blah_executor(blah));
}