cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bubu
Adept II

unroll pragma?

Is there any "pragma unroll" to control the loops as CUDA does?

 

thx

0 Likes
3 Replies
omkaranathan
Adept I

Currently no.

0 Likes

Can I use the mod op for this?

Example:

 

void myFunc ( const int n )

{

   int i;

   for ( i=0; i<n%16; ++i ) // %16 because "n" should never be greater than 16

  {

     ....

  }

}

0 Likes

You should not be facing any issue with this.

0 Likes