I am a total beginner in Opencl/ GPU computing and I decided to start off by working on the Vector addition using Opencl (V 1.2). I was able to successfully run the code and then, decided to move further and write the code to compute the execution time of Vector addition on GPU using the Opencl Event. However, I ran into a segmentation fault of some sort and being a newbie to this stuff, despite trying for quite some time to fix this on my own, I'm not able to get over the error.
Furthermore, I'm still learning the various terms and methods involved in Opencl and thus, fixing the error has been difficult for me. I really want to move forward with my opencl coding, so any help in this regard would be much appreciated. I've attached screenshots of portions of the code for reference.
Looks like event is not properly passed to clEnqueueNdRangeKernel. In the screen I see Null as a last parameter.
Please utilize the last parameter to pass pointer to cl_event you just created.