Skip to content

[clang-driver] Default to offload-arch=amdgcnspirv for HIP/AMDGPU compilations #1361

@lamb-j

Description

@lamb-j

Once we enable the SPIRV backend by default, we can update the clang driver to default to amdgcnspirv as the offload-arch whenever we're compiling a HIP file (-x hip) or an AMDGPU triple is provided (--target=amdgcn-amd-amdhsa)

Effectively, clang -x hip file.hip --> clang --offload-arch=amdgcnspirv -x hip file.hip

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