3 ms·
OpenMP code can be compiled as single threaded on compilers that don't support it without code changes. It's not a language but more like a set of annotations t
by phkahler 5y ago
OpenMP code can be compiled as single threaded on compilers that don't support it without code changes. It's not a language but more like a set of annotations to be added.
I was not aware of C++ having something similar. Is that a new feature?
Edit: YES it's C++17 and later:
https://en.cppreference.com/w/cpp/algorithm/execution_policy_tag https://en.cppreference.com/w/cpp/algorithm/execution_policy...