modify ngpu; add some comments; commit before further modification