Added option to enable check of kernel launch