TRIQS / nda

C++ library for multi-dimensional arrays
https://triqs.github.io/nda
Other
13 stars 11 forks source link

Bug report: Use of nda with openmp #37

Closed mmorale3 closed 1 year ago

mmorale3 commented 1 year ago

Description

nda can not be used in combination with openmp, even when use of nda is strictly avoided inside parallel regions. The specific line that prevents it is in c++/nda/mem/policies.hpp,

ifdef _OPENMP

static_assert(false and !std::is_void_v<Allocator>, "Custom Allocators are not available in OpenMP");

endif

Wentzell commented 1 year ago

This was fixed on unstable