Is there any way to use the cache performance counter in CAL via Brook+ to see the cache performance in Brook+ code?
There is no interface exposed in Brook+ to access CAL perfromance counters.
But, you can try to call CAL counters in your Brook+ code. I think it should work without any problem.
Originally posted by: gaurav.garg There is no interface exposed in Brook+ to access CAL perfromance counters.
But, you can try to call CAL counters in your Brook+ code. I think it should work without any problem.
I just tried this but you need to have the context in order to call those functions begin and end and setup, correct? So what would you use there (the context of Brook+)?
Anyone?
Gaurav, you suggested this so I thought you might have an idea as to how to do this?
Originally posted by: ryta1203 Anyone?
Gaurav, you suggested this so I thought you might have an idea as to how to do this?
You are right, You need CALcontext to use those counter. Those counters are not supported from Brook+. You need to change Brook+ runtime code. You can either add a method in brook:: Device class to get CALcontext or directly add counters in Brook+ runtime at kernel exection call(inside CALExecMgr.cpp)
I am new to this forum. I learned a lot about Cache.
edit: advertising link removed
Meenakshi12,
Please don't post advertisements in the forum.