AMGX icon indicating copy to clipboard operation
AMGX copied to clipboard

Parallel solves

Open dokotor opened this issue 4 years ago • 2 comments

I wanted to know whether it is possible to run several solves in parallel, if they will all fit in GPU memory.

The use case is as follows - there are around 40 solves, each one of them takes around 10 seconds. I have been using a custom CG solver written in CUDA, where I could run e.g. 10 such solves in parallel.

After switching to AMGX, I am receiving a lot of exceptions, when several solves are trying to be run from different threads. I tried to perform the initialisation on single thread, but the result is the same.

dokotor avatar Aug 19 '21 16:08 dokotor

Are you trying to solve multiple different systems or a system with multiple right hand sides? Are you using same solver (config) or different ones?

marsaev avatar Aug 19 '21 20:08 marsaev

I am trying to solve multiple systems, with different both left and right hand sides. The config files may be the same.

dokotor avatar Aug 21 '21 09:08 dokotor