out.println("program id: "+program);
checkError("on clCreateProgramWithSource", intBuffer.get(0));
// tests if the callback is called
final CountDownLatch latch = new CountDownLatch(1);
BuildProgramCallback callback = new BuildProgramCallback() {
@Override
public void buildFinished(long cl_program) {
try{
assertEquals(program, cl_program);
}finally{