From 56c707016f71e8ecbde853951e4d8512ca8401c9 Mon Sep 17 00:00:00 2001 From: "Martyanov, Ivan" Date: Thu, 2 Oct 2025 04:27:20 -0700 Subject: [PATCH 1/2] Enable exceptions on Windows for oneMKL RNG samples --- Libraries/oneMKL/binomial/makefile | 4 ++-- Libraries/oneMKL/black_scholes/makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/oneMKL/binomial/makefile b/Libraries/oneMKL/binomial/makefile index 007459efc5..75164c463a 100644 --- a/Libraries/oneMKL/binomial/makefile +++ b/Libraries/oneMKL/binomial/makefile @@ -4,10 +4,10 @@ all: binomial_sycl.exe INIT_ON_HOST=/DINIT_ON_HOST=1 !endif -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 +DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) /EHsc -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib binomial_sycl.exe: src\binomial_sycl.cpp src\binomial_main.cpp src\binomial.hpp - 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 + icx $(DPCPP_OPTS) src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe clean: del /q binomial_sycl.exe diff --git a/Libraries/oneMKL/black_scholes/makefile b/Libraries/oneMKL/black_scholes/makefile index 271caca621..69a768c093 100644 --- a/Libraries/oneMKL/black_scholes/makefile +++ b/Libraries/oneMKL/black_scholes/makefile @@ -4,7 +4,7 @@ all: black_scholes_sycl.exe INIT_ON_HOST=/DINIT_ON_HOST=1 !endif -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 +DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) /EHsc -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib black_scholes_sycl.exe: src\black_scholes_sycl.cpp icx $(DPCPP_OPTS) src\black_scholes_sycl.cpp /oblack_scholes_sycl.exe From 677cd0900887fb5a38e0d56d05abe61ba060a3c2 Mon Sep 17 00:00:00 2001 From: "Martyanov, Ivan" Date: Mon, 6 Oct 2025 06:16:29 -0700 Subject: [PATCH 2/2] Flag ordering --- Libraries/oneMKL/binomial/makefile | 2 +- Libraries/oneMKL/black_scholes/makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/oneMKL/binomial/makefile b/Libraries/oneMKL/binomial/makefile index 75164c463a..bd551c8cc2 100644 --- a/Libraries/oneMKL/binomial/makefile +++ b/Libraries/oneMKL/binomial/makefile @@ -4,7 +4,7 @@ all: binomial_sycl.exe INIT_ON_HOST=/DINIT_ON_HOST=1 !endif -DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) /EHsc -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib +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 binomial_sycl.exe: src\binomial_sycl.cpp src\binomial_main.cpp src\binomial.hpp icx $(DPCPP_OPTS) src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe diff --git a/Libraries/oneMKL/black_scholes/makefile b/Libraries/oneMKL/black_scholes/makefile index 69a768c093..95d3070a17 100644 --- a/Libraries/oneMKL/black_scholes/makefile +++ b/Libraries/oneMKL/black_scholes/makefile @@ -4,7 +4,7 @@ all: black_scholes_sycl.exe INIT_ON_HOST=/DINIT_ON_HOST=1 !endif -DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) /EHsc -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib +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 black_scholes_sycl.exe: src\black_scholes_sycl.cpp icx $(DPCPP_OPTS) src\black_scholes_sycl.cpp /oblack_scholes_sycl.exe