Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note on data types possibly not being the same across devices #515

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions spec/API_specification/data_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ The default integer data type should be the same across platforms, but the defau

The default array index data type may be ``int32`` on 32-bit platforms, but the default should be ``int64`` otherwise.

Note that it is possible that a library supports multiple devices, with not all
those device types supporting the same data types. In this case, the default
integer or floating-point data types may vary with device. If that is the case,
the library should clearly warn about this in its documentation.

.. note::
The default data types should be clearly defined in a conforming library's documentation.

Expand Down