pinocchio
3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
openmp.hpp
1
//
2
// Copyright (c) 2021 INRIA
3
//
4
5
#ifndef __pinocchio_utils_openmp_hpp__
6
#define __pinocchio_utils_openmp_hpp__
7
8
#include <cstdlib>
9
10
namespace
pinocchio
11
{
12
16
inline
int
getOpenMPNumThreadsEnv
()
17
{
18
int
num_threads
= 1;
19
20
if
(
const
char
*
env_p
= std::getenv(
"OMP_NUM_THREADS"
))
21
num_threads
=
atoi
(
env_p
);
22
23
return
num_threads
;
24
}
25
}
// namespace pinocchio
26
27
#endif
// ifndef __pinocchio_utils_openmp_hpp__
pinocchio
Main pinocchio namespace.
Definition
treeview.dox:11
pinocchio::getOpenMPNumThreadsEnv
int getOpenMPNumThreadsEnv()
Returns the number of thread defined by the environment variable OMP_NUM_THREADS. If this variable is...
Definition
openmp.hpp:16
pinocchio::ContactSolverBaseTpl
Definition
contact-solver-base.hpp:20
include
pinocchio
utils
openmp.hpp
Generated by
1.9.8