I have a simple C++ code that uses Intel's TBB to run a list of scripts on a cluster using PBS. I want to confirm that I am using all the cores as intended. Each node has 16 cores. I have created the scripts to take varying amounts of time such that if the list is divided evenly I will have idle cores. If the list is divided out as cores become available I should have no idle cores. The code appears to work fine on a single node but not for multiple nodes.
I want something similar to echo $HOSTNAME
except for the core. Google failed me and produced results for echoing the number of cores or how much the cores are used. I have tried using top and monitoring the job run but this doesn't tell me which core.