};
// spec: building programs is not threadsafe (see loadtest)
synchronized(CLProgram.class) {
// Build the program
ret = cl.clBuildProgram(program, 0, null, null, callback);
checkError("on clBuildProgram", ret);
out.println("waiting for program to build...");
latch.await();
}