When using multiple GPU's get out of memory error at less than max single GPU memory x number GPUS

Running a blockproc operation on a large image.
When I use a single GPU I can process a tilesize of 1024x1024 without running out of memory using about 11.5 of 12GB GPU memory.
Using multiple GPU ('UseParallel', true) I get out of memory errors at anything above 640x640 tile size with similar utilization of about 11.5 of 12GB of memory per GPU.
Not sure why this should be the case?

 Akzeptierte Antwort

Make sure your default parallel pool only opens one worker per GPU, otherwise many workers will all try to share the same GPU, hence each will have less memory to work with.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with GPU Coder finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by