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

fix(dgl/runtime): add static_cast to fix clang compilation when using OpenMP #7844

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

Conversation

elohmeier
Copy link

This fixes a compilation issue on macOS when compiling with OpenMP support:

dgl/include/dgl/runtime/parallel_for.h:88:22: error: no matching function for call to 'min'
      auto end_tid = std::min(end, chunk_size + begin_tid);
                     ^~~~~~~~

Same kind of bug as in #3631.

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.

1 participant