I have Z820 worksation which have 192GB RAM and RTX2080 TI GPU on it. When I wrote below code
X=4000; tempCPU= single(rand(X,X)) tempGPU= gpuArray