[all-commits] [llvm/llvm-project] aa616e: [libomptarget][AMDGPU][NFC] Split atmi_memcpy for ...

pdhaliwal-amd via All-commits all-commits at lists.llvm.org
Tue Oct 20 03:29:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aa616efbb34e6321c0f24f61e017efdcf398ba04
      https://github.com/llvm/llvm-project/commit/aa616efbb34e6321c0f24f61e017efdcf398ba04
  Author: Pushpinder Singh <Pushpinder.Singh at amd.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/impl/atmi.cpp
    M openmp/libomptarget/plugins/amdgpu/impl/atmi_runtime.h
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [libomptarget][AMDGPU][NFC] Split atmi_memcpy for h2d and d2h

The calls to atmi_memcpy presently determine the direction of copy (host to
device or device to host) by storing pointers in a map during malloc and
looking up the pointers during memcpy. As each call site already knows the
direction, this stash+lookup can be eliminated.

This NFC will be followed by a functional one that deletes those map lookups.

Reviewed By: JonChesterfield

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

Change-Id: I1d9089bc1e56b3a9a30e334735fa07dee1f84990




More information about the All-commits mailing list