Software Archive
Read-only legacy content
17061 Discussions

Export application specific settings to MIC in Symmetric mode

Ambuj_P_
Beginner
481 Views

How to export/source application specific settings and paths while running in Symmetric mode on both host and MIC.

The application is huge and has different paths and variables to be sourced/exported for MIC and host. Normally it is done though a sequence of steps - first exporting a settings file and then running a script file for setting up the environment. How can all this be done while running in symmetric mode, when all the settings are different for both host and MIC. If i run from host, I can manually export all the settings but same settings are not needed for MIC but different, and vice versa.

I'm running different binaries in this manner:  mpirun -n <np> -machinefile machinefile <host binary file> : -n <np> -machinefile machinefile <MIC.binary file>

Awaiting guidance.

0 Kudos
2 Replies
Gregg_S_Intel
Employee
481 Views

Sounds like you want I_MPI_ENV_PREFIX_LIST.

export I_MPI_ENV_PREFIX_LIST=knc:PHI

<NAME>=value is applied to all systems
PHI_<NAME>=value defines <NAME>=value for all Intel(R) Xeon Phi(TM) coprocessors
PHI_2_<NAME>=value defines <NAME>=value for the Intel(R) Xeon Phi(TM) coprocessor named mic2

For example,
export I_MPI_ENV_PREFIX_LIST=knc:PHI

export OMP_NUM_THREADS=24
export PHI_OMP_NUM_THREADS=240

0 Kudos
Ambuj_P_
Beginner
481 Views

@Gregg Skinner
Thanks but that was not what I was seeking.

Anyways it is resolved now using entries in .bashrc of host and -genvnone combination from MIC, though it may not be the optimal way.

0 Kudos
Reply