Performance issues on GPU

43 views
Skip to first unread message

smu...@uchicago.edu

unread,
May 3, 2017, 12:01:24 PM5/3/17
to reikna
Hi Bogdan,
Thanks for all your help so far!  I have managed to get my split-step integrator working on the GPU, but I seem to be encountering some performance issues.  The split-step loop initially runs very fast, but then becomes 200x slower after about 20 passes through the loop.  It then stays at this speed for the rest of the loop.  I go into more detail about this in my stackoverflow question.  Is this caused by not being careful enough with reikna?  Or is there some way to address this problem with reikna?  Sorry that this question isn't directly related to reikna, but I thought you might be a great resource!
Thanks again,
Seth

Bogdan Opanchuk

unread,
May 3, 2017, 10:35:14 PM5/3/17
to reikna
Hi Seth,

I replied to you on SO, it is quite a long answer because I also had some comments about the code you posted.

Briefly, you were not synchronizing the queue after each iteration (with queue.finish() or thr.synchronize()), so you only measured the time of adding kernels to the queue. When the queue was saturated, you started getting the times that were close to reality.
Reply all
Reply to author
Forward
0 new messages