How to re-use global memory between kernel invocations
Posted by devmonkey on Jul 08, 2015; 9:19pm
URL: https://forum.jogamp.org/How-to-re-use-global-memory-between-kernel-invocations-tp4034847.html
Hi,
My usecase is neural network related.
I need to copy a large amount of sample data to global memory, this data does not change between training cycles (which are kernel invocations) so can sit on the card all day/week. However the weights to the net are updated after every invocation (updated on the host) and therefore need to be copied back to the card on every kernel invocation.
Can anyone suggest the correct approach to this or should I not be copying data at all but rather mapping memory from the card back to the host and writing to it?
Thanks, Joe