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

Work around a compiler bug in MacOS AppleClang 11 #6103

Merged
merged 5 commits into from
Sep 10, 2020

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Sep 9, 2020

Fixes #6102 by avoiding a variable capture in xgboost::common::ParallelFor2d. This works around a compiler bug in AppleClang 11.0.3 while preserving the semantics.

Also, add MacOS Catalina to the testing matrix, which has AppleClang 11.0.3.

@hcho3 hcho3 changed the title Workaround a compiler bug in MacOS AppleClang 11 Work around a compiler bug in MacOS AppleClang 11 Sep 9, 2020
@trivialfis
Copy link
Member

actually can we do the test on Action instead? Travis is quite slow.

@hcho3 hcho3 merged commit d0ccb13 into dmlc:master Sep 10, 2020
@hcho3 hcho3 deleted the workaround_appleclang_bug branch September 10, 2020 04:22
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.

MacOS AppleClang 11 segfaults at commit ee70a23
2 participants