Added validation for mygpu index in init_ocl_gpu