-
Notifications
You must be signed in to change notification settings - Fork 435
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
UCT/CUDA/CUDA_COPY: Enabled memory attributes query after switching CUDA GPU. #10388
base: master
Are you sure you want to change the base?
Conversation
d31bb61
to
1adcb5e
Compare
test/gtest/ucp/test_ucp_mmap.cc
Outdated
class test_ucp_mmap_mgpu : public ucs::test { | ||
}; | ||
|
||
UCS_TEST_F(test_ucp_mmap_mgpu, switch_gpu) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to add tests for transfer cuda_copy or cuda_ipc, mem type cuda or vmm/mallocasync:
- buf1 on device1, buf2 on device2, copy happening under progress with context of unrelated device3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, we will need more test cases.
The test in this PR is the simplest one. And it fails. Once it is fixed, we will add more scenarios.
/azp run UCX PR |
Azure Pipelines successfully started running 1 pipeline(s). |
4adf57b
to
6d38f73
Compare
ASSERT_EQ(cudaGetDevice(&device), cudaSuccess); | ||
ASSERT_EQ(cudaSetDevice((device + 1) % num_devices), cudaSuccess); | ||
|
||
const int size = 16; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosmetic: size_t looks more appropriate
What?
Enabled memory attributes query by
cuda_cpy
memory domain after switching CUDA GPU.Added test.
Without the changes in
cuda_cpy
memory domain the test fails with the following error: