ysh329 / OpenCL-101

Learn OpenCL step by step.
123 stars 31 forks source link

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

Closed ysh329 closed 6 years ago

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

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.

ysh329 commented 6 years ago

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).

prettyannoying commented 5 years ago

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.

ysh329 commented 5 years ago

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