Kernels: Now SizeType is always "int". Right now I don't expect data-structure to have more than 2**31 entries. Improves performance on a number of routines.

This commit is contained in:
Philippe Tillet
2015-08-11 11:50:49 -07:00
parent f06c85c97c
commit b5cc1f7ddc
3 changed files with 35 additions and 54 deletions

View File

@@ -22,10 +22,13 @@ static inline std::string size_type(driver::Device const & device)
switch(device.backend())
{
#ifdef ISAAC_WITH_CUDA
case driver::CUDA: return "int";
case driver::CUDA:
return "int";
#endif
case driver::OPENCL: return device.address_bits()==32?"int":"long";
default: throw;
case driver::OPENCL:
return "int";
default:
throw;
}
}