Landing: 2468c79741f9
Project / Subsystem
gcc / openmp
Date
2026-07-15
Author
Tobias Burnus
Commit
2468c79741f97c2aa0cbb4baaccb86fd4a150910
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- openmp
- patch_id
- —
- commit_hash
- 2468c79741f97c2aa0cbb4baaccb86fd4a150910
- source_type
- github
- headline
- OpenMP: Handle 'device_type(host)' on 'target'
- tldr
- OpenMP 'target' directive with 'device_type(host)' now correctly prevents offload code generation.
- author
- Tobias Burnus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • openmp
- • offload
- • parallelism
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-15T00:00:00.000Z
The OpenMP runtime now correctly handles the device_type(host) clause on target directives by ensuring that no offload code is generated for the outlined region. This clause is also honored for implicit declare target directives. Code executed under this clause runs as if device(omp_initial_device) was specified, ensuring correct behavior even when offloading is mandatory.