Skip to content

Panic in stats computation on GPU arrays #6937

@connortsui20

Description

@connortsui20

Stats computation can panic if the buffers are on the GPU.


So for me to do this, I have to figure out how to make this code:

        let stats = storage_array.statistics();
        if let Some(min) = stats.compute_min::<i64>() {

copy into a host buffer in order to compute the min stat. Do we need to fix that for the rest of the statistics, or is this just a bug? Shouldn't this compute function handle this internally?

Originally posted by @connortsui20 in #6873 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions