Skip to content

[BUG] Compile source code error for ROCM platform when using #include <hip/hip_bf16.h> #2725

@lhcalibur

Description

@lhcalibur

As mentioned in ##2646

Building for ROCM platform will cause multiple definition error,

This is caused by The function in <hip/hip_bf16.h> being defined without static inline , which will cause multi definition error when using this header file in multi .cu/.hip files.

#ROCm/hip#3403

The error will be fixed in future releases of ROCM, but till ROCM-6.0.2, this has not been fixed yet, maybe we need to find a way to bypass this.

Maybe using hip_bfloat16 instead of __hip_bfloat16? #ROCm/ROCm#2534, but needs some code modification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions