Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
refs/heads/release
/
.
/
Tests
/
SyclOnly
/
utils
/
TestDevice.h
blob: 6646c04dfaa388b1b779bb5d62d6253d61b5fabd [
file
] [
edit
]
#pragma
once
#include
<iostream>
#include
<sycl/sycl.hpp>
inline
bool
sycl_test_device_available
()
{
if
(
sycl
::
device
::
get_devices
().
empty
())
{
std
::
cout
<<
"No SYCL device available\n"
;
return
false
;
}
return
true
;
}