Re: [NEWBIE QUESTION] Test not resolving correct Array from Datum

2018-09-23 Thread Atri Sharma
orithm instead > of O(n). You can see a commented out API placeholder in kernels/hash.h > > Hope this helps > Wes > On Sun, Sep 23, 2018 at 2:13 PM Atri Sharma wrote: > > > > Hi All, > > > > While adding a new test, I am facing an issue where a Datum of Array

[NEWBIE QUESTION] Test not resolving correct Array from Datum

2018-09-23 Thread Atri Sharma
Hi All, While adding a new test, I am facing an issue where a Datum of Array type returned by a function in compute layer does not match the expected value. I manually checked the buffers of the returned Datum's Array's contained ArrayData, and they look to be the correct values, but on printing t

Re: [QUESTION] Best way to attach debugger to CPP tests?

2018-09-21 Thread Atri Sharma
on (OS, compiler, etc)? Can you show exact > steps to arrive at the error? > > Thanks > > On Fri, Sep 21, 2018, 8:46 PM Atri Sharma wrote: > > > Hi Wes. > > > > Thanks, your command worked and I am able to attach a debugger. > > However, I get the following

Re: [QUESTION] Best way to attach debugger to CPP tests?

2018-09-21 Thread Atri Sharma
gt; $ gdb --args test-name --gtest_filter=*TestOfInterest* > > Then set breakpoints in gdb as usual. C-x a brings up the visual gdb interface > > - Wes > On Sun, Sep 16, 2018 at 9:45 AM Atri Sharma wrote: > > > > I am trying to run compute-test.cc tests and trace their execution, &g

[QUESTION] Best way to attach debugger to CPP tests?

2018-09-16 Thread Atri Sharma
I am trying to run compute-test.cc tests and trace their execution, but not sure what is the best mechanism for running individual tests and tracing their code flow. I looked up the wiki but could not find specific instructions. Could someone point me to the best practices around attaching a debug