config
Alter and store settings.
Note
See also the command-line help for all available
flags and options with: aenet config --help.
Inspecting the Configuration
When aenet config is called without any arguments, it will print the current configuration settings.
Configure ænet Fortran Binaries
To make aenet-python aware of the ænet binaries, the paths need to
be configured. The following command runs an interactive dialog that
works for standard installations
$ aenet config --set-aenet-path [path-to-aenet]
where [path-to-aenet] is the path pointing to the aenet root
directory.
MPI Configuration
The config tool supports configuring MPI parallelization for aenet executables.
If your aenet binaries are built with MPI support, you can enable parallel execution
for training and prediction tasks.
Enabling MPI Support
Enable MPI parallelization:
$ aenet config --enable-mpi
Disable MPI parallelization:
$ aenet config --disable-mpi
Customizing the MPI Launcher
By default, the MPI launcher is set to mpirun -np {num_proc} {exec}, where
{num_proc} is replaced by the number of processes and {exec} is replaced
by the executable path.
You can customize this for different HPC systems:
# For SLURM systems
$ aenet config --set-mpi-launcher "srun -n {num_proc} {exec}"
# For OpenMPI with specific options
$ aenet config --set-mpi-launcher "mpirun --bind-to core -np {num_proc} {exec}"
# For Intel MPI
$ aenet config --set-mpi-launcher "mpiexec -n {num_proc} {exec}"
The launcher template must include both {num_proc} and {exec} placeholders.
Checking MPI Configuration
View the current configuration including MPI settings:
$ aenet config
This displays all configuration options, including mpi_enabled and mpi_launcher.
API Reference
- class aenet.commandline.aenet_config.Config(subparsers=None)[source]
Read and write settings from/to the aenet configuration file(s).
- _man()[source]
The return value of this private method is the manual entry to be added to the tool’s help message (i.e., shown when the
--helpflag is passed).