I want to obtain the number of cores available in Julia. Currently I am doing the following:
using PyCall
@pyimport psutil
nCores = psutil.cpu_count()
This calls a Python function. I would like, however, to use some Julia procedure. How can it be done?
psutil.cpu_count()
reports 8 cores on my Intel i7-2720QM-powered laptop so it also counts hyper-threading cores as full cores. – Litchi