add init code for ocl