mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
* Updated the NSIS installer configuration file to include the Math Kernel Libraries (MKL) for NGSolve
* Modified the version number in the .dat file from 4.9.13-RC to 4.9.13
This commit is contained in:
parent
76c7f1abc0
commit
049bcb4bef
@ -11,12 +11,13 @@
|
|||||||
# History
|
# History
|
||||||
# -------
|
# -------
|
||||||
# 4.9.13-RC : 17-18/04/2010
|
# 4.9.13-RC : 17-18/04/2010
|
||||||
|
# 4.9.13 : 21/05/2010
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
# Version of Netgen to be packaged by the installer
|
# Version of Netgen to be packaged by the installer
|
||||||
VERSION=4.9.13-RC
|
VERSION=4.9.13
|
||||||
|
|
||||||
# Root location of the Netgen Sources and binaries
|
# Root location of the Netgen Sources and binaries
|
||||||
# for the various flavours
|
# for the various flavours
|
||||||
|
@ -49,6 +49,7 @@ Var foundTogl
|
|||||||
Var foundPThds
|
Var foundPThds
|
||||||
Var foundOCC
|
Var foundOCC
|
||||||
Var foundLapackBlas
|
Var foundLapackBlas
|
||||||
|
Var foundMKLLibs
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
Var NetgenUserDir
|
Var NetgenUserDir
|
||||||
; ---------------------------------------
|
; ---------------------------------------
|
||||||
@ -117,6 +118,15 @@ Var NetgenUserDir
|
|||||||
!error "Error: Netgen Architecture not specified.....Aborting!"
|
!error "Error: Netgen Architecture not specified.....Aborting!"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
; Part to be added to the "Intel Math Kernel Libraries" DLL for 32-bit or 64-bit architecture
|
||||||
|
!if ${NETGEN_ARCH} == ${WIN32_ARCH}
|
||||||
|
!define MKL_ARCH_DIR "-w32"
|
||||||
|
!else if ${NETGEN_ARCH} == ${X64_ARCH}
|
||||||
|
!define MKL_ARCH_DIR "-w64"
|
||||||
|
!else
|
||||||
|
!error "Error: Netgen Architecture not specified.....Aborting!"
|
||||||
|
!endif
|
||||||
|
|
||||||
; Location of the OCC libraries for different architectures
|
; Location of the OCC libraries for different architectures
|
||||||
!if ${NETGEN_ARCH} == ${WIN32_ARCH}
|
!if ${NETGEN_ARCH} == ${WIN32_ARCH}
|
||||||
!define OCC_ARCH "win32"
|
!define OCC_ARCH "win32"
|
||||||
@ -177,7 +187,8 @@ Var NetgenUserDir
|
|||||||
|
|
||||||
!define NGSOLVE_SRC "${NGSOLVE_ROOT}\ngsolve"
|
!define NGSOLVE_SRC "${NGSOLVE_ROOT}\ngsolve"
|
||||||
!define NGSOLVE_BIN "${NGSOLVE_ROOT}\ngsolve-inst_${NETGEN_ARCH}"
|
!define NGSOLVE_BIN "${NGSOLVE_ROOT}\ngsolve-inst_${NETGEN_ARCH}"
|
||||||
!define NGSOLVE_EXTLIBS "${NGSOLVE_ROOT}\ext_libs\lapack-blas"
|
!define NGSOLVE_LAPACKLIBS "${NGSOLVE_ROOT}\ext_libs\lapack-blas"
|
||||||
|
!define NGSOLVE_MKLLIBS "${NGSOLVE_ROOT}\ext_libs\mkl${MKL_ARCH_DIR}"
|
||||||
|
|
||||||
!define EXTLIBS_OCC "${OCC_ROOT}\ros\${OCC_ARCH}\bin"
|
!define EXTLIBS_OCC "${OCC_ROOT}\ros\${OCC_ARCH}\bin"
|
||||||
|
|
||||||
@ -546,6 +557,7 @@ SectionGroup "Add-On Applications"
|
|||||||
; Check if required libraries are present
|
; Check if required libraries are present
|
||||||
; if not, mark them to be installed too
|
; if not, mark them to be installed too
|
||||||
Call checkLapackBlas
|
Call checkLapackBlas
|
||||||
|
Call checkMKLLibs
|
||||||
|
|
||||||
; Copy the DLL and Tcl files to the
|
; Copy the DLL and Tcl files to the
|
||||||
; Netgen bin folder
|
; Netgen bin folder
|
||||||
@ -556,10 +568,15 @@ SectionGroup "Add-On Applications"
|
|||||||
${If} ${NETGEN_ARCH} != ${X64_ARCH}
|
${If} ${NETGEN_ARCH} != ${X64_ARCH}
|
||||||
${If} $foundLapackBlas != "1"
|
${If} $foundLapackBlas != "1"
|
||||||
SetOutPath "$INSTDIR\bin"
|
SetOutPath "$INSTDIR\bin"
|
||||||
File ${NGSOLVE_EXTLIBS}\bin\*.dll
|
File ${NGSOLVE_LAPACKLIBS}\bin\*.dll
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
${If} $foundMKLLibs != "1"
|
||||||
|
SetOutPath "$INSTDIR\bin"
|
||||||
|
File ${NGSOLVE_MKLLIBS}\bin\*.dll
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
; Copy the NGSolve LIB file to the
|
; Copy the NGSolve LIB file to the
|
||||||
; Netgen lib folder
|
; Netgen lib folder
|
||||||
SetOutPath "$INSTDIR\lib"
|
SetOutPath "$INSTDIR\lib"
|
||||||
@ -985,6 +1002,30 @@ FunctionEnd
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; ---------- Check for Intel Match Kernel Libraries (MKL) DLLs -
|
||||||
|
; Checks if the MKL DLLs are available
|
||||||
|
; via the PATH environment variable
|
||||||
|
Function checkMKLLibs
|
||||||
|
ClearErrors
|
||||||
|
SearchPath $2 libiomp5md.dll
|
||||||
|
SearchPath $2 mkl_core.dll
|
||||||
|
SearchPath $2 mkl_def.dll
|
||||||
|
SearchPath $2 mkl_intel_thread.dll
|
||||||
|
SearchPath $2 msvcr71.dll
|
||||||
|
IfErrors MKLErrors
|
||||||
|
StrCpy $foundMKLLibs "1"
|
||||||
|
LogText "Math Kernel Libraries (MKL) already installed on system....skipping local installation"
|
||||||
|
ClearErrors
|
||||||
|
Return
|
||||||
|
MKLErrors:
|
||||||
|
StrCpy $foundMKLLibs "0"
|
||||||
|
LogText "Math Kernel Libraries (MKL) not found on system....installing locally"
|
||||||
|
ClearErrors
|
||||||
|
FunctionEnd
|
||||||
|
; ---------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; ---------- Func1 - Get Path Only ------
|
; ---------- Func1 - Get Path Only ------
|
||||||
Function GetPathOnly
|
Function GetPathOnly
|
||||||
Exch $R0
|
Exch $R0
|
||||||
|
Loading…
Reference in New Issue
Block a user