Great, thanks for the info. I think I've figured out the issue, namely the
improper use of pointers at some places. Fixing this brought up some other
issues. Suppose I have partitions defined as below:
struct partition {
seg *pt_inseg;
hit *pt_inhit;
...
}
And my kernel function is:
__kernel void weave(global struct *segs, global uint *h,
global partition *parts, ...)
{
size_t id = get_global...;
global struct partition *pp = &parts[h[id]];
pp->pt_inseg = &segs[h[i]];
...
}
The above snippet produces an error claiming 'conversion from address space
"global" to "private" is not supported' (last line). But parts and segs are
both global right, which means such an error shouldn't occur.
Thanks,
Param
On Mon, Aug 8, 2016 at 12:32 PM Vasco Alexandre da Silva Costa <
vasco.co...@gmail.com> wrote:
> I think NVIDIA NSight has some support for OpenCL debugging. AMD has
> another tool called CodeXL which provides debugging and profiling of OpenCL
> programs.
>
> Currently I mostly use debug printfs and code reviews to do debug.
> Although I did run some OpenCL code under valgrind once to figure out a
> pointer handling issue. That was with AMD APP SDK running on the CPU side.
> If you run the code on the CPU even regular GDB should work, you might not
> get proper breakpoint settings etc thought since the code is in OpenCL
> rather than C/C++.
>
> On Mon, Aug 8, 2016 at 5:55 AM, Param Hanji <param.catchch...@gmail.com>
> wrote:
>
>> Hello,
>>
>> Does anyone know about any tools that can be used for runtime debugging
>> OpenCL programs?
>>
>> I've written some code to complete the boolean weaving on the kernel. It
>> currently spits out garbage and I need to figure out why. Normally, I would
>> pass an argument, which I would change in the kernel and then print out its
>> value to see if certain parts of the code (an if condition block for
>> example) were processed. This doesn't seem to be working though.
>>
>> Thank you
>> Param Hanji
>>
>
>
>
> --
> Vasco Alexandre da Silva Costa
> PhD in Computer Engineering (Computer Graphics)
> Instituto Superior Técnico/University of Lisbon, Portugal
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel