juvenildo01 / aparapi

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

Using kernel.dispose() with 2D and 3D array fails with exception error #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call kernel.dispose() in 
samples/mdarray/src/gov/pnnl/aparapi/sample/mdarray/MDArray.java

What is the expected output? What do you see instead?
The following exception error occurs.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002aacb397a82c, pid=29439, tid=1095002432
......

What version of the product are you using? On what operating system?
Aparapi rev 1700 

Please provide any additional information below.
The kernel.dispose() tries to free ArrayBuffer which are used for 1D arrays. 
So, I will submit a patch.

Original issue reported on code.google.com by ekas...@gmail.com on 28 May 2014 at 8:02

GoogleCodeExporter commented 9 years ago
The patch is attached.

Original comment by ekas...@gmail.com on 28 May 2014 at 8:03

Attachments:

GoogleCodeExporter commented 9 years ago
kernel.dispose is ok now, but re-execute a not-disposed kernel, fatal error 
again.

Original comment by mysh...@gmail.com on 2 Sep 2014 at 5:13