void function ( ) { if ( deviceChanged && hostChanged ) throw new RuntimeException ( "srini_string" ) ; if ( hostChanged ) { push ( ) ; hostChanged = false ; } }
call this method before you want to run a device operation . concode_field_sep boolean hostChanged concode_elem_sep CLContext context concode_elem_sep boolean debug concode_elem_sep CLBuffer<FloatBuffer> fBuffer concode_elem_sep float[] linearHostMemory concode_elem_sep CLDevice device concode_elem_sep boolean deviceChanged concode_field_sep float[] getBuffer concode_elem_sep void release concode_elem_sep void copyFromLinearHostMemory concode_elem_sep CLDevice getCLDevice concode_elem_sep void push concode_elem_sep void pull concode_elem_sep void copyToLinearHostMemory concode_elem_sep void prepareForHostOperation concode_elem_sep void notifyHostChange concode_elem_sep CLBuffer<FloatBuffer> getCLBuffer concode_elem_sep void notifyDeviceChange concode_elem_sep CLContext getCLContext concode_elem_sep void close