Skip to content

[Driver][AMDGPU] Restore ROCm include paths for OpenMP offload#3064

Merged
ronlieb merged 1 commit into
amd-stagingfrom
amd/dev/ro-i/fix-driver-include
Jun 25, 2026
Merged

[Driver][AMDGPU] Restore ROCm include paths for OpenMP offload#3064
ronlieb merged 1 commit into
amd-stagingfrom
amd/dev/ro-i/fix-driver-include

Conversation

@ro-i

@ro-i ro-i commented Jun 25, 2026

Copy link
Copy Markdown

AMDGPUOpenMPToolChain::AddClangSystemIncludeArgs stopped adding the ROCm include directories, so OpenMP offload code that includes HIP headers (e.g. <hip/hip_runtime.h>) failed to compile. Re-add /include, /lib/llvm/include and the cuda_wrappers dir.

Fixes issue from 1967549

AMDGPUOpenMPToolChain::AddClangSystemIncludeArgs stopped adding the ROCm
include directories, so OpenMP offload code that includes HIP headers
(e.g. <hip/hip_runtime.h>) failed to compile. Re-add <root>/include,
<root>/lib/llvm/include and the cuda_wrappers dir.
@ro-i ro-i requested a review from ronlieb June 25, 2026 14:48
@ronlieb ronlieb merged commit 218c752 into amd-staging Jun 25, 2026
54 of 58 checks passed
@ronlieb ronlieb deleted the amd/dev/ro-i/fix-driver-include branch June 25, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants