Removed max_cus() from Device, used device->gpu->cus() instead
This commit is contained in:
@ -619,10 +619,10 @@ int HippoT::polar_real(const int eflag, const int vflag) {
|
||||
int nbor_pitch=this->nbor->nbor_pitch();
|
||||
|
||||
// Compute the block size and grid size to keep all cores busy
|
||||
const int max_cus = this->device->max_cus();
|
||||
const int cus = this->device->gpu->cus();
|
||||
int BX=this->block_size();
|
||||
int GX=static_cast<int>(ceil(static_cast<double>(ainum)/(BX/this->_threads_per_atom)));
|
||||
while (GX < max_cus) {
|
||||
while (GX < cus) {
|
||||
BX /= 2;
|
||||
GX=static_cast<int>(ceil(static_cast<double>(ainum)/(BX/this->_threads_per_atom)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user