Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

conditional compilation for openmp task on windows#6

Open
malytomas wants to merge 2 commits into
masterfrom
tomas/msvcfix
Open

conditional compilation for openmp task on windows#6
malytomas wants to merge 2 commits into
masterfrom
tomas/msvcfix

Conversation

@malytomas

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread vts-libs/vts/tileset/merge/coverage.cpp Outdated

UTILITY_OMP(parallel for)
for (std::size_t idx = 0; idx < total; ++idx) {
UTILITY_OMP(parallel for shared(kernelRadius))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If kernel radius is not modidifier, shouldn't it be firstprivate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

shared preserves the same meaning as before. i do not change program logic, just make it compile with msvc (this is a workaround for a bug in the compiler)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants