Is there any way of finding out how much RAM my computer has from inside Julia? It would also be useful to be able to find out how many physical / virtual cores it has and what the speed of the processor(s) is, but the main thing I need to know is the RAM... thanks!
julia> Sys.total_memory()
0x00000003e0b0c000
julia> Sys.free_memory()
0x000000023ede0000
number of threads is in Sys.CPU_THREADS
, number of physical cores isn't accessible at the moment in Julia Base
, but there are probably third-party packages that can provide that information
Thanks, that's great - I knew it must be in there somewhere!
but there are probably third-party packages that can provide that information
I recommend Hwloc.jl
Last updated: Dec 28 2024 at 04:38 UTC