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

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

elohmeier
Copy link
Contributor

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.

Copy link
Collaborator

@mfbalin mfbalin left a comment

Choose a reason for hiding this comment

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

Thank you for the fix.

@mfbalin mfbalin merged commit 51907e0 into dmlc:master Jan 26, 2025
1 check was pending
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