memory leak in clforka()?
Posted: Sun Jan 17, 2016 1:22 pm
i implemented Game Of Life on my parallella with STDCL and it works do far. But it seems, clforka() has a memory leak.
i call clforka() in a loop to evolve the world (one call evolves the whole world one step further):
while(generation < GENERATIONS) {
clforka(cp, devnum, krn, &ndr, CL_EVENT_WAIT, width, height, current_world, new_world);
ptr = new_world;
new_world = current_world;
current_world = ptr;
}
after some interations (about 95) i get
gol: e_alloc(): mmap failure.
gol:
ERROR: Can't allocate external memory buffer!
because the host process reached the 3GB process limit. Has anyone the same issue and can confirm it?
I will reimplement it using OpenCL, maybe it's a STDCL issue.
i call clforka() in a loop to evolve the world (one call evolves the whole world one step further):
while(generation < GENERATIONS) {
clforka(cp, devnum, krn, &ndr, CL_EVENT_WAIT, width, height, current_world, new_world);
ptr = new_world;
new_world = current_world;
current_world = ptr;
}
after some interations (about 95) i get
gol: e_alloc(): mmap failure.
gol:
ERROR: Can't allocate external memory buffer!
because the host process reached the 3GB process limit. Has anyone the same issue and can confirm it?
I will reimplement it using OpenCL, maybe it's a STDCL issue.