- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
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.
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
your line 137, 'ckKernel' was not initialized but it was used for 'clEnqueueNDRangeKernel'

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page