Hwloc.jl num_physical_cores()

I am using Julia 0.6.0.

I have added Package Hwloc and imported Hwloc packages.
And I’d like to call a function “num_physical_cores()”
But this function does not exist.
How do I do use this function?

This function seems a recent addition, and isn’t in the latest tagged release.

Until a new version is tagged, you could checkout the master version: Pkg.checkout("Hwloc")

Alternatively, follow the example in documentation:

topology = Hwloc.topology_load()
counts = Hwloc.histmap(topology)
ncores = counts[:Core]
2 Likes

I really appreciate your answering.
I solved the problem by Pkg.checkout("Hwloc") command.
Thank you.