check numbers of gpus available when calculting nb_commands_per_nodes