4 Replies Latest reply on Oct 10, 2008 9:42 PM by udeepta@amd

    Is it possible to access to some direct CAL functions within a BROOK program??

    jean-claude
      Brook/CAL programming interface

      Hi,

      I do have some basic questions related to accessing directly CAL from a Brook program (with some caution obviously)

      1) example 1

      assuming you have something like:

       

      float a<height,width>;

      float b<height,width>; // intermediate working stream





      streamread(a,...)

      process(a,b,..)

      streamwrite(a,...)

      Then if I understand correctly, you're still left with stream b somewhere in the memory...

      Would it be possible to deallocate this memory by using:

      calresfree(...) or someting else, if yes what should be the resource pointer passed to calresfree ???

      2) example 2

      How to access from Brook, functions such as :

      calDeviceGetAttribs(...)

      This indeed would help to figure out the running environment

      Thanks

      Jean-Claude