bb = program.getBinary(device); } catch (UnsupportedOperationException | OpenCLException ex) { LOG.log(Level.WARNING, "Unable to retrieve the program binaries", ex);
ByteBuffer bb = program.getBinary(device); byte[] bytes = new byte[bb.remaining()]; bb.get(bytes);
bb = program.getBinary(device); } catch (UnsupportedOperationException | OpenCLException ex) { LOG.log(Level.WARNING, "Unable to retrieve the program binaries", ex);