Skip to content

Commit 09b9859

Browse files
committed
[SYCL][CUDA] Using name to check for CUDA platform
Fixes previous incorrect usage of version Signed-off-by: Ruyman Reyes <[email protected]>
1 parent 5f611cb commit 09b9859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/platform_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class platform_impl {
7676
bool is_cuda() const {
7777
const string_class CUDA_PLATFORM_STRING = "NVIDIA CUDA BACKEND";
7878
const string_class PlatformName =
79-
get_platform_info<string_class, info::platform::version>::get(
80-
MPlatform, getPlugin());
79+
get_platform_info<string_class, info::platform::name>::get(MPlatform,
80+
getPlugin());
8181
return PlatformName == CUDA_PLATFORM_STRING;
8282
}
8383

0 commit comments

Comments
 (0)