diff --git a/cudax/test/memory_resource/shared_resource.cu b/cudax/test/memory_resource/shared_resource.cu index b284c52087..74d8376f55 100644 --- a/cudax/test/memory_resource/shared_resource.cu +++ b/cudax/test/memory_resource/shared_resource.cu @@ -137,7 +137,7 @@ TEMPLATE_TEST_CASE_METHOD(test_fixture, "shared_resource", "[container][resource { // accounting for new storage bytes(1337 * sizeof(int)); - cudax::uninitialized_buffer other_buffer{buffer.resource(), 1337}; + cudax::uninitialized_buffer other_buffer{buffer.get_resource(), 1337}; ++expected.allocate_count; CHECK(this->counts == expected); }