set init_flag after init, only check when some gpus are found