pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
993 stars 314 forks source link

Frequency support #7

Closed DarioAhdoot closed 5 years ago

DarioAhdoot commented 5 years ago

Any ETA on when you plan to expose frequency information, if ever?

Maratyszcza commented 5 years ago

There are plans to expose frequency, but not ETA on when it will happen

DarioAhdoot commented 5 years ago

In the Readme, you have the following:

// Get the size of level 1 data cache on the fastest core in the processor (e.g. big core in big.LITTLE ARM systems):
const size_t l1_size = cpuinfo_get_processor(0)->cache.l1d->size;

Does that mean it's safe to assume that the first cluster will always be the faster cluster on big.LITTLE ARM systems? Basically, trying to get to the faster cores/processors w/o having frequency information.

Thanks!

Maratyszcza commented 5 years ago

@Diarrhio Yes, clusters are sorted by microarchitecture, then by frequency (if available). The first cluster is the most performance cluster.