Hi!
I’m doing the following code:
uchar4 pixel;
#pragma unroll 4
for(i = 0; i < 32; i++)
{
(...)
pixel = tex2D(...)
(...)
}
In Linux (Ubuntu):
→ error: Loop was not unrolled, inline assembly
In Windows (Win7-64):
→ it Compiles and executes perfectly. Moreover, if you see the PTX code, this is unrolled and the loop in ptx have 8 iterations as we are waiting.
I thought that a loop couldn’t be unrolled if it had texture calls but, to Windows don’t mind it! Does Anyone know anything about this?
Thanks in advance,
Regards.