diff --git a/legacyCompile/README.md b/legacyCompile/README.md index a84e49f1ad21b3372f53e767c2a3250fe2e0624c..e1c1a20491cf8aaf789f0a2038657b92e4441236 100644 --- a/legacyCompile/README.md +++ b/legacyCompile/README.md @@ -34,6 +34,7 @@ and package versions, it may not work for all users and environments. * MesaLib-x.y.z files (replace by mesa-x.y.z) * llvm-x.y.z.src TarFile (remove .src part in filename and in subdir) * cfe-x.y.z.src TarFile must be moved to llvm-x.y.z/tools/clang + * openmp-x.y.z.src TarFile must be moved to llvm-x.y.z/tools/openmp * ParaView-v* TarFile (remove -source part in filename and in subdir) Note: when unpacking ParaView, it may create a subdir with suffix -source. Please remove this suffix as well and tar the package diff --git a/legacyCompile/legacyCompile b/legacyCompile/legacyCompile index 9d6ff6c96ce18e202dc8586bb20554565f934553..b428452347bcef86d8563d2ab8b365ccaf74855d 100755 --- a/legacyCompile/legacyCompile +++ b/legacyCompile/legacyCompile @@ -656,6 +656,17 @@ unpackAllFiles() _mvdir "$cfeVERSION.src" "$cfeVERSION" # As above (*.src -> *) _mvdir "$cfeVERSION" "$llvmVERSION/$clangDir" # Relocate to tools/clang fi + + # Check if matching openmp version is required + ompDir=tools/openmp + ompVERSION="openmp${llvmVERSION#llvm}" + + if [ -d "$llvmVERSION" -a ! -d "$llvmVERSION/$ompDir" ] + then + _unpack $ompVERSION + _mvdir "$ompVERSION.src" "$ompVERSION" # As above (*.src -> *) + _mvdir "$ompVERSION" "$llvmVERSION/$ompDir" # Relocate to tools/openmp + fi ;; esac diff --git a/legacyCompile/v1712.cfg b/legacyCompile/v1712.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9d109386b9925ae79381411bb30ed4d0531ebaeb --- /dev/null +++ b/legacyCompile/v1712.cfg @@ -0,0 +1,52 @@ +#------------------------------------------------------------------------------ +# File +# v1712.cfg +# +# Description +# Configuration file for legacyCompile +#------------------------------------------------------------------------------ + +# Top-level package information +[package] + +FoamVersion=v1712 +OFdirName=OpenFOAM-v1712 +TPdirName=ThirdParty-v1712 + +# If source packages differ from the directory names, uncomment and adjust + +# OFsource=OpenFOAM-plus +# TPsource=ThirdParty-plus + +# Architecture +[arch] +label=32 +scalar=32 + + +[software] +# Preferred software versions etc. Use 'third' for ThirdParty. +#---------------------+-------------------+-------------------+ +# package | default | user-preference | +#---------------------+-------------------+-------------------+ + boost boost_1_64_0 + cgal CGAL-4.9.1 + fftw fftw-3.3.7 + openmpi openmpi-1.10.4 + scotch scotch_6.0.3 + paraview ParaView-5.4.1 + cmake cmake-system cmake-3.6.0 + vtk none VTK-8.1.0 + mesa none mesa-17.1.1 + qt qt-system qt-5.9.3 + llvm llvm-3.7.1 + gcc system gcc-4.8.5 + gmp system gmp-6.1.1 + mpfr system mpfr-3.1.5 + mpc system mpc-1.0.3 + + ompiType system third + compilerType system third + compiler Gcc Clang + +# -----------------------------------------------------------------------------