ysh329 / OpenCL-101

Learn OpenCL step by step.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

double free or corruption (!prev) Aborted (core dumped)

ysh329 opened this issue · comments

*** Error in `./bandwidth': double free or corruption (!prev): 0x000000001c5dd650 ***
Aborted (core dumped)

I think this problem is caused by using same data_size for declaration on host and device, such as using float-type on host but half-type on device.

This really an strange issue! Now it was resolved by commented free function (relative.,maybe) at the end of program or other lines (I forgot).

Hi, can you please give some details about how you resolved it? I have freed the memory as well, but I still keep getting the error.

@skenypatel Hi, it's so long time ago. I think I forget free malloced variables.