Skip to content

Commit

Permalink
[Offload]: Skip copying of unused kernel-mapped data
Browse files Browse the repository at this point in the history
  • Loading branch information
pradt2 committed Feb 13, 2025
1 parent 153b3f9 commit de77e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offload/libomptarget/omptarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ static std::unique_ptr<int64_t[]> maskRedundantTransfers(DeviceTy &Device, int32

tgt_map_type ArgType = (tgt_map_type) ArgTypes[I];

bool IsArgUnused = true;
bool IsArgUnused = false;

// Check for unused `map(buf[0:size])` mappings
IsArgUnused |= isArgUnused(ArgType);
Expand Down

0 comments on commit de77e4b

Please sign in to comment.