Skip to content

Commit 8e2262a

Browse files
Small source code change, and expanded README
...to work around a bug in compiler/MKL-device-RNG interaction
1 parent 5f66623 commit 8e2262a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/cython/usm_memory/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Make sure oneAPI is activated. Environment variable `$ONEAPI_ROOT` must be set.
88

99

1010
```
11-
$ CC=clang CXX=dpcpp LD_SHARED="dpcpp -shared" python setup.py build_ext --inplace
11+
$ CC=clang CXX=dpcpp LD_SHARED="dpcpp -shared" \
12+
CXXFLAGS=-fno-sycl-early-optimizations python setup.py build_ext --inplace
1213
```
1314

1415
#2 Running

examples/cython/usm_memory/blackscholes.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def populate_params(floating[:, ::1] option_params, pl, ph, sl, sh, tl, th, rl,
8787

8888
cdef c_dpctl.SyclQueue q
8989
cdef c_dpctl.DPCTLSyclQueueRef q_ptr
90-
cdef double* dp
91-
cdef float* fp
90+
cdef double* dp = NULL
91+
cdef float* fp = NULL
9292

9393
if (n_params != 5):
9494
raise ValueError((

0 commit comments

Comments
 (0)