mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 17:06:38 +00:00
[Offload][NFC] Rename src/
-> libomptarget/
(#126573)
Summary: The name `src` is confusing when combined with the plugins and the newly added `liboffload`.
This commit is contained in:
parent
feb30f25c0
commit
a854c266b9
@ -377,7 +377,7 @@ add_subdirectory(DeviceRTL)
|
||||
add_subdirectory(tools)
|
||||
|
||||
# Build target agnostic offloading library.
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(libomptarget)
|
||||
|
||||
add_subdirectory(tools/offload-tblgen)
|
||||
add_subdirectory(liboffload)
|
||||
|
@ -655,8 +655,8 @@ EXTERN void *omp_get_mapped_ptr(const void *Ptr, int DeviceNum) {
|
||||
|
||||
int NumDevices = omp_get_initial_device();
|
||||
if (DeviceNum == NumDevices) {
|
||||
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n",
|
||||
DeviceNum, DPxPTR(Ptr));
|
||||
DP("Device %d is initial device, returning Ptr " DPxMOD ".\n", DeviceNum,
|
||||
DPxPTR(Ptr));
|
||||
return const_cast<void *>(Ptr);
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ static KernelArgsTy *upgradeKernelArgs(KernelArgsTy *KernelArgs,
|
||||
|
||||
// FIXME: This is a WA to "calibrate" the bad work done in the front end.
|
||||
// Delete this ugly code after the front end emits proper values.
|
||||
auto CorrectMultiDim = [](uint32_t(&Val)[3]) {
|
||||
auto CorrectMultiDim = [](uint32_t (&Val)[3]) {
|
||||
if (Val[1] == 0)
|
||||
Val[1] = 1;
|
||||
if (Val[2] == 0)
|
Loading…
x
Reference in New Issue
Block a user