Works perfectly fine on the Raspberry Pi (all versions)Used this code, because I could not stand the superfluous format() use Code: Pascal [Select][+][-]program cpulibtest;uses numcpulib;begin WriteLn('Logical CPU Count is ', TNumCPULib.GetLogicalCPUCount); WriteLn('Physical CPU Count is ', TNumCPULib.GetPhysicalCPUCount);end.Outputs:Code: Bash [Select][+][-]Logical CPU Count is 4Physical CPU Count is 4
Was this by any chance run in a VM?
Quote from: Xor-el on August 07, 2019, 05:40:34 pmWas this by any chance run in a VM?My english is very weak, so my answer what I understood, so I don't use any virtual machine now, this sample run on my "clean" windows 7 x 64 OS.
And you are sure your PC has just one physical CPU?
Quote from: Xor-el on August 07, 2019, 05:54:39 pmAnd you are sure your PC has just one physical CPU?I repair the computers in my workplace becuase the local IT cant fix anything, so what do you think, can I know how many cpu sleep in my mainboard?
Hi!Hardware: AMD Ryzen 5 2400 g (4 cores, 8 threads)OS: Suse Tumbleweedreports:Logical CPU Count is 8Physical CPU Count is 8What kind of count is going on?Winni
Hi,my hardware: AMD Ryzen 5 1500x (4 Cores, 8 Threads),my OS: Win7 64report says: physical 4, logical 8,so everything is okay!
@Xor-el The AMD processor page says definitly: 4 cores, 8 threadsThe KDE Info Center reports 8 cores!HardInfo reports 8 processors but doesn't say nothing if physical or logical!This is a land of confusion ....Winni
@Xor-el In the case of linux it seems to be the easiest way to read /proc/cpuinfo. There is a very lot of information, but the two needed values are present:......processor : 7vendor_id : AuthenticAMDcpu family : 23model : 17model name : AMD Ryzen 5 2400G with Radeon Vega Graphicsstepping : 0microcode : 0x810100bcpu MHz : 1458.000cache size : 512 KBphysical id : 0siblings : 8core id : 3cpu cores : 4.........That seems to be a secure and easy way.Winni