Skip to content

Instantly share code, notes, and snippets.

@maniyar1
Created December 3, 2022 05:00
Show Gist options
  • Save maniyar1/c5034c5d5152a2c8357614693379ec69 to your computer and use it in GitHub Desktop.
Save maniyar1/c5034c5d5152a2c8357614693379ec69 to your computer and use it in GitHub Desktop.
17a18
> #include <omp.h>
62c63,64
< // TODO: to be tested
---
> auto prevMaxThreads = omp_get_num_threads();
> omp_set_num_threads(1);
84c86
< // TODO: to be tested
---
> omp_set_num_threads(prevMaxThreads);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment