Increasing effective GPU memory through parallel GPUs?

조회 수: 2 (최근 30일)
Joonas
Joonas 2022년 2월 1일
답변: Joss Knight 2022년 2월 7일
Hi,
I'm having a for-loop where a certain GPUArray increases at each iteration by ~ 1GB and at the end of the all iterations the GPU array would be ~50GB big.
As hardware I have 4 x 32GB GPU available. However, when the GPUarray size exceeds 32GB in the for-loop, I run out of memory. Hence I can conclude that Matlab does not automatically use the additional hardware available.
How can I utilize the extra GPUs in order to increase the "effective available memory" up to 64GB? Somehow I should tell the Matlab to use the second GPU in order to make Matlab see 64GB available GPU memory "in total".
I'm using Matlab 2018b and I have a parallel computing toolbox available.
Best regards,
Joonas

답변 (1개)

Joss Knight
Joss Knight 2022년 2월 7일
The only way to do this is to divide your computation up manually and spread the work across your GPUs by using a parallel pool and spmd. There is no way to have MATLAB just automatically share work and memory across GPUs. If you post some of your code, perhaps we can help you work out how to do this.

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by