Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMP MacOS #65

Open
TeachRaccooon opened this issue Apr 1, 2024 · 1 comment
Open

OMP MacOS #65

TeachRaccooon opened this issue Apr 1, 2024 · 1 comment

Comments

@TeachRaccooon
Copy link
Contributor

Need to figure out what the following issue is about:

/Users/runner/work/RandLAPACK/RandLAPACK/RandLAPACK/../RandLAPACK/drivers/rl_rbki.hh:250:5: error: use of undeclared identifier 'omp_set_num_threads' omp_set_num_threads(this->num_threads_some);

Using a temporary fix to avoid this call on MacOS platforms for now.

@rileyjmurray
Copy link
Contributor

The way to fix this is just to wrap OpenMP calls with RandLAPACK_HAS_OpenMP. For example,

#if RandLAPACK_HAS_OpenMP
int num_threads = omp_get_num_threads();
#else 
int num_threads = 1;
#endif 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants