RoshanGerard / aparapi

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

Issues accessing a single Kernel instance from multiple threads. #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Execute a single Kernel instance from many threads
2.
3.

What is the expected output? What do you see instead?
Expect to see each thread to execute correctly (although we can't expect data 
integrity)

Please use labels and text to provide additional information.
Instead we get an JVM crash. 

This is the latest branch for supporting Multi-Dim kernel access.  But I 
suspect the same issue will be in the main branch.

My guess is that we are inadvertantly sharing JNIEnv* data across threads.  I 
just checked in a potential fix (in the multi-dim branch) but can't really test 
until Monday. 

Original issue reported on code.google.com by frost.g...@gmail.com on 15 Jan 2012 at 9:36

GoogleCodeExporter commented 9 years ago
Fix included with #r258 branch merge. We no longer rely on stored/share JNIEnvs.

Original comment by frost.g...@gmail.com on 14 Feb 2012 at 5:48