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

build with OpenMP #61

Open
markendr opened this issue Aug 17, 2020 · 1 comment
Open

build with OpenMP #61

markendr opened this issue Aug 17, 2020 · 1 comment

Comments

@markendr
Copy link

I was hoping to get OpenMP working with the win64 conda-forge mumps module:

mumps 5.1.2 h8933c1f_1001 conda-forge

The verbose output for the mumps module shows the build is without OMP. If I manually build with compiler openmp flags the output shows #OMP = 8. The openmp build runs 2-3x faster for larger problems on my 4-core laptop, so it is definitely worthwhile.

I am working on a PR to enable OpenMP but find the mumps-feedstock is using NMake Makefiles and flang for win64, rather than MinGW Makefiles and gfortran. (Not sure why I don't get the flang build when I use conda install mumps?)

I can build the module from the feedstock using flang, but flang gives command failed due to signal if I add the -mp openmp compile flag. I have not found any relevant LLVM/MSVC openmp support info/limitiations, but clang works fine for an C openmp code.

The linux build with openmp is fine.

Should I do a PR for a MinGW/gfortran build, or any suggestions on getting OpenMP working with flang?

@moorepants
Copy link

If you can get OpenMP with the current windows build setup that is fine. I don't know about flang + OpenMP, try searching if any other feedstocks use OpenMP on windows with flang.

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