File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
openmp/libomptarget/plugins-nextgen Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4179,12 +4179,12 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
4179
4179
return ;
4180
4180
}
4181
4181
4182
- bool canUseHostGlobals () {
4182
+ bool canUseHostGlobals () override final {
4183
4183
// Check if the HSA_XNACK and OMPX_APU_MAPS are enabled. If unified memory is
4184
4184
// not enabled but both HSA_XNACK and OMPX_APU_MAPS are enabled then we can
4185
4185
// also use globals directly from the host.
4186
4186
bool EnableHostGlobals = false ;
4187
- bool IsZeroCopyOnAPU = Plugin::get (). AreAllocationsForMapsOnApusDisabled ();
4187
+ bool IsZeroCopyOnAPU = AreAllocationsForMapsOnApusDisabled ();
4188
4188
BoolEnvar HSAXnack = BoolEnvar (" HSA_XNACK" , false );
4189
4189
4190
4190
if (IsZeroCopyOnAPU && HSAXnack.get ())
@@ -4193,7 +4193,7 @@ struct AMDGPUPluginTy final : public GenericPluginTy {
4193
4193
// Check if we are on a system that has an APU or on a non-APU system
4194
4194
// where unified shared memory can be enabled:
4195
4195
bool IsUsmSystem =
4196
- Plugin::get (). hasAPUDevice () || Plugin::get (). hasDGpuWithUsmSupport ();
4196
+ hasAPUDevice () || hasDGpuWithUsmSupport ();
4197
4197
4198
4198
// Warn user if there is a mismatch between the request and the system
4199
4199
// architecture:
Original file line number Diff line number Diff line change @@ -1184,7 +1184,7 @@ struct GenericPluginTy {
1184
1184
1185
1185
// / Return true if host globals can be enabled on a system that supprots
1186
1186
// / unified shared memory.
1187
- virtual bool canUseHostGlobals () const { return false ; }
1187
+ virtual bool canUseHostGlobals () { return false ; }
1188
1188
1189
1189
protected:
1190
1190
// / Indicate whether a device id is valid.
You can’t perform that action at this time.
0 commit comments