Skip to content

[C++] Compute functions should fail gracefully when given non-CPU resident Arrays #43541

@felipecrv

Description

@felipecrv

Describe the bug, including details regarding any error messages, version, and platform.

Instead of segfaulting, they should return a bad Status.

And ideally: kernels should spec which device allocation types they accept for each parameter. This allows generic checking right before execution. Similar to how types are checked during the dispatching phase.

Related issues:

Related PRs:

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions