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 number Diff line number Diff line change 1
1
all : montecarlo
2
2
3
- generator ?= mcg59
3
+ !if "$(generator)" == "mrg"
4
+ GENERATOR=/DUSE_MRG
5
+ !endif
4
6
5
- ifeq ( $(generator ) , mrg)
6
- GENERATOR = /DUSE_MRG
7
- endif
7
+ !if " $(generator)" == "philox"
8
+ GENERATOR=/DUSE_PHILOX
9
+ ! endif
8
10
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
18
12
19
13
montecarlo : src/montecarlo_main.cpp
20
14
icpx src/montecarlo_main.cpp /omontecarlo.exe $(DPCPP_OPTS )
21
15
22
16
clean :
23
17
del /q montecarlo.exe
24
18
25
- pseudo : clean all
19
+ pseudo : clean all
You can’t perform that action at this time.
0 commit comments