Skip to content

Commit 9ca826f

Browse files
committed
TEST/GTEST: Add a workaround for memtype cache pollution
1 parent 93c23d0 commit 9ca826f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

test/gtest/uct/cuda/test_switch_cuda_device.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,13 @@ UCS_TEST_P(test_mem_alloc_device, no_current_context_vmm_mem_registrable,
577577
}
578578

579579
#if CUDA_VERSION >= 12020
580-
/* Host-located VMM is not dmabuf-exportable but is registrable by IB */
581-
UCS_TEST_P(test_mem_alloc_device, host_vmm_mem_registrable)
580+
/* Host-located VMM is not dmabuf-exportable but is registrable by IB.
581+
*
582+
* TODO: REG_WHOLE_ALLOC=off is needed because of an existing issue with
583+
* base_address being set to 0, causing cache pollution with this type of memory
584+
*/
585+
UCS_TEST_P(test_mem_alloc_device, host_vmm_mem_registrable,
586+
"CUDA_COPY_REG_WHOLE_ALLOC=off")
582587
{
583588
constexpr size_t size = 4 * UCS_MBYTE;
584589
cuda_host_vmm_mem_buffer buffer(size, UCS_MEMORY_TYPE_CUDA);

0 commit comments

Comments
 (0)