I tried , but it has no effect .Same errors reported . input_fun.c:42:1: error: unknown type name '__kernel' input_fun.c:42:26: error: unknown type name '__global' -- View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-OpenCL-support-tp4034650p4034774.html Sent from the Clang Developers mailing list archive at Nabble.com.