[all-commits] [llvm/llvm-project] bb0166: [libomptarget] Update device pointer only if needed
George Rokos via All-commits
all-commits at lists.llvm.org
Tue Jul 13 04:23:38 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb0166dc72791e2cefdb0c8dc9e495ea0555357b
https://github.com/llvm/llvm-project/commit/bb0166dc72791e2cefdb0c8dc9e495ea0555357b
Author: George Rokos <georgios.rokos at intel.com>
Date: 2021-07-13 (Tue, 13 Jul 2021)
Changed paths:
M openmp/libomptarget/src/omptarget.cpp
A openmp/libomptarget/test/mapping/device_ptr_update.c
Log Message:
-----------
[libomptarget] Update device pointer only if needed
Currently, libomptarget will always perform a host-to-device memory transfer in
order to update the device pointer of a PTR_AND_OBJ entry. This is not always
necessary because the device pointer may have been set to the correct pointee
address already, so we can eliminate the redundant memory transfer.
More information about the All-commits
mailing list