alpaqa develop
Nonconvex constrained optimization
Loading...
Searching...
No Matches
openmp.cpp
Go to the documentation of this file.
1#ifdef _OPENMP
2
3#if defined(__GNUC__)
4#define ALPAQA_USED [[gnu::used]]
5#elif defined(_MSC_VER)
6#define ALPAQA_USED __declspec(dllexport)
7#else
8#define ALPAQA_USED
9#endif
10
11namespace alpaqa::detail {
13#pragma omp parallel
14 {
15 [[maybe_unused]] const char *volatile msg =
16 "Force linking OpenMP, even if not used inside of alpaqa itself";
17 }
18}
19} // namespace alpaqa::detail
20
21#endif
constexpr const auto inf
Definition config.hpp:112