Skip to content

Should we handle zero-size matirx/vector normally? #1953

@yhmtsai

Description

@yhmtsai

In our test, we test the behavior when the matrix is zero-size/zero-column/zero-row.
GPU kernel does not accept grid or block = zero more restrictedly now.
They make it semi-implicit error.
They give invalid configuration error but not from the kernel call, so we can not wrap the kernel call into macro to check the return like the other API.
(Maybe I miss the standard way to validate the grid/block setup?)

Should we still make them perform normally, which might changes something but disable the kernel with zero size?
I am thinking make it explicit error in core interface and do not deal zero-size in the kernel level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions