waLBerla 7.2
Loading...
Searching...
No Matches
OpenMP.h File Reference

Detailed Description

Guarded OpenMP include.

#include "core/Abort.h"
#include "waLBerlaDefinitions.h"
#include <stdlib.h>

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 

Macros

#define WALBERLA_OPENMP_SECTION()   if(false)
 
#define WALBERLA_NON_OPENMP_SECTION()   if(true)
 
#define WALBERLA_OPENMP_FUNCTION_ERROR   WALBERLA_ABORT( "Invalid OpenMP function call! In case of compiling without OpenMP, OpenMP functions are not available and shouldn't be called!" );
 

Typedefs

using walberla::omp_sched_t
 
using walberla::omp_lock_t
 
using walberla::omp_nest_lock_t
 
using walberla::omp_lock_hint_t
 
using walberla::omp_proc_bind_t
 

Functions

void walberla::omp_set_num_threads (int)
 
void walberla::omp_set_dynamic (int)
 
void walberla::omp_set_nested (int)
 
void walberla::omp_set_max_active_levels (int)
 
void walberla::omp_set_schedule (omp_sched_t, int)
 
int walberla::omp_get_num_threads ()
 
int walberla::omp_get_dynamic ()
 
int walberla::omp_get_nested ()
 
int walberla::omp_get_max_threads ()
 
int walberla::omp_get_thread_num ()
 
int walberla::omp_get_num_procs ()
 
int walberla::omp_in_parallel ()
 
int walberla::omp_in_final ()
 
int walberla::omp_get_active_level ()
 
int walberla::omp_get_level ()
 
int walberla::omp_get_ancestor_thread_num (int)
 
int walberla::omp_get_team_size (int)
 
int walberla::omp_get_thread_limit ()
 
int walberla::omp_get_max_active_levels ()
 
void walberla::omp_get_schedule (omp_sched_t *, int *)
 
int walberla::omp_get_max_task_priority ()
 
void walberla::omp_init_lock (omp_lock_t *)
 
void walberla::omp_set_lock (omp_lock_t *)
 
void walberla::omp_unset_lock (omp_lock_t *)
 
void walberla::omp_destroy_lock (omp_lock_t *)
 
int walberla::omp_test_lock (omp_lock_t *)
 
void walberla::omp_init_nest_lock (omp_nest_lock_t *)
 
void walberla::omp_set_nest_lock (omp_nest_lock_t *)
 
void walberla::omp_unset_nest_lock (omp_nest_lock_t *)
 
void walberla::omp_destroy_nest_lock (omp_nest_lock_t *)
 
int walberla::omp_test_nest_lock (omp_nest_lock_t *)
 
void walberla::omp_init_lock_with_hint (omp_lock_t *, omp_lock_hint_t)
 
void walberla::omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_lock_hint_t)
 
double walberla::omp_get_wtime ()
 
double walberla::omp_get_wtick ()
 
int walberla::omp_get_default_device ()
 
void walberla::omp_set_default_device (int)
 
int walberla::omp_is_initial_device ()
 
int walberla::omp_get_num_devices ()
 
int walberla::omp_get_num_teams ()
 
int walberla::omp_get_team_num ()
 
int walberla::omp_get_cancellation ()
 
int walberla::omp_get_initial_device ()
 
void * walberla::omp_target_alloc (size_t, int)
 
void walberla::omp_target_free (void *, int)
 
int walberla::omp_target_is_present (void *, int)
 
int walberla::omp_target_memcpy (void *, void *, size_t, size_t, size_t, int, int)
 
int walberla::omp_target_memcpy_rect (void *, void *, size_t, int, const size_t *, const size_t *, const size_t *, const size_t *, const size_t *, int, int)
 
int walberla::omp_target_associate_ptr (void *, void *, size_t, size_t, int)
 
int walberla::omp_target_disassociate_ptr (void *, int)
 
omp_proc_bind_t walberla::omp_get_proc_bind ()
 
int walberla::omp_get_num_places ()
 
int walberla::omp_get_place_num_procs (int)
 
void walberla::omp_get_place_proc_ids (int, int *)
 
int walberla::omp_get_place_num ()
 
int walberla::omp_get_partition_num_places ()
 
void walberla::omp_get_partition_place_nums (int *)
 

Macro Definition Documentation

◆ WALBERLA_NON_OPENMP_SECTION

#define WALBERLA_NON_OPENMP_SECTION ( )    if(true)

◆ WALBERLA_OPENMP_FUNCTION_ERROR

#define WALBERLA_OPENMP_FUNCTION_ERROR   WALBERLA_ABORT( "Invalid OpenMP function call! In case of compiling without OpenMP, OpenMP functions are not available and shouldn't be called!" );

◆ WALBERLA_OPENMP_SECTION

#define WALBERLA_OPENMP_SECTION ( )    if(false)