Removed max_cus() from Device, used device->gpu->cus() instead

This commit is contained in:
Trung Nguyen
2022-10-07 15:50:30 -05:00
parent 6b9e83fe20
commit 00f46120c7
5 changed files with 9 additions and 12 deletions

View File

@ -214,7 +214,6 @@ int DeviceT::init_device(MPI_Comm world, MPI_Comm replica, const int ngpu,
}
}
_first_device = _last_device = best_device;
_max_cus = best_cus;
type = gpu->device_type(_first_device);
if (ndevices > 0) {