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

SubDyn and MKL #29

Closed
sinolonghai opened this issue May 17, 2017 · 4 comments
Closed

SubDyn and MKL #29

sinolonghai opened this issue May 17, 2017 · 4 comments

Comments

@sinolonghai
Copy link
Contributor

I compiled openfast using intel compiler with MKL math library. For Test21, I found that when I set OMP_NUM_THREADS parameter to a larger number, the MKL can run in parallel, which can speed-up the calculation. However, when OMP_NUM_THREADS is set to different values, the generated Test21.SD.sum files are different, and then obviously the final calculation results are different. Any reason for this to happen?

Thanks!

Hai

@michaelasprague
Copy link
Contributor

@sinolonghai, is the only parallelization embodied in the MKL library? (and no where else in FAST)?

@jrood-nrel
Copy link
Collaborator

I would expect differences with threaded MKL. It just depends on how different. https://software.intel.com/en-us/articles/getting-reproducible-results-with-intel-mkl/

@jrood-nrel
Copy link
Collaborator

Also you can try turning on CNR and see if that gives you the same answer.
https://software.intel.com/en-us/node/528730

@sinolonghai
Copy link
Contributor Author

Yes Mike and Jon. This is an MKL problem. By setting both OMP_NUM_THREADS and MKL_NUM_THREADS, if MKL_NUM_THREADS uses the same value, no matter what OMP_NUM_THREADS value will be, the final result will remain identical.

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

4 participants