Skip to content

Fixed building of monte_carlo_european_opt on Windows #1491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions Libraries/oneMKL/monte_carlo_european_opt/makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
all: montecarlo

generator ?= mcg59
!if "$(generator)" == "mrg"
GENERATOR=/DUSE_MRG
!endif

ifeq ($(generator), mrg)
GENERATOR = /DUSE_MRG
endif
!if "$(generator)" == "philox"
GENERATOR=/DUSE_PHILOX
!endif

ifeq ($(generator), philox)
GENERATOR = /DUSE_PHILOX
endif

ifneq ($(generator), $(filter $(generator),mrg philox mcg59))
$(error "You use unknown generator. Please, use mrg philox or mcg59 (default)")
endif

DPCPP_OPTS=/I$(MKLROOT)\include /DMKL_ILP64 $(GENERATOR) -fsycl -fsycl-device-code-split=per_kernel -qmkl
DPCPP_OPTS=/I"$(MKLROOT)\include" /DMKL_ILP64 $(GENERATOR) -fsycl -fsycl-device-code-split=per_kernel -qmkl

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

clean:
del /q montecarlo.exe

pseudo: clean all
pseudo: clean all