Skip to content

Commit

Permalink
[SYCL][CUDA] Using name to check for CUDA platform
Browse files Browse the repository at this point in the history
Fixes previous incorrect usage of version

Signed-off-by: Ruyman Reyes <[email protected]>
  • Loading branch information
Ruyk committed Apr 24, 2020
1 parent 5f611cb commit 09b9859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/source/detail/platform_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class platform_impl {
bool is_cuda() const {
const string_class CUDA_PLATFORM_STRING = "NVIDIA CUDA BACKEND";
const string_class PlatformName =
get_platform_info<string_class, info::platform::version>::get(
MPlatform, getPlugin());
get_platform_info<string_class, info::platform::name>::get(MPlatform,
getPlugin());
return PlatformName == CUDA_PLATFORM_STRING;
}

Expand Down

0 comments on commit 09b9859

Please sign in to comment.