opencl global sync test code