[all-commits] [llvm/llvm-project] 471f2a: [Libomptarget] Add checks for AMDGPU TargetID usin...

Saiyedul Islam via All-commits all-commits at lists.llvm.org
Mon Jul 25 02:45:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 471f2abc62d96b3ef97e13f4f7be2d386fc9f75f
      https://github.com/llvm/llvm-project/commit/471f2abc62d96b3ef97e13f4f7be2d386fc9f75f
  Author: Saiyedul Islam <Saiyedul.Islam at amd.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.h
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [Libomptarget] Add checks for AMDGPU TargetID using new image info

This patch extends the is_valid_binary routine to also check if the
binary's target ID matches the one parsed from the system's runtime
environment.
This should allow us to only use the binary whose compute capability
matches, allowing us to support basic multi-architecture binaries for
AMDGPU.
It also handles compatibility testing of target IDs of the image and
the enviornment.

Depends on D127432

Differential Revision: https://reviews.llvm.org/D127769




More information about the All-commits mailing list