Closed qy3u closed 1 year ago
Hi! I have noticed that scalars argument in the pippenger funciton has a type of const scalar_t* https://github.com/supranational/sppark/blob/d9670078e40684c43903b2d8b0645f11d0f00b05/msm/pippenger.cuh#L44-L45
scalars
const scalar_t*
but the elements of scalars will be convert to scalar_T and write back inplace in the pippenger function. https://github.com/supranational/sppark/blob/d9670078e40684c43903b2d8b0645f11d0f00b05/msm/pippenger.cuh#L158-L176
scalar_T
After the pippenger function executed, scalars are not the same as before. The type definition of scalars may be a little misleading.
I'll fix this at next occasion. Thanks!
Hi! I have noticed that
scalars
argument in the pippenger funciton has a type ofconst scalar_t*
https://github.com/supranational/sppark/blob/d9670078e40684c43903b2d8b0645f11d0f00b05/msm/pippenger.cuh#L44-L45but the elements of
scalars
will be convert toscalar_T
and write back inplace in the pippenger function. https://github.com/supranational/sppark/blob/d9670078e40684c43903b2d8b0645f11d0f00b05/msm/pippenger.cuh#L158-L176After the pippenger function executed, scalars are not the same as before. The type definition of
scalars
may be a little misleading.