[PATCH] D124721: [OpenMP] Allow compiling multiple target architectures with OpenMP
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 2 15:36:01 PDT 2022
tra added a comment.
================
Comment at: clang/test/Driver/openmp-offload-gpu-new.c:56
+
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp \
+// RUN: -fopenmp-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa -Xopenmp-target=nvptx64-nvidia-cuda --offload-arch=sm_70 \
----------------
You may want to add a test that when no `--offload-arch=` is specified, driver makes a reasonable default choice for both nvptx and amdgpu.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124721/new/
https://reviews.llvm.org/D124721
More information about the cfe-commits
mailing list