Skip to content

Commit 3d310c0

Browse files
andreyfe1jimmytwei
andauthored
Fixed building of monte_carlo_european_opt on Windows (#1491)
* fix issue on windows with nmake Signed-off-by: Fedorov, Andrey <[email protected]> * Update makefile --------- Signed-off-by: Fedorov, Andrey <[email protected]> Co-authored-by: Jimmy Wei <[email protected]>
1 parent fef947c commit 3d310c0

File tree

1 file changed

+8
-14
lines changed
  • Libraries/oneMKL/monte_carlo_european_opt

1 file changed

+8
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
all: montecarlo
22

3-
generator ?= mcg59
3+
!if "$(generator)" == "mrg"
4+
GENERATOR=/DUSE_MRG
5+
!endif
46

5-
ifeq ($(generator), mrg)
6-
GENERATOR = /DUSE_MRG
7-
endif
7+
!if "$(generator)" == "philox"
8+
GENERATOR=/DUSE_PHILOX
9+
!endif
810

9-
ifeq ($(generator), philox)
10-
GENERATOR = /DUSE_PHILOX
11-
endif
12-
13-
ifneq ($(generator), $(filter $(generator),mrg philox mcg59))
14-
$(error "You use unknown generator. Please, use mrg philox or mcg59 (default)")
15-
endif
16-
17-
DPCPP_OPTS=/I$(MKLROOT)\include /DMKL_ILP64 $(GENERATOR) -fsycl -fsycl-device-code-split=per_kernel -qmkl
11+
DPCPP_OPTS=/I"$(MKLROOT)\include" /DMKL_ILP64 $(GENERATOR) -fsycl -fsycl-device-code-split=per_kernel -qmkl
1812

1913
montecarlo: src/montecarlo_main.cpp
2014
icpx src/montecarlo_main.cpp /omontecarlo.exe $(DPCPP_OPTS)
2115

2216
clean:
2317
del /q montecarlo.exe
2418

25-
pseudo: clean all
19+
pseudo: clean all

0 commit comments

Comments
 (0)