CUDA illegal memory address


What does cuda-memcheck report?

Do you have matching deletes for each in-kernel allocation? Do all in-kernel allocations fit in the device heap?

You need to copy 30 floats, not 30 float pointers, do you?

This is what cuda-memcheck does, i’m not very familiar as im very new to this

Here is my entire .cu file, i’ve been trying to work this out for hours now, any help would be hugely appreciated

I was able to figure it out, thanks for your help, I had the code for deletes written but it was not being called.