File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ device_impl::~device_impl() {
80
80
// TODO catch an exception and put it to list of asynchronous exceptions
81
81
const PluginPtr &Plugin = getPlugin ();
82
82
ur_result_t Err = Plugin->call_nocheck (urDeviceRelease, MDevice);
83
- __SYCL_CHECK_OCL_CODE_NO_EXC (Err);
83
+ __SYCL_CHECK_UR_CODE_NO_EXC (Err);
84
84
} catch (std::exception &e) {
85
85
__SYCL_REPORT_EXCEPTION_TO_STREAM (" exception in ~device_impl" , e);
86
86
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class KernelProgramCache {
103
103
try {
104
104
if (Val) {
105
105
ur_result_t Err = Plugin->call_nocheck (urProgramRelease, Val);
106
- __SYCL_CHECK_OCL_CODE_NO_EXC (Err);
106
+ __SYCL_CHECK_UR_CODE_NO_EXC (Err);
107
107
}
108
108
} catch (std::exception &e) {
109
109
__SYCL_REPORT_EXCEPTION_TO_STREAM (" exception in ~ProgramBuildResult" ,
@@ -141,7 +141,7 @@ class KernelProgramCache {
141
141
try {
142
142
if (Val.first ) {
143
143
ur_result_t Err = Plugin->call_nocheck (urKernelRelease, Val.first );
144
- __SYCL_CHECK_OCL_CODE_NO_EXC (Err);
144
+ __SYCL_CHECK_UR_CODE_NO_EXC (Err);
145
145
}
146
146
} catch (std::exception &e) {
147
147
__SYCL_REPORT_EXCEPTION_TO_STREAM (" exception in ~KernelBuildResult" , e);
Original file line number Diff line number Diff line change 1
- // ==------------------------- plugin.hpp - SYCL platform -------------------==//
1
+ // ==- plugin.hpp ---------------------------------------- -------------------==//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#pragma once
10
+
10
11
#include < detail/config.hpp>
11
- #include < memory>
12
- #include < mutex>
13
12
#include < sycl/backend_types.hpp>
14
13
#include < sycl/detail/common.hpp>
14
+ #include < sycl/detail/iostream_proxy.hpp>
15
15
#include < sycl/detail/type_traits.hpp>
16
16
#include < sycl/detail/ur.hpp>
17
-
18
17
#include < ur_api.h>
19
-
20
18
#ifdef XPTI_ENABLE_INSTRUMENTATION
21
19
// Include the headers necessary for emitting traces using the trace framework
22
20
#include " xpti/xpti_trace_framework.h"
23
21
#endif
24
22
25
- #include < sycl/detail/iostream_proxy.hpp>
23
+ #include < memory>
24
+ #include < mutex>
26
25
27
- #define __SYCL_REPORT_UR_ERR_TO_STREAM (expr ) \
26
+ #define __SYCL_CHECK_UR_CODE_NO_EXC (expr ) \
28
27
{ \
29
28
auto code = expr; \
30
29
if (code != UR_RESULT_SUCCESS) { \
33
32
} \
34
33
}
35
34
36
- #define __SYCL_CHECK_OCL_CODE_NO_EXC (X ) __SYCL_REPORT_UR_ERR_TO_STREAM(X)
37
-
38
35
namespace sycl {
39
36
inline namespace _V1 {
40
37
namespace detail {
Original file line number Diff line number Diff line change @@ -105,8 +105,7 @@ std::vector<PluginPtr> &initializeUr(ur_loader_config_handle_t LoaderConfig) {
105
105
106
106
static void initializePlugins (std::vector<PluginPtr> &Plugins,
107
107
ur_loader_config_handle_t LoaderConfig) {
108
- #define CHECK_UR_SUCCESS (Call ) \
109
- __SYCL_CHECK_OCL_CODE_NO_EXC (Call)
108
+ #define CHECK_UR_SUCCESS (Call ) __SYCL_CHECK_UR_CODE_NO_EXC(Call)
110
109
111
110
bool OwnLoaderConfig = false ;
112
111
// If we weren't provided with a custom config handle create our own.
You can’t perform that action at this time.
0 commit comments