Skip to content

xeigtsts is crashed on Windows with USE_OPENMP=1 #287

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

Closed
xianyi opened this issue Aug 28, 2013 · 2 comments
Closed

xeigtsts is crashed on Windows with USE_OPENMP=1 #287

xianyi opened this issue Aug 28, 2013 · 2 comments
Labels
Milestone

Comments

@xianyi
Copy link
Collaborator

xianyi commented Aug 28, 2013

As same as report in #286 , xeigtsts is crashed on Windows 32/64 bit with USE_OPENMP=1.

@crazyi
Copy link

crazyi commented Aug 28, 2013

Hi @xianyi
I was confused by openmp and the native multi-threads feathers in Openblas, and I don't know whether I am right on these:

  1. Openmp can not work together with the native multi-threads feathers in Openblas? These two are always work alone?
  2. Once I use USE_OPENMP=1, the makefile will automatically disable the native multi-threads feathers in Openblas, and vice versa?

@xianyi
Copy link
Collaborator Author

xianyi commented Aug 29, 2013

For question 1,
if you call OpenBLAS in OpenMP parallel region, it will conflict with OpenMP threading. You can set the environment export OPENBLAS_NUM_THREADS=1 before the binary running. Or, call openblas_set_num_threads(1) function before the OpenMP parallel region in the program.

For question 2,
if you use USE_OPENMP=1, OpenBLAS will disable native multi-threaading (win32 thread or pthread).

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

No branches or pull requests

2 participants