On pyxis: all cpuset ids (of all threads) a grouped by CPU:
Among a CPU, threads are given in round robin:
So looking at the first thread of each core, this gives 2 groups:
So the new formula to give the first thread id of each core is the
following: row[:cpuset] = cpu_num * cpu_thread_count + core_num