% use https://se.mathworks.com/matlabcentral/fileexchange/33155-cpu-info (date: 16.06.2021) % test access single node memory t = tic; tic n = 200000; Asp = sprand(n, n, 0.00001); A = full(Asp); % should allocate about 298 GB x = rand(n, 1); s1 = sum(sum(Asp)); s2 = sum(sum(A)); assert(norm(s1-s2) < 1e-6) toc % test access full memory t = tic; tic n = 1000000; Asp = sprand(n, n, 0.00001); A = full(Asp); % should allocate about 7.276 GB x = rand(n, 1); s1 = sum(sum(Asp)); s2 = sum(sum(A)); assert(norm(s1-s2) < 1e-6) toc