- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have tried to accelerate our program with intel opencl on Windows 7.The program works successfully.
And now,we want to switch to Linux(with the same hardware) . So we installed the driver and intel opencl SDK for linux.We download the sample code and also running without any fault.However, after running my own program ,it returns Segmentation fault.We use GDB to locate the fault and we get this:
2529 status = clEnqueueNDRangeKernel( (gdb) n 2538 NULL); (gdb) n 2541 status=clFinish(cmdQueue1); (gdb) p status $2 = 0 (gdb) n Thread 3 "GAKnot1" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffee418700 (LWP 3221)]
More Details:
OS:Ubuntu 16.04LTS
Driver Version:1.2.0.400 (PS:from clinfo)
Devices Name:Intel(R) Core(TM) i7-6700k CPU @ 4.00GHz (PS:from clinfo)
We installed SRB4 driver package.
My question is as follows:
1.Does it mean the Segmentation Fault is caused by kernel?
2.How to debug with kernel?Are there any tools for Ubuntu ?
Thanks for your attention.
Regards
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for the delayed reply. Very glad you were able to get the samples to work, since this is good evidence that your install is correct.
If clFinish returns 0 this should indicate that all queued commands (including the kernel execution) have finished. However, it is suspicious that the segmentation fault happens right after clFinish. Is there any way you can send a reproducer? Please feel free to send a private message if you don't want the code on a public forum.
There is a GPU kernel debugger for Linux. For more info: https://software.intel.com/en-us/node/671870
From the Developer Guide: "It's important to use separate machines, as the debugging on the GPU takes place at real-time and the screen cannot render (is frozen) while you are debugging your kernel on the GPU."
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page