Saalma / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

Single kernel needs to support multiple entry points #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We have a use case which requires us to execute a single kernel and enter the 
kernel from multiple different entry points.

For example, we need to perform an initial calculation on a dataset and store 
the results on the GPU with one kernel call. Then we need to calculate a 
secondary result based on the initial results with a second kernel call.

Currently, the following methods do not appear to be completely implemented:

Kernel.execute(Entry _entry, int _globalSize)
Kernel.execute(String _entryPoint, int _globalSize)
Kernel.execute(String _entryPoint, int _globalSize, int _passes) 

Original issue reported on code.google.com by ryan.lam...@gmail.com on 22 Nov 2011 at 10:47

GoogleCodeExporter commented 8 years ago
Yes you can see that some work had been started on this some time ago, the code 
is however incomplete. 

At present one can workaround many cases by passing state to the Kernel.run() 
method which dictates the functionality, however this falls apart when Kernels 
do not expect the same arguments/parameters. 

Original comment by frost.g...@gmail.com on 23 Nov 2011 at 4:49

GoogleCodeExporter commented 8 years ago
Issue 58 has been merged into this issue.

Original comment by frost.g...@gmail.com on 25 Jul 2012 at 7:32

GoogleCodeExporter commented 8 years ago
Any progress on this? Please...?

Original comment by oliver.c...@gmail.com on 29 Apr 2014 at 5:25

GoogleCodeExporter commented 8 years ago
I have tried to make this work a few times without requiring casual method name 
mapping which is brittle. 

Can you suggest an API you would like to see?

I do think that Java 7/8 style method handles may work very nice here.

Gary

Original comment by frost.g...@gmail.com on 29 Apr 2014 at 5:19