Skip to content

Copying from device with float64 support to device without float64 support failed #1046

Closed
@npolina4

Description

@npolina4
import dpctl.tensor as dpt

#Default type is float64.
Xcpu = dpt.ones(4, device="cpu")

#GPU without float64 support. Should have been cast to dtype float32, but failed.
dpt.asarray(Xcpu, device="gpu")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions