File tree 3 files changed +0
-26
lines changed
3 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ namespace sycl {
59
59
inline namespace _V1 {
60
60
61
61
namespace detail {
62
- // TODO each backend can have its own custom errc enumeration
63
- // but the details for this are not fully specified yet
64
- enum class backend_errc : unsigned int {};
65
-
66
62
// Convert from PI backend to SYCL backend enum
67
63
backend convertBackend (pi_platform_backend PiBackend);
68
64
} // namespace detail
@@ -74,8 +70,6 @@ template <backend Backend> class backend_traits {
74
70
75
71
template <class T >
76
72
using return_type = typename detail::BackendReturn<Backend, T>::type;
77
-
78
- using errc = detail::backend_errc;
79
73
};
80
74
81
75
template <backend Backend, typename SyclType>
Original file line number Diff line number Diff line change 10
10
11
11
// 4.9.2 Exception Class Interface
12
12
13
- #include < sycl/backend_types.hpp> // for backend
14
13
#include < sycl/detail/cl.h> // for cl_int
15
14
#include < sycl/detail/common.hpp> // for codeToString
16
15
#include < sycl/detail/defines_elementary.hpp> // for __SYCL2020_DEPRECATED
@@ -50,8 +49,6 @@ enum class errc : unsigned int {
50
49
backend_mismatch = 14 ,
51
50
};
52
51
53
- template <backend B> using errc_for = typename backend_traits<B>::errc;
54
-
55
52
// / Constructs an error code using e and sycl_category()
56
53
__SYCL_EXPORT std::error_code make_error_code (sycl::errc E) noexcept ;
57
54
Original file line number Diff line number Diff line change @@ -80,23 +80,6 @@ int main() {
80
80
static_assert (!std::is_error_condition_enum<sycl::errc>::value,
81
81
" errc enum should not identify as error condition" );
82
82
83
- // Test errc_for and backends. Should compile without complaint.
84
- constexpr int EC = 1 ;
85
- sycl::backend_traits<sycl::backend::opencl>::errc someOpenCLErrCode{EC};
86
- sycl::errc_for<sycl::backend::opencl> anotherOpenCLErrCode{EC};
87
- assert (someOpenCLErrCode == anotherOpenCLErrCode);
88
- sycl::backend_traits<sycl::backend::ext_oneapi_level_zero>::errc
89
- someL0ErrCode{EC};
90
- sycl::errc_for<sycl::backend::ext_oneapi_level_zero> anotherL0ErrCode{EC};
91
- assert (someL0ErrCode == anotherL0ErrCode);
92
- sycl::backend_traits<sycl::backend::ext_oneapi_cuda>::errc someCUDAErrCode{
93
- EC};
94
- sycl::errc_for<sycl::backend::ext_oneapi_cuda> anotherCUDAErrCode{EC};
95
- assert (someCUDAErrCode == anotherCUDAErrCode);
96
- sycl::backend_traits<sycl::backend::ext_oneapi_hip>::errc someHIPErrCode{EC};
97
- sycl::errc_for<sycl::backend::ext_oneapi_hip> anotherHIPErrCode{EC};
98
- assert (someHIPErrCode == anotherHIPErrCode);
99
-
100
83
std::cout << " OK" << std::endl;
101
84
return 0 ;
102
85
}
You can’t perform that action at this time.
0 commit comments