Runing code with matlab on the GPU restarts the PC

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))

2 件のコメント

Raymond Norris
Raymond Norris 2021 年 1 月 6 日
Just to clarify, for large values for X, MATLAB runs the code and then your machine reboots (i.e. restarts)? What values of X are you seeing this happen?
ahmet emir
ahmet emir 2021 年 1 月 6 日
編集済み: ahmet emir 2021 年 1 月 6 日
for example larger X values than 4000 pc restart itself

サインインしてコメントする。

 採用された回答

Joss Knight
Joss Knight 2021 年 1 月 10 日

1 投票

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.

1 件のコメント

ahmet emir
ahmet emir 2021 年 1 月 10 日
編集済み: ahmet emir 2021 年 1 月 10 日
thanks for yor reply. I will control the PC's power supply

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

製品

リリース

R2018b

タグ

質問済み:

2021 年 1 月 5 日

編集済み:

2021 年 1 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by