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