Arm® Forge uses two configuration files: the system configuration file system.config
file and the user-specific user.config
. The system configuration file specifies properties such as MPI implementation. The user-specific configuration file describes user preferences, such as font size. The files are controlled by environment variables:
Environment Variable | Default |
---|---|
ALLINEA_USER_CONFIG | ${ALLINEA_CONFIG_DIR}/user.config |
ALLINEA_SYSTEM_CONFIG | ${ALLINEA_CONFIG_DIR}/system.config |
ALLINEA_CONFIG_DIR | ${HOME}/.allinea |
Note
These configuration files and directories contain user specific configuration and authentication information.
To prevent unauthorized users modifying sensitive files and directories, and introducing unsafe code into your environment, ensure that you assign only the minimum permissions that are required, and avoid group or world-writable permissions.
If you are the system administrator, or have write-access to the installation directory, you can provide a configuration file which other users are automatically given a copy of the first time that they start Arm® Forge. In this case, users no longer need to provide configuration for site-specific aspects such as queue templates and job submission.
Note
To prevent unauthorized users modifying sensitive files and directories, and introducing unsafe code into your environment, ensure that you assign only the minimum permissions that are required, and avoid group or world-writable permissions.
Configure Arm® Forge normally and run a test program to make sure all the settings are correct. When you are satisfied with your configuration, execute this command:
forge --clean-config
The --clean–config
option removes any user-specific settings from your system configuration file and creates a system.config
file that can provide the default settings for all users on your system. Instructions about how to do this are printed when --clean–config
completes.
Note
Only the system.config
file is generated. Arm® Forge also uses a user-specific user.config
, which is not affected.
If you want to use to attach to running jobs, you must also create a
file called nodes
in the installation directory which lists the compute nodes to which you want to attach. See Attach to running programs for details.
At startup, Arm® Forge searches for a sitewide startup script called allinearc
in the root of the installation directory.
If this file exists, the software sources it and then starts the tool. When using the remote client, the software sources this startup script, and then starts any sitewide remote-init remote daemon startup script.
Similarly, you can also provide a user-specific startup script in ~/.allinea/allinearc.
Note
To prevent unauthorized users modifying sensitive files and directories, and introducing unsafe code into your environment, ensure that you assign only the minimum permissions that are required, and avoid group or world-writable permissions.
Note
If the environment variable is set, the software looks in /allinearc
instead. When using the remote client, the software sources the user-specific startup script followed by the user-specific ~/.allinea/remote-init
remote daemon startup script.
If you have used a version of Arm® DDT prior to version 4.0, your existing configuration is imported automatically.
If the DDTCONFIG
environment variable is
set, or you use the –config
command-line argument, the existing configuration is imported. However, the legacy configuration file is not modified, and subsequent configuration changes are saved as described in the previous sections.
If you have existing sitewide configuration files from a version of Arm® DDT prior to 4.0 you must convert them to the new 4.0 format. You can do this using the following command line:
Note
Ensure that newconfig.ddt
does not exist before you submit the command.
forge --config=oldconfig.ddt --system-config=newconfig.ddt --clean-config