I would like to know if there is a way to determine CPU cache size in managed code?
I am writing a Strassen\'s algorithm for matrix multiplication in C# and would li
Try this code
using System.Management; uint32 cachsize; public void CPUSpeed() { using(ManagementObject Mo = new ManagementObject("Win32_Processor.DeviceID='CPU0'")) { cachsize = (uint)(Mo["L2CacheSize"]); } }
I get it from Here