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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user