Skip to content

Make OpenMP range algebra buildable with MSVC#233

Open
MadCatX wants to merge 1 commit into
headmyshoulder:masterfrom
MadCatX:master
Open

Make OpenMP range algebra buildable with MSVC#233
MadCatX wants to merge 1 commit into
headmyshoulder:masterfrom
MadCatX:master

Conversation

@MadCatX
Copy link
Copy Markdown

@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
Copy Markdown

@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