-
Notifications
You must be signed in to change notification settings - Fork 14.2k
[openmp] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES #124711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
We plan to make this a hard error in the LLVM 21 release. Link llvm#124014
@llvm/pr-subscribers-openmp Author: Petr Hosek (petrhosek) ChangesWe plan to make this a hard error in the LLVM 21 release. Link #124014 Full diff: https://github.com/llvm/llvm-project/pull/124711.diff 1 Files Affected:
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index c9ff3696e22d69..4cb4e90fa5c7e8 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -164,6 +164,13 @@ if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
"https://compiler-rt.llvm.org/ for building the runtimes.")
endif()
+if ("openmp" IN_LIST LLVM_ENABLE_PROJECTS)
+ message(WARNING "Using LLVM_ENABLE_PROJECTS=openmp is deprecated now, and will "
+ "become a fatal error in the LLVM 21 release. Please use "
+ "-DLLVM_ENABLE_RUNTIMES=openmp or see the instructions at "
+ "https://openmp.llvm.org/ for building the runtimes.")
+endif()
+
# Select the runtimes to build
#
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes
|
Flang currently only works with llvm-project/flang/tools/f18/CMakeLists.txt Lines 144 to 164 in 6d0dd3d
Cannot remove it before Flang also supports LLVM_ENABLE_RUNTIMES=openmp |
Thank you for putting this up. I think I understand the motivation, however, from the issue you linked, I do not get the sense of urgent and strong support of this direction right now. I also wondered who "we" refers to. I think this should be discussed a bit more, and I do not see the need to put us on this tight timeline right away. |
Why does |
I believe this comes from Fortran module ( |
I figured it was just like |
For Flang to support OpenMP,
so Flang needs to know the location of the generated file. I don't know where ideally the location for the build rules and |
I'm afraid this is not true in the first place. My nightly tests builds openmp as runtime and I'm using flang+openmp to test my applications. |
Where do you get |
from last night
|
The line llvm-project/flang/tools/f18/CMakeLists.txt Line 150 in 6d0dd3d
${CMAKE_BINARY_DIR}/runtimes/runtimes-bins/openmp/runtime/src/omp_lib.F90 (assuming LLVM_RUNTIME_TARGETS=default ).
|
I have been overseeing something. There is a second set of build instructions at However, they are emitted into |
Adding the missing dependency in #130975. After that, I don't see any remaining issue for deprecating LLVM_ENABLE_PROJECTS=openmp. |
We plan to make this a hard error in the LLVM 21 release.
Link #124014