mache.spack.extract_machine_config

mache.spack.extract_machine_config(xml_file, machine, compiler, mpilib)[source]

Extract the machine configuration from the XML file.

Parameters:
  • xml_file (str) – Path to the XML file.

  • machine (str) – Machine name.

  • compiler (str) – Compiler name.

  • mpilib (str) – MPI library name.

Returns:

etree.Element or None – The XML element of the machine configuration if found, otherwise None.