6 Replies Latest reply on Jan 13, 2010 4:17 PM by brNX

    Number error clBuildProgram = -11    Link failed

    brNX

      this kernel runs fine with the cpu but with the gpu I get a "Link failed" error when executing clBuildProgram, any ideas why ? Sorry if I'm missing something obvious

      ati radeon 4850 , ubuntu 9.10

      #define BSWAP_64(x) (((ulong4)(x) <<(ulong4) 56) | \ (((ulong4)(x) <<(ulong4) 40) & (ulong4)0xff000000000000UL) | \ (((ulong4)(x) <<(ulong4) 24) & (ulong4)0xff0000000000UL) | \ (((ulong4)(x) <<(ulong4) 8) & (ulong4)0xff00000000UL) | \ (((ulong4)(x) >>(ulong4) 8) & (ulong4)0xff000000UL) | \ (((ulong4)(x) >>(ulong4) 24) & (ulong4)0xff0000UL) | \ (((ulong4)(x) >> (ulong4) 40) & (ulong4) 0xff00UL) | \ ((ulong4)(x) >> (ulong4) 56)) __kernel void DES( __global ulong4 * pInput, __constant ulong * pSubkeys, int nNumElements) { const uint index = get_global_id(0); if(index>=nNumElements) return; ulong4 plain; plain = BSWAP_64(pInput[index]); pInput[index] = plain; }