MATLAB: Runing code with matlab on the GPU restarts the PC

gpuGPU Coder

We have Z820 worksation which have 192GB RAM and RTX2080 TI GPU on it. When I wrote below code
X values which is small (X<4000) it works. But big values PC restart itself after run the code . I set up latest nvida cuda drivers .
Would you give me advices??
X=4000;
tempCPU= single(rand(X,X))
tempGPU= gpuArray(tempCPU)
time=gputimeit(@()(tempGPU*tempGPU))

Best Answer

Almost always the only way the GPU can cause your PC to restart is a power supply issue. You should check that your PC's power supply is sufficient to supply the maximum power required by your GPU.