File: make.check-mkl

package info (click to toggle)
magma 2.9.0%2Bds-2
  • links: PTS, VCS
  • area: contrib
  • in suites: trixie
  • size: 83,212 kB
  • sloc: cpp: 709,115; fortran: 121,916; ansic: 32,343; python: 25,603; f90: 15,208; makefile: 942; xml: 253; csh: 232; sh: 203; perl: 104
file content (14 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (6)
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