Skip to content

Clarify that default real- or complex-valued floating-point data types may depend on the target device capabilities #508

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

In description of "Default Data Types" in "data_types.rst" we state:

The default real-valued floating-point and complex floating-point data types must be the same across platforms.

Since HW support for floating point data-types varies across devices, and can be queried using dev.has_aspect_fp64 (ref) and dev.has_aspect_fp16 (ref), the real-valued floating-point and complex floating-point data types must either always be "float32" or depend on the capability of the device.

I think having HW capability-tailored default floating-point types is more useful.

This issue is to discuss changing the verbiage in "data_types.rst". From SYCL perspective, it would be appropriate to say

The default real-valued floating-point and complex floating-point data types may depend on capabilities of the target device but must be the same across host platforms.

Here host platform is the platform (Windows/Linux/Mac, etc) of the host portion of SYCL program, i.e. platform of the Python interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions