blob: aa258c6e58a6b387578b7386b046e86e2751a378 [file] [edit]
#pragma once
#include <sycl/sycl.hpp>
// Upstream libsycl supports the attribute without defining SYCL_EXTERNAL.
#ifndef SYCL_EXTERNAL
# if __has_cpp_attribute(clang::sycl_external)
# define SYCL_EXTERNAL [[clang::sycl_external]]
# else
# error "The SYCL implementation does not support external device functions"
# endif
#endif
SYCL_EXTERNAL int device_value(int value);
SYCL_EXTERNAL int device_offset();
int launch_kernel();