Skip to content

Commit 16a925e

Browse files
Replaced deprecated cl::sycl namespace with sycl
1 parent f48cf30 commit 16a925e

31 files changed

+62
-65
lines changed

examples/cython/sycl_direct_linkage/sycl_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <CL/sycl.hpp>
3232
#include <oneapi/mkl.hpp>
3333

34-
int c_columnwise_total(cl::sycl::queue &q,
34+
int c_columnwise_total(sycl::queue &q,
3535
size_t n,
3636
size_t m,
3737
double *mat,

examples/cython/usm_memory/sycl_blackscholes.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,32 +89,32 @@ cpp_blackscholes(DPCTLSyclQueueRef q_ptr, size_t n_opts, T *params, T *callput)
8989
data_t mr = -opt_rate,
9090
sig_sig_two = two * opt_volatility * opt_volatility;
9191

92-
a = cl::sycl::log(opt_price / opt_strike);
92+
a = sycl::log(opt_price / opt_strike);
9393
b = opt_maturity * mr;
9494
z = opt_maturity * sig_sig_two;
9595

9696
c = quarter * z;
97-
e = cl::sycl::exp(b);
98-
y = cl::sycl::rsqrt(z);
97+
e = sycl::exp(b);
98+
y = sycl::rsqrt(z);
9999

100100
a = b - a;
101101
w1 = (a - c) * y;
102102
w2 = (a + c) * y;
103103

104104
if (w1 < zero) {
105-
d1 = cl::sycl::erfc(w1) * half;
105+
d1 = sycl::erfc(w1) * half;
106106
d1c = one - d1;
107107
}
108108
else {
109-
d1c = cl::sycl::erfc(-w1) * half;
109+
d1c = sycl::erfc(-w1) * half;
110110
d1 = one - d1c;
111111
}
112112
if (w2 < zero) {
113-
d2 = cl::sycl::erfc(w2) * half;
113+
d2 = sycl::erfc(w2) * half;
114114
d2c = one - d2;
115115
}
116116
else {
117-
d2c = cl::sycl::erfc(-w2) * half;
117+
d2c = sycl::erfc(-w2) * half;
118118
d2 = one - d2c;
119119
}
120120

libsyclinterface/helper/source/dpctl_error_handlers.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
#include <glog/logging.h>
3232
#endif
3333

34-
void DPCTL_AsyncErrorHandler::operator()(
35-
const cl::sycl::exception_list &exceptions)
34+
void DPCTL_AsyncErrorHandler::operator()(const sycl::exception_list &exceptions)
3635
{
3736
for (std::exception_ptr const &e : exceptions) {
3837
try {

libsyclinterface/helper/source/dpctl_utils_helper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <sstream>
2828
#include <string>
2929

30-
using namespace cl::sycl;
30+
using namespace sycl;
3131

3232
/*!
3333
* Transforms enum info::device_type to string.
@@ -164,7 +164,7 @@ DPCTLSyclDeviceType DPCTL_SyclDeviceTypeToDPCTLDeviceType(info::device_type D)
164164
}
165165

166166
/*!
167-
* Transforms cl::sycl::aspect to string.
167+
* Transforms sycl::aspect to string.
168168
*/
169169
std::string DPCTL_AspectToStr(aspect aspectTy)
170170
{
@@ -237,7 +237,7 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
237237
}
238238

239239
/*!
240-
* Transforms string to cl::sycl::aspect.
240+
* Transforms string to sycl::aspect.
241241
*/
242242
aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
243243
{

libsyclinterface/source/dpctl_sycl_context_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <CL/sycl.hpp>
3131
#include <vector>
3232

33-
using namespace cl::sycl;
33+
using namespace sycl;
3434

3535
namespace
3636
{

libsyclinterface/source/dpctl_sycl_device_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <cstring>
3636
#include <vector>
3737

38-
using namespace cl::sycl;
38+
using namespace sycl;
3939

4040
namespace
4141
{

libsyclinterface/source/dpctl_sycl_device_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <unordered_map>
3636
#include <vector>
3737

38-
using namespace cl::sycl;
38+
using namespace sycl;
3939

4040
namespace
4141
{

libsyclinterface/source/dpctl_sycl_device_selector_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "dpctl_error_handlers.h"
2929
#include <CL/sycl.hpp> /* SYCL headers */
3030

31-
using namespace cl::sycl;
31+
using namespace sycl;
3232

3333
namespace
3434
{

libsyclinterface/source/dpctl_sycl_event_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <CL/sycl.hpp> /* SYCL headers */
3232
#include <vector>
3333

34-
using namespace cl::sycl;
34+
using namespace sycl;
3535

3636
namespace
3737
{

libsyclinterface/source/dpctl_sycl_kernel_bundle_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// clang-format on
5353
#endif
5454

55-
using namespace cl::sycl;
55+
using namespace sycl;
5656

5757
namespace
5858
{

0 commit comments

Comments
 (0)