Fix int overflow causing cxx11_tensor_gpu_1 to fail.

It's failing in div_ceil, where the first argument overflows an int to become negative, triggering an assertion and causing the test to crash. By explicitly using DenseIndex and adding appropriate casts when necessary to avoid implicit conversions, we can avoid the error.

Merge request reports

Loading