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

Use raft current_resource wrappers #6059

Conversation

harrism
Copy link
Member

@harrism harrism commented Sep 4, 2024

Closes #6058

Also eliminates some raw allocation using rmm::device_buffer.

Depends on rapidsai/raft#2424

@harrism harrism changed the title Use raft current_resource wrappers. Also eliminate some raw allocation using rmm::device_buffer. Use raft current_resource wrappers Sep 4, 2024
@harrism harrism added feature request New feature or request non-breaking Non-breaking change labels Sep 4, 2024
@@ -38,7 +38,10 @@ namespace genetic {
class GeneticProgramTest : public ::testing::Test {
public:
GeneticProgramTest()
: d_data(0, cudaStream_t(0)),
: nodes1_buffer(7 * sizeof(node), stream),
Copy link
Member Author

Choose a reason for hiding this comment

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

By constructing device_buffer in the constructor of the fixture, we can eliminate the raw allocation and deallocation in SetUp and TearDown.

@harrism harrism closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA/C++ feature request New feature or request non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Use RAFT get/set_current_device_resource() wrappers in cuML
1 participant