Files
Vito Gamberini f69754ad63 SYCL: Initial language implementation
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
2026-10-07 11:43:31 -04:00

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;
}