Added settings code to read OMP_TARGET_OFFLOAD environment variable. Added target-offload-var ICV as kmp_target_offload, set via OMP_TARGET_OFFLOAD, if available, otherwise defaulting to DEFAULT. Valid values for the ICV are specified as enum values {0,1,2} for disabled, default, and mandatory. An internal API access function kmpc_get_target_offload is provided.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
runtime/src/dllexports | ||
---|---|---|
406 ↗ | (On Diff #138747) | I know this looks a bit funny, but we have another patch on the way to clean this up and put this properly under 5.0. %ifdef. |
Comment Actions
Question: If the ICV is set to DEFAULT, then libomptarget must change it to either MANDATORY (if there are available devices in the system) or DISABLED (if there are no devices). Should libomptarget notify libomp about this change?