cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mkukanur
Staff

Debug OpenCL on Linux with gDEBugger 6.2 - Now Available for Download

Linux developers can now use gDEBugger starting this release using a new standalone user interface. The new GUI, available for both Linux and Windows, helps with ease of use and better navigation. In addition, this release has stability and other feature enhancements including an updated Microsoft(R) Visual Studio(R) plugin/extension. 

For more details about this release and to download gDEBugger 6.2, visit http://developer.amd.com/TOOLS/GDEBUGGER/Pages/default.aspx

0 Likes
4 Replies
cguenther
Adept II

The gdebugger 6.2 says that the kernel debugging is not available because i am using unsupportet stuff e.g. the printf inside my Kernel. But i am not using the printf. Is it possible that the usage of shared openGL objects like image2d_t, VBOs and UBOs are the reason for this behaviour? Also i use the atomic_cmpxchg and barrier(CLK_LOCAL_MEM_FENCE).

System:

Ubuntu 12.04 X64 3.2.0-31-generic

AMD 7970 with Catalyst 12.8

AMD APP SDK 2.7

0 Likes

Hi cguenther,

The atomic operation is the reason gDEBugger will not debug your kernel. From gDEBugger release notes:

"Atomic operations that return a value are not currently supported. Affected extensions include:

cl_khr_int64_base_atomics, cl_khr_int64_extended_atomics, cl_khr_global_int32_base_atomics, cl_khr_global_int32_extended_atomics,

cl_khr_local_int32_base_atomics, cl_khr_local_int32_extended_atomics, cl_ext_atomic_counters_32 and cl_ext_atomic_counters_64.

Workaround:

Split kernels that use atomic operations into a separate program to those kernels that do not use atomic operations. This

will allow debugging of the kernels that do not use atomic operations."

See http://developer.amd.com/tools/hc/gDEBugger/assets/AMDgDEBugger-ReleaseNotes.pdf

BTW, the successor tool to gDEBugger is AMD CodeXL, whose Beta version is now available for download. Among many other improvements, CodeXL pops-up a message specifying what feature of a kernel prevents debugging it.

Why not give it a try? http://developer.amd.com/tools/hc/CodeXL/pages/default.aspx

Doron Ofek

Advanced Micro Devices


The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.

The current CodeXL is a great software package. Its good to see that open standards are so good supported for development provided by your work!

Thanks

CG

0 Likes

Thanks for the feedback!

0 Likes