[all-commits] [llvm/llvm-project] 06adac: [Libomptarget] Configure the RPC port count from t...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Aug 11 10:55:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06adac8c4e26376fb54d87dede3ebce46783010a
      https://github.com/llvm/llvm-project/commit/06adac8c4e26376fb54d87dede3ebce46783010a
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/RPC.cpp
    M openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

  Log Message:
  -----------
  [Libomptarget] Configure the RPC port count from the plugin

This patch allows us to configure the port count to what the specific
card would desire for parallelism. For AMDGPU we need to use the maximum
number of hardware parallelism to avoid deadlocks. For NVPTX we don't
have this problem due to the friendlier scheduler, so we use the number
of warps active on an SM times the number of SMs as a good guess.

Note that the max ports currently is going to be smaller than these
numbers. That will be improved in the future.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list