refactored

This commit is contained in:
Chao Liu
2019-05-02 14:49:20 -05:00
parent 4a99f54c31
commit 4957d5a399
7 changed files with 52 additions and 76 deletions

View File

@@ -23,11 +23,7 @@ struct ConstantMatrixDescriptor
__host__ __device__ index_t Get1dIndex(index_t irow, index_t icol) const
{
#if DEVICE_BACKEND_HIP
return __mul24(irow, RowStride_) + icol;
#else
return irow * RowStride_ + icol;
#endif
}
template <index_t SubNRow, index_t SubNCol>