Created
July 26, 2013 11:17
-
-
Save niklasfi/6088110 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void set_threads(){ | |
#ifdef SCSL | |
openblas_set_num_threads(1); | |
#elifdef SCPL | |
openblas_set_num_threads(num_threads()); | |
#elifdef PCSL | |
openblas_set_num_threads(1); | |
#else | |
_Static_assert (0, "you did not pass appropriate compiler flags. Make sure that either SCSL, SCPL or PCSL is set."); | |
#endif | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-DSCPL=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment