jean-claude

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

Discussion created by jean-claude on Sep 18, 2008
Latest reply on Oct 10, 2008 by udeepta@amd
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

 

Outcomes