File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ void PluginAdaptorTy::initDevices(PluginManager &PM) {
187
187
188
188
// sanity checks for zero-copy depend on specific devices: request it here
189
189
// 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) )) {
193
193
// APUs are assumed to be a homogeneous set of GPUs: ask
194
194
// the first device in the system to run a sanity check.
195
195
auto &Device = *(*ExclusiveDevicesAccessor)[0 ];
You can’t perform that action at this time.
0 commit comments