[all-commits] [llvm/llvm-project] dc81d2: [OpenMP] Fix using the target ID when using the ne...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Jun 7 17:17:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc81d2a4d5b38a82cdc76c41522e61f0de716904
https://github.com/llvm/llvm-project/commit/dc81d2a4d5b38a82cdc76c41522e61f0de716904
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-06-07 (Wed, 07 Jun 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/amdgpu-openmp-toolchain.c
Log Message:
-----------
[OpenMP] Fix using the target ID when using the new driver
AMDGPU sometimes uses a novel formatting for their offloading
architecture called the target id. This merges the attributes and the
architecture name into a single string. Previously, we were passing this
as the canonical architecture name. This caused the linker wrapper to
fail to find relevant libraries and then pass an incalid CPU name. This
patch changes the handling in the offload packager to handle the
canonical architecture and then extract the features.
Reviewed By: yaxunl
Differential Revision: https://reviews.llvm.org/D150998
More information about the All-commits
mailing list