cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

tuxfan
Journeyman III

clGetProgramBuildInfo question

Hi,

I get some output from clGetProgramBuildInfo that is confusing.  I'm using the "#pragma unroll" pragma in a kernel, and the build log has the following:

LOOP UNROLL: pragma unroll (line 67)

    Unrolled as requested!

LOOP UNROLL: pragma unroll (line 67)

    Not unrolled because its trip count is unknown!

I'm just wondering which line to believe... 😉

0 Likes
2 Replies

Interesting,

Do you have an example you can share so we can analyze and fix this?

Micah

0 Likes

Micah,

I'll have to try to come up with a reproducible example that I can give away publicly (I work for a government lab).  I resolved the problem by statically specifying the block size for the loop that I wanted to unroll, so the output was helpful in spite of my confusion.

0 Likes