tud-zih-energy / FIRESTARTER

FIRESTARTER: A Processor Stress Test Utility. This repository contains the source code generator. Our releases (including the generated source code and precompiled binaries) are available at https://tu-dresden.de/zih/firestarter/.
GNU General Public License v3.0
116 stars 25 forks source link

Replace CPU_SET calls with thread affinity from hwloc #74

Open marenz2569 opened 2 weeks ago

marenz2569 commented 2 weeks ago

Currently we support thread affinity with linux using the sched.h header and calls to CPU_SET. This code is not portable and should be replaced by hwloc_set_cpubind(topology, set, HWLOC_CPUBIND_THREAD).