forked from KhronosGroup/SYCL-CTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsycl_enums.h
34 lines (29 loc) · 1.21 KB
/
sycl_enums.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Enum stringification for the SYCL CTS
//
*******************************************************************************/
#ifndef __SYCLCTS_UTIL_SYCL_ENUMS_H
#define __SYCLCTS_UTIL_SYCL_ENUMS_H
#include <catch2/catch_tostring.hpp>
#include <sycl/sycl.hpp>
// TODO: Remove when all implementations support the sycl::errc enum
#if SYCL_CTS_COMPILING_WITH_HIPSYCL
#define SYCL_CTS_SUPPORT_HAS_ERRC_ENUM 0
#else
#define SYCL_CTS_SUPPORT_HAS_ERRC_ENUM 1
#endif
#if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
CATCH_REGISTER_ENUM(sycl::errc, sycl::errc::success, sycl::errc::runtime,
sycl::errc::kernel, sycl::errc::accessor,
sycl::errc::nd_range, sycl::errc::event,
sycl::errc::kernel_argument, sycl::errc::build,
sycl::errc::invalid, sycl::errc::memory_allocation,
sycl::errc::platform, sycl::errc::profiling,
sycl::errc::feature_not_supported,
sycl::errc::kernel_not_supported,
sycl::errc::backend_mismatch);
#endif
#endif // __SYCLCTS_UTIL_SYCL_ENUMS_H