Skip to content

Commit a146ad7

Browse files
authored
Merge pull request #2695 from iMartyan/dev/imartyan/onemkl_enable_exceptions_rng
Enable exceptions on Windows for oneMKL RNG samples
2 parents 5c4f239 + 677cd09 commit a146ad7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Libraries/oneMKL/binomial/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ all: binomial_sycl.exe
44
INIT_ON_HOST=/DINIT_ON_HOST=1
55
!endif
66

7-
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
7+
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) -fsycl /EHsc /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
88

99
binomial_sycl.exe: src\binomial_sycl.cpp src\binomial_main.cpp src\binomial.hpp
10-
icx $(DPCPP_OPTS) /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe
10+
icx $(DPCPP_OPTS) src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe
1111

1212
clean:
1313
del /q binomial_sycl.exe

Libraries/oneMKL/black_scholes/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: black_scholes_sycl.exe
44
INIT_ON_HOST=/DINIT_ON_HOST=1
55
!endif
66

7-
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
7+
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) -fsycl /EHsc /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
88

99
black_scholes_sycl.exe: src\black_scholes_sycl.cpp
1010
icx $(DPCPP_OPTS) src\black_scholes_sycl.cpp /oblack_scholes_sycl.exe

0 commit comments

Comments
 (0)