[cfe-dev] [RFC] Unified offloading option for CUDA/HIP/OpenMP

Ben Boeckel via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 14 13:00:34 PST 2020

On Mon, Dec 14, 2020 at 20:20:55 +0000, Doerfert, Johannes via cfe-dev wrote:
> Allow to pass the kind + triple + arch as first part of the new -offload
> flag and any options as a second part, so:
>   -offload=hip-amd-gfx906
> works but also does
>   -offload="amd-gfx906 -fvectorize" -x hip
> as well as
>   -offload="amd -march=gfx906 -fno-vectorize" -fopenmp
> This will make it way easier to use.

Wouldn't having flags like `-Xoffload_amd` to contextualize the next
argument better match the behavior with multiple `-arch` flags using


More information about the cfe-dev mailing list