cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

priti
Journeyman III

Regarding abt kernel function of brook+.

Can we add two or more kernel functions to Brook+??????

0 Likes
5 Replies
gaurav_garg
Adept I

I don't understand your question. Can you explain a little more?

0 Likes

We are having  kernel functions for stream programming such as

kernel void sum( int a<>, int b<>, out int c<>
{
        c=a+b;
}

Can we have such multiple functions in one program???

 

0 Likes

Yes, you can.

0 Likes

How the progm works??

Is it working serially???

 

0 Likes

Let say you are calling two kernels

kernel1(...)

kernel2(...)

If there is any dependence of kernel2 on on output streams of kernel1. kernel2 will wait for kernel1 to finish.

If there is no dependence both can run independently. But, crrent driver has limitation of running only a single kernel at a time. So, it is always going to work serially.

0 Likes