mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Less aggressive defaults for VTK-m compared to summit.
Since we don't have per system checks currently built into vtk-m we can't use the tuned values for Summit, as they don't run on all our hardware.
This commit is contained in:
parent
3879479185
commit
6cdf6cb672
@ -110,7 +110,7 @@ void DeviceAdapterAlgorithm<vtkm::cont::DeviceAdapterTagCuda>::GetGridsAndBlocks
|
||||
int deviceId;
|
||||
VTKM_CUDA_CALL(cudaGetDevice(&deviceId)); //get deviceid from cuda
|
||||
grids = 32 * cuda::internal::getNumSMs(deviceId);
|
||||
blocks = 512;
|
||||
blocks = 128;
|
||||
}
|
||||
|
||||
void DeviceAdapterAlgorithm<vtkm::cont::DeviceAdapterTagCuda>::GetGridsAndBlocks(
|
||||
@ -125,14 +125,14 @@ void DeviceAdapterAlgorithm<vtkm::cont::DeviceAdapterTagCuda>::GetGridsAndBlocks
|
||||
if (size.x == 0)
|
||||
{ //grids that have no x dimension
|
||||
blocks.x = 1;
|
||||
blocks.y = 16;
|
||||
blocks.z = 16;
|
||||
blocks.y = 8;
|
||||
blocks.z = 8;
|
||||
}
|
||||
else if (size.x > 128)
|
||||
{
|
||||
blocks.x = 8;
|
||||
blocks.y = 8;
|
||||
blocks.z = 8;
|
||||
blocks.z = 4;
|
||||
}
|
||||
else
|
||||
{ //for really small grids
|
||||
|
Loading…
Reference in New Issue
Block a user