Sign in
◑
Theme
chromium
/
external
/
github.com
/
Kitware
/
CMake
/
master
/
.
/
Tests
/
Sycl
/
Complex
/
TestDevice.h
blob: 6646c04dfaa388b1b779bb5d62d6253d61b5fabd [
file
]
#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
;
}