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

Remove internal use of gpu_id. #9568

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Sep 11, 2023

Device communicator is still using integer ordinal, which will be changed by upcoming PRs.

@hcho3
Copy link
Collaborator

hcho3 commented Sep 12, 2023

Why are we dropping gtest from the CI?

@trivialfis
Copy link
Member Author

@hcho3 windows build is failing with cmake find gtest. (same error on master branch). Since the test is building the Python package, I figure we don't need to build c++ tests as we are not running it.

@hcho3
Copy link
Collaborator

hcho3 commented Sep 12, 2023

Are we not running gtest on Windows CI?

@trivialfis
Copy link
Member Author

only on buildkite.

@hcho3
Copy link
Collaborator

hcho3 commented Sep 12, 2023

Ah, got it

@@ -138,7 +138,7 @@ class HostDeviceVectorImpl {
} else {
auto ptr = other->ConstDevicePointer();
SetDevice();
CHECK_EQ(this->DeviceIdx(), other->DeviceIdx());
CHECK_EQ(this->Device().ordinal, other->Device().ordinal);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
CHECK_EQ(this->Device().ordinal, other->Device().ordinal);
CHECK(this->Device() == other->Device());

Comment on lines +165 to +166
if (device_.IsCUDA() && device.IsCUDA()) {
CHECK_EQ(device_.ordinal, device.ordinal)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible for two DeviceOrd objects to be different when they have the same positive value in the ordinal field ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not possible at the moment. Unless there's new device type other than CUDA.

Comment on lines 1051 to 1052
CHECK(!p_fmat->Info().IsColumnSplit())
<< "Predict contribution support for column-wise data split is not yet implemented.";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is SHAP support available for column-wise split data now?

Copy link
Member Author

Choose a reason for hiding this comment

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

The check was removed between PR rebases. I will bring it back.

@trivialfis trivialfis merged commit 8c676c8 into dmlc:master Sep 20, 2023
20 of 21 checks passed
@trivialfis trivialfis deleted the device-ordinal branch September 20, 2023 15:29
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