Skip to content

Commit a96cf11

Browse files
Merge pull request #402 from IntelPython/example-usm-memory
Small changes to examples/cython/usm_memory for BS model
2 parents ee1d590 + b6d35c1 commit a96cf11

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)