Closed XiaLuNV closed 9 months ago
This doesn't have to do with the initialization of an array. It's just that the "logical" case in the TRANSPOSE_COPY_2D
task is unreachable code currently, because both places where it's invoked pass logical=False
:
@magnatelee should we get rid of the "logical" case? Otherwise maybe we add a way to test it.
I think we should. I remember we had a use case for the physical code path at some point, but I suspect that got replaced with the code using a transpose
transformation.
Should be fixed by #1113
I'am working on the C++ coverage for transpose, found that
transpose_2d_logical
was skipped.Codes in cunumeric/cunumeric/array.py ,in the initialization method,
Codes in cunumeric/cunumeric/runtime.py,
find_or_create_array_thunk
has these codes:the
optimize_scalar
is set to False, did this mean the Array is stored in physical way and thelogical
value in structTransposeImplBody
(src/cunumeric/matrix/transpose.cu) is False, so it only callstranspose_2d_physical
and skipstranspose_2d_logical
.Codes in src/cunumeric/matrix/transpose.cu: