Diagnose -fopenmp-targets for HIP programs since dual HIP and OpenMP offloading in the same compilation
is currently not supported by HIP toolchain.
Details
Details
- Reviewers
tra jdoerfert - Commits
- rGab5f2b505a07: [HIP] Diagnose -fopenmp-targets for HIP programs
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
680 ms | x64 debian > libomp.lock::omp_init_lock.c |
Event Timeline
clang/lib/Driver/Driver.cpp | ||
---|---|---|
704 | I think "unsupported" here is a bit misleading. We need something along the lines of "option X can't be used with option Y". I think err_drv_argument_not_allowed_with might be a better choice. |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
704 | That is for two conflicting options. However, HIP may be specified by input file extension instead of -x option. Another issue is that this is unsupported option for HIP, not option argument. How about unsupported option '%1' for HIP language mode |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
704 | SGTM. |
I think "unsupported" here is a bit misleading. We need something along the lines of "option X can't be used with option Y".
I think err_drv_argument_not_allowed_with might be a better choice.