beta4 problem: "link failed" when compiling a kernel using atomics

Discussion created by mjharvey on Oct 15, 2009
Latest reply on Oct 21, 2009 by riza.guntur
beta4 problem

Compiling the following kernel:

"#pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable
#pragma OPENCL EXTENSION cl_khr_local_int32_base_atomics : enable

__kernel void test( __global int *ptr ) {
        atom_add( ptr, 1 );



Gives the compiler error

"Link failed"

The failure is directly related to the use of atomic operations.

This is with the 64bit Ubuntu 9.04 release.