1 Reply Latest reply on Aug 29, 2008 11:16 PM by michael.chu

    valgrind'ing CAL and Brook+

      lots of error messages and some leaks but many of them can be false alerts


      Checking CAL/Brook+ programs with valgrind memory checker generates tons of error messages (some memory leaks are also detected). While I recognize that CAL runtime may use many non-standard (as for ordinary C programs) memory management/access mechanisms (like memory mapped I/O, DMA etc.) and these can be overlooked by memory checker, I'm curious if CAL has been checked for memory errors.

      A trivial program calling calInit() and calShutdown() generates some about 20k messages and two small memory leaks. Brook+ samples typically generate twice as much. It would be nice to check if there are real errors and eventually provide a suppress file for false alerts. Valgrind is a good tool for checking C/C++ programs against many flavours of hidden bugs.

      BTW, is it possible to set up some bug tracker for CAL SDK and Brook+ ? I have few (suspected) bugs in CAL compiler itself and I suppose that many other developers do. A public bug tracker would provide much more feedback to Stream Team


        • valgrind'ing CAL and Brook+
          Hi Rafal,

          Thanks for the heads up!

          I'm going to bring this to the attention of the SDK teams. I think they use Purify, but I have to check to be sure.

          And, I am taking bug reports and putting them into our internal bug tracking system. Unfortunately, we don't currently have it setup to allow external viewing/entry.