Skip to content

Commit ed13b2e

Browse files
Removed deprecated symbols, set library_dirs for setuptools builds
1 parent cfbc03e commit ed13b2e

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

examples/cython/sycl_buffer/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@
4848
dpctl.get_include(),
4949
os.path.join(sysconfig.get_paths()["include"], ".."),
5050
],
51+
library_dirs=[
52+
os.path.join(sysconfig.get_paths()["stdlib"], ".."),
53+
],
5154
libraries=["sycl"]
5255
+ [
5356
"mkl_sycl",
5457
"mkl_intel_ilp64",
5558
"mkl_tbb_thread",
5659
"mkl_core",
5760
"tbb",
58-
"iomp5",
5961
],
6062
runtime_library_dirs=[],
6163
extra_compile_args=[

examples/cython/sycl_buffer/use_sycl_buffer.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ int c_columnwise_total_no_mkl(DPCTLSyclQueueRef q_ref,
125125
it.get_group(), (i < n) ? mat_acc[it.get_global_id()] : 0.0,
126126
std::plus<double>());
127127
if (it.get_local_id(0) == 0) {
128-
sycl::ext::oneapi::atomic_ref<
129-
double, sycl::memory_order::relaxed,
130-
sycl::memory_scope::system,
131-
sycl::access::address_space::global_space>(ct_acc[j]) +=
132-
group_sum;
128+
sycl::atomic_ref<double, sycl::memory_order::relaxed,
129+
sycl::memory_scope::system,
130+
sycl::access::address_space::global_space>(
131+
ct_acc[j]) += group_sum;
133132
}
134133
});
135134
});

examples/cython/sycl_direct_linkage/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@
5252
dpctl.get_include(),
5353
os.path.join(sysconfig.get_paths()["include"], ".."),
5454
],
55+
library_dirs=[
56+
os.path.join(sysconfig.get_paths()["stdlib"], ".."),
57+
],
5558
libraries=["sycl"]
5659
+ [
5760
"mkl_sycl",
5861
"mkl_intel_ilp64",
5962
"mkl_tbb_thread",
6063
"mkl_core",
6164
"tbb",
62-
"iomp5",
6365
],
6466
runtime_library_dirs=[],
6567
extra_compile_args=[

examples/cython/usm_memory/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@
4747
dpctl.get_include(),
4848
os.path.join(sysconfig.get_paths()["include"], ".."),
4949
],
50+
library_dirs=[
51+
os.path.join(sysconfig.get_paths()["stdlib"], ".."),
52+
],
5053
libraries=["sycl"]
5154
+ [
5255
"mkl_sycl",
5356
"mkl_intel_ilp64",
5457
"mkl_tbb_thread",
5558
"mkl_core",
5659
"tbb",
57-
"iomp5",
5860
],
5961
runtime_library_dirs=[],
6062
extra_compile_args=[

0 commit comments

Comments
 (0)