This topic describes the affinity requirements for DaCS.
A DaCS for Hybrid-x86 application on the host (X86_64) must have processor affinity to start. This can be done
- on the command line.
- in mpirun.
- through the sched_setaffinity function.
The following is a command line example to set affinity of the shell to the first processor (numbering starts at 0):
# taskset -pc 0 &&
The following example launches a DaCS application using
taskset:
# taskset -c 0 HelloDaCSApp Mike
The application program name is
HelloDaCSApp which is passed an argument of
Mike.
The man page for taskset states that a user must have CAP_SYS_NICE permission to change CPU affinity.