Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-26 09:34:39

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file corecel/sys/Openmp.hh
0006 //! \brief Thin wrappers around OpenMP function calls.
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Types.hh"
0011 
0012 namespace celeritas
0013 {
0014 //---------------------------------------------------------------------------//
0015 
0016 // Get the maximum number of threads that can execute in parallel
0017 size_type openmp_thread_limit();
0018 
0019 // Get the maximum number of threads in a new parallel region
0020 size_type openmp_max_threads();
0021 
0022 // Set the maximum number of threads for default future parallel regions
0023 void openmp_num_threads(size_type);
0024 
0025 // Get the openmp process bind affinity
0026 char const* openmp_proc_bind();
0027 
0028 //---------------------------------------------------------------------------//
0029 }  // namespace celeritas