Skip to content

[C++] ExportDeviceArray for C device interface uses CPU memory address for buffers #39782

@jorisvandenbossche

Description

@jorisvandenbossche

The Array exporter currently uses buffer->data(), which is documented as "The buffer has to be a CPU buffer (is_cpu() is true). Otherwise, an assertion may be thrown or a null pointer may be returned.".
In practice, we indeed return null for non-CPU data. There is only a debug check that asserts the device.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions