Skip to content

Commit dbb7ac6

Browse files
committed
[OpenMP] Silence warning.
Change-Id: Icd237a484165b2e72eb234b8d1017fcb2143dc05
1 parent 0ff80e0 commit dbb7ac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/libomptarget/src/PluginManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ void PluginAdaptorTy::initDevices(PluginManager &PM) {
187187

188188
// sanity checks for zero-copy depend on specific devices: request it here
189189
// TODO: check if there are no devices and bail if so.
190-
if (ExclusiveDevicesAccessor->size() > 0 &&
191-
(PM.getRequirements() & OMP_REQ_UNIFIED_SHARED_MEMORY) ||
192-
(PM.getRequirements() & OMPX_REQ_AUTO_ZERO_COPY)) {
190+
if ((ExclusiveDevicesAccessor->size() > 0) &&
191+
((PM.getRequirements() & OMP_REQ_UNIFIED_SHARED_MEMORY) ||
192+
(PM.getRequirements() & OMPX_REQ_AUTO_ZERO_COPY))) {
193193
// APUs are assumed to be a homogeneous set of GPUs: ask
194194
// the first device in the system to run a sanity check.
195195
auto &Device = *(*ExclusiveDevicesAccessor)[0];

0 commit comments

Comments
 (0)