forked from icl-utk-edu/magma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.check-mkl
More file actions
14 lines (13 loc) · 717 Bytes
/
make.check-mkl
File metadata and controls
14 lines (13 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# check for MKL directory and give user hint how to set it
ifeq ($(MKLROOT),)
vars_sh := $(shell which icc 2>/dev/null | perl -pe 's|/bin.*/icc|/bin/compilervars.sh|')
vars_csh := $(shell which icc 2>/dev/null | perl -pe 's|/bin.*/icc|/bin/compilervars.csh|')
ifeq ($(vars_sh),)
vars_sh := /opt/intel/composerxe/bin/compilervars.sh
vars_csh := /opt/intel/composerxe/bin/compilervars.csh
endif
$(error Set $$MKLROOT, preferably in your environment, e.g., run "source $(vars_sh) intel64" in ~/.bashrc, or "source $(vars_csh) intel64" in ~/.cshrc)
endif
ifeq ($(wildcard $(MKLROOT)),)
$(error $$MKLROOT=$(MKLROOT) does not exist. Please set $$MKLROOT to where MKL is installed.)
endif