Module affinity

Module affinity 

Source

Functionsยง

bind_current_thread_to_core ๐Ÿ”’
Bind the current thread to the specified core.
bind_current_thread_to_cpuset ๐Ÿ”’
Bind the current thread to the specified core.
get_total_num_cpus
Return the total number of cores allocated to the program.

Type Aliasesยง

CoreId
Represents the ID of a logical CPU on a system.