Dear Samuel, I guess the simplest way to achieve what you want is to create EasyBuild modules for your compiler and MPI installed outside of EasyBuild with the "SystemCompiler" and "SystemMPI" easyblocks.
Bernd On Thu, May 17, 2018 at 10:25:10PM +0200, [email protected] wrote: > Hello, > > I am new to EasyBuild and am trying to create a custom toolchain which uses > external dependencies where the compiler and MPI are have manually created > modules outside of Easybuild. > > I created an easyconfig file imv2.eb: > easyblock = "Toolchain" > name = 'imv2' > version = '1.1.2' > homepage = 'http://software.intel.com/en-us/intel-cluster-toolkit-compiler/' > description = """Intel Cluster Toolkit Compiler Edition provides Intel C/C++ > and Fortran compilers, Intel MPI & Intel MKL.""" > toolchain = {'name': 'dummy', 'version': 'dummy'} > dependencies = [ # version/released > ('intel/18.0.0', EXTERNAL_MODULE), > ('mvapich2/2.3rc2', EXTERNAL_MODULE), > ] > moduleclass = 'toolchain' > module_depends_on = {('intel/18.0.0'), ('mvapich2/2.3rc2')} > > and easyblock: > from easybuild.toolchains.mpi.mvapich2 import Mvapich2 > from easybuild.toolchains.fft.intelfftw import IntelFFTW > from easybuild.toolchains.linalg.intelmkl import IntelMKL > from easybuild.toolchains.iccifort import IccIfort > > class Imv2(IccIfort, Mvapich2, IntelMKL, IntelFFTW): > """ > Compiler toolchain with Intel compilers (icc/ifort), MVAPICH2 MPI, > Intel Math Kernel Library (MKL) and Intel FFTW wrappers. > """ > NAME = 'imv2' > SUBTOOLCHAIN = IccIfort.NAME > > However when I try installing a package that depends on this toolchain I get > the following message: > > FAILED: Installation ended unsuccessfully (build directory: /users/PZS0530/ > skhuvis/.local/easybuild/build/ScaLAPACK/2.0.2/imv2-1.1.2): build failed > (first 300 chars): List of toolchain dependency modules and toolchain > definition do not match (found ['intel/18.0.0', 'mvapich2/2.3rc2'] vs expected > set(['MVAPICH2', 'icc', 'imkl', 'ifort'])) > > What would be the correct way to create this module to use external modules? > > Thank you, > Samuel Khuvis > Scientific Applications Engineer > Ohio Supercomputer Center (OSC) > A member of the Ohio Technology Consortium > 1224 Kinnear Road, Columbus, Ohio 43212 -- Dr.-Ing. Bernd Mohr Juelich Supercomputing Centre Institute for Advanced Simulation E-Mail: [email protected] WWW: http://www.fz-juelich.de/SharedDocs/Personen/IAS/JSC/EN/staff/mohr_b.html ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

