#include "osl/misc/ncores.h"
#include <iostream>
ソースコードを見る。
printNcores.cc の 4 行で定義されています。
参照先 osl::misc::ncores().