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

Saiyedul Islam via All-commits all-commits at lists.llvm.org
Tue Jul 26 00:45:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4075a811ad99b7e263b8b99954cef8c96b042e22
      https://github.com/llvm/llvm-project/commit/4075a811ad99b7e263b8b99954cef8c96b042e22
  Author: Saiyedul Islam <Saiyedul.Islam at amd.com>
  Date:   2022-07-26 (Tue, 26 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

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list