mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
Add experimental support for SYCL under an experimental gate. The IntelLLVM and Adaptivecpp compilers are recognized, as well as upstream Clang with libsycl support. Fixes: #27219, #27905
15 lines
235 B
C++
15 lines
235 B
C++
#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;
|
|
}
|