diff --git a/test/adapters/cuda/context_tests.cpp b/test/adapters/cuda/context_tests.cpp index f807c865b8..edd6e8f5d9 100644 --- a/test/adapters/cuda/context_tests.cpp +++ b/test/adapters/cuda/context_tests.cpp @@ -44,6 +44,10 @@ TEST_P(cudaUrContextCreateTest, CreateWithChildThread) { } TEST_P(cudaUrContextCreateTest, ActiveContext) { + ur_platform_handle_t devicePlatform; + ASSERT_SUCCESS(urDeviceGetInfo(device, UR_DEVICE_INFO_PLATFORM, + sizeof(ur_platform_handle_t), &devicePlatform, + nullptr)); uur::raii::Context context = nullptr; printf("creating ur context with device %p\n", reinterpret_cast(device));