c++ - Programmatically get the cache line size? -
Welcome to all platforms, please specify the forum for your answer.
A similar question:
On Linux (with a fairly recent kernel ), you can get / sys this information:
/ sys / devices / system / cpu / cpu0 / cache / this directory a subdirectory for each level of cash for the following files in each of these directories:
coherency_line_size level number_of_sets physical_line_partition shared_cpu_list shared_cpu_map shaped type ways_of_associativity It lets you know more about cache Kari lets, hopefully, hopefully, the cacheline along with the cacheline size share this cache. This will give you better results is very useful if you're doing multithreaded programming with shared data (common thread shared data cash).
Comments
Post a Comment