[OpenMP] Force initialization of global device environment
Summary: This causes issues when we omit this, which requires a constructor from an incompatible address space and bad things happen.
This commit is contained in:
parent
f6e050c5f8
commit
3219f1a5ce
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ using namespace ompx;
|
|||
// This variable should be visible to the plugin so we override the default
|
||||
// hidden visibility.
|
||||
[[gnu::used, gnu::retain, gnu::weak,
|
||||
gnu::visibility(
|
||||
"protected")]] Constant<DeviceEnvironmentTy> __omp_rtl_device_environment;
|
||||
gnu::visibility("protected")]] Constant<DeviceEnvironmentTy>
|
||||
__omp_rtl_device_environment{};
|
||||
|
||||
uint32_t config::getAssumeTeamsOversubscription() {
|
||||
return __omp_rtl_assume_teams_oversubscription;
|
||||
|
|
|
|||
Loading…
Reference in a new issue