Can I use my gpu to fasten my multiobjective optimization using gamultiobj?
4 次查看(过去 30 天)
显示 更早的评论
I am running a multiobjective optimization program using gamultiobj and parallel computing (cpu cores). Can I use gpu to speed up this process?
0 个评论
采纳的回答
Walter Roberson
2024-9-30
In order to use GPU inside of parallel computations you would need to have one distinct GPU for each parallel computation.
It is not possible for parallel computations to "share" a single GPU.
Probably your best bet is to set UseVectorized and not set UseParallel. Then have your evaluation routine transfer the block of input data to GPU, work with it on GPU, and then gather() the result back from GPU.
It is not possible to keep the population on GPU; you need to transfer to GPU, work with it, transfer back.
2 个评论
Walter Roberson
2024-10-4
ode45() has the same limitation: the input and output must be normal arrays.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!