Loading...
Searching...
No Matches
7. Configuration and Initialization

This section explains the relationship between configure options, compilation options and environment variables used by StarPU.

1. Configure options are used during the installation process to enable or disable specific features and libraries. These options are set using flags like --enable-maxcpus, which can be used to set the maximum number of CPUs that can be used by StarPU.

2. Compilation options are used to set specific parameters during the compilation process, such as the optimization level, architecture type, and debugging options.

3. Environment variables are used to set runtime parameters and control the behavior of the StarPU library. For example, the STARPU_NCPUS environment variable can be used to specify the number of CPUs to use at runtime, overriding the value set during compilation or installation.

Options can also be set with the different fields of the starpu_conf parameter given to starpu_init(), such as starpu_conf::ncpus, which is used to specify the number of CPUs that StarPU should use for computations.