Skip to content

Commit cfbc03e

Browse files
Removed use of deprecated methods
1 parent 9796efd commit cfbc03e

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

examples/cython/sycl_buffer/use_sycl_buffer.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ int c_columnwise_total(DPCTLSyclQueueRef q_ref,
6060
ev.wait_and_throw();
6161
} catch (sycl::exception const &e) {
6262
std::cout << "\t\tCaught synchronous SYCL exception during fill:\n"
63-
<< e.what() << std::endl
64-
<< "OpenCL status: " << e.get_cl_code() << std::endl;
63+
<< e.what() << std::endl;
6564
goto cleanup;
6665
}
6766

@@ -72,8 +71,7 @@ int c_columnwise_total(DPCTLSyclQueueRef q_ref,
7271
q.wait();
7372
} catch (sycl::exception const &e) {
7473
std::cout << "\t\tCaught synchronous SYCL exception during GEMV:\n"
75-
<< e.what() << std::endl
76-
<< "OpenCL status: " << e.get_cl_code() << std::endl;
74+
<< e.what() << std::endl;
7775
goto cleanup;
7876
}
7977
}
@@ -128,8 +126,8 @@ int c_columnwise_total_no_mkl(DPCTLSyclQueueRef q_ref,
128126
std::plus<double>());
129127
if (it.get_local_id(0) == 0) {
130128
sycl::ext::oneapi::atomic_ref<
131-
double, sycl::ext::oneapi::memory_order::relaxed,
132-
sycl::ext::oneapi::memory_scope::system,
129+
double, sycl::memory_order::relaxed,
130+
sycl::memory_scope::system,
133131
sycl::access::address_space::global_space>(ct_acc[j]) +=
134132
group_sum;
135133
}

examples/cython/sycl_direct_linkage/sycl_function.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ int c_columnwise_total(cl::sycl::queue &q,
5656
ev.wait_and_throw();
5757
} catch (sycl::exception const &e) {
5858
std::cout << "\t\tCaught synchronous SYCL exception during fill:\n"
59-
<< e.what() << std::endl
60-
<< "OpenCL status: " << e.get_cl_code() << std::endl;
59+
<< e.what() << std::endl;
6160
goto cleanup;
6261
}
6362

@@ -68,8 +67,7 @@ int c_columnwise_total(cl::sycl::queue &q,
6867
q.wait();
6968
} catch (sycl::exception const &e) {
7069
std::cout << "\t\tCaught synchronous SYCL exception during GEMV:\n"
71-
<< e.what() << std::endl
72-
<< "OpenCL status: " << e.get_cl_code() << std::endl;
70+
<< e.what() << std::endl;
7371
goto cleanup;
7472
}
7573
}

0 commit comments

Comments
 (0)