You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run SETSM on a cluster where I need to control the number of threads being used. However, it seems like setsm always uses all threads available even when I specify the -threads option.
Investigating the source code, I don't see anywhere where the number of threads is being specified. Is this feature not implemented?
After learning that this feature is not implemented yet, I tried specifying the environment variable OMP_NUM_THREADS directly before my setsm command. This limits the threads as expected, e.g.
OMP_NUM_THREADS=32 setsm <args>
results in CPU usage of 3,200%. Some OpenMP guidance on this is here.
Activity
liamtoney commentedon Jul 9, 2024
After learning that this feature is not implemented yet, I tried specifying the environment variable
OMP_NUM_THREADSdirectly before mysetsmcommand. This limits the threads as expected, e.g.results in CPU usage of 3,200%. Some OpenMP guidance on this is here.