[all-commits] [llvm/llvm-project] 932316: [OpenMP] Add more pass-through functions in DeviceTy

Ye Luo via All-commits all-commits at lists.llvm.org
Mon Jul 27 13:08:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 932316660179c1273e365d9dbbe648478bc5c4f1
      https://github.com/llvm/llvm-project/commit/932316660179c1273e365d9dbbe648478bc5c4f1
  Author: Ye Luo <yeluo at anl.gov>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M openmp/libomptarget/src/api.cpp
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/src/device.h
    M openmp/libomptarget/src/omptarget.cpp
    M openmp/libomptarget/src/rtl.h

  Log Message:
  -----------
  [OpenMP] Add more pass-through functions in DeviceTy

Summary:
1. Add DeviceTy::data_alloc, DeviceTy::data_delete, DeviceTy::data_alloc, DeviceTy::synchronize pass-through functions. Avoid directly accessing Device.RTL
2. Fix the type of the first argument of synchronize_ty in rth.h, device id is int32_t which is consistent with other functions.

Reviewers: tianshilei1992, jdoerfert

Reviewed By: tianshilei1992

Subscribers: yaxunl, guansong, sstefan1, openmp-commits

Tags: #openmp

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




More information about the All-commits mailing list