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

Make OpenMP range algebra buildable with MSVC #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MadCatX
Copy link

@MadCatX MadCatX commented Jan 14, 2019

Current implementation of openmp_range_algebra uses unsigned type (size_t) as index in for loops that are parallelized by OpenMP. This is not supported by MSVC. Additionally, as MSVC is still stuck with OpenMP 2.0 support, the OpenMP reduction syntax used by norm_inf also does not compile. The following patch fixes the issue; at least for MSVC 14.

Copy link

@TomFD TomFD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked it. And it is necessary to change this. Really does not compile in MSVS without it.

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

Successfully merging this pull request may close these issues.

2 participants