Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] How do I access CPUModel info string
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2012-10-25 17:42:14


Hello,

Assuming you found the socket hwloc object whose name you want, do
    hwloc_obj_get_info_by_name(obj, "CPUModel");
you'll get const char * pointing to what you want.

However, this info is only available on Linux and Solaris for now. If
you have any idea of to discover such info on other OS, please let us know.

Brice

Le 25/10/2012 23:39, Robin Scher a écrit :
> Is there a way to get this string (e.g. "Intel(R) Core(TM) i7 CPU M
> 620 @ 2.67GHz") consistently on Windows, Linux, OS-X and Solaris?
>
> Thanks,
> -robin
>
> --
> *Robin Scher* Uberware
> robin_at_[hidden]
> +1 (213) 448-0443
>
>
>
>
> _______________________________________________
> hwloc-users mailing list
> hwloc-users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users