[llvm] [Offload][CI] Enable offload runtime (PR #174955)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 11:27:51 PST 2026
https://github.com/jplehr updated https://github.com/llvm/llvm-project/pull/174955
>From 1a4540885dc2b1d04b8c1f3849438d1aa08d6c88 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Thu, 8 Jan 2026 05:55:56 -0600
Subject: [PATCH 1/6] [Offload][CI] Enable offload runtime
Offload and OpenMP have been disabled in pre-commit build and test for
quite some time. Recently, some CMake changes were made and the build
command in premerge testing seems to have changed.
This is to take another swing at enabling openmp and offload, at least,
for building in premerge test.
---
.ci/compute_projects.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 9c2a9bc15cce9..5de395e6cc0dd 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -32,6 +32,7 @@
"lld": {"llvm"},
"mlir": {"llvm"},
"polly": {"llvm"},
+ "offload": {"llvm", "clang", "lld", "flang"},
}
# This mapping describes the additional projects that should be tested when a
@@ -83,6 +84,8 @@
"compiler-rt": {"compiler-rt"},
"flang": {"flang-rt"},
"flang-rt": {"flang-rt"},
+ "openmp": {"openmp"},
+ "offload": {"offload", "openmp"},
".ci": {"compiler-rt", "libc", "flang-rt"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
@@ -93,7 +96,7 @@
EXCLUDE_LINUX = {
"cross-project-tests", # TODO(issues/132796): Tests are failing.
- "openmp", # https://github.com/google/llvm-premerge-checks/issues/410
+ #"openmp", # https://github.com/google/llvm-premerge-checks/issues/410
}
EXCLUDE_WINDOWS = {
@@ -106,6 +109,7 @@
"libcxxabi",
"libunwind",
"flang-rt",
+ "offload",
}
# These are projects that we should test if the project itself is changed but
@@ -127,6 +131,7 @@
"libcxx",
"libcxxabi",
"libunwind",
+ "offload",
}
PROJECT_CHECK_TARGETS = {
@@ -151,9 +156,10 @@
"openmp": "check-openmp",
"polly": "check-polly",
"lit": "check-lit",
+ "offload": "check-offload",
}
-RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc", "flang-rt"}
+RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc", "flang-rt", "openmp", "offload"}
# Meta projects are projects that need explicit handling but do not reside
# in their own top level folder. To add a meta project, the start of the path
>From dc2202ba6ca515563b07e58d4235b825ba4fb1d0 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Thu, 8 Jan 2026 06:33:16 -0600
Subject: [PATCH 2/6] WIP
---
.ci/compute_projects.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 5de395e6cc0dd..2d1210ea25649 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -32,7 +32,7 @@
"lld": {"llvm"},
"mlir": {"llvm"},
"polly": {"llvm"},
- "offload": {"llvm", "clang", "lld", "flang"},
+ "offload": {"clang", "lld", "flang"},
}
# This mapping describes the additional projects that should be tested when a
@@ -67,6 +67,7 @@
"flang",
"libclc",
"openmp",
+ "offload",
},
}
@@ -96,7 +97,6 @@
EXCLUDE_LINUX = {
"cross-project-tests", # TODO(issues/132796): Tests are failing.
- #"openmp", # https://github.com/google/llvm-premerge-checks/issues/410
}
EXCLUDE_WINDOWS = {
>From 18c58d631756ce8877810009455a4c73da40550c Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Thu, 8 Jan 2026 06:53:22 -0600
Subject: [PATCH 3/6] WIP
---
.ci/compute_projects.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 2d1210ea25649..ba5095f56ebf6 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -86,8 +86,8 @@
"flang": {"flang-rt"},
"flang-rt": {"flang-rt"},
"openmp": {"openmp"},
- "offload": {"offload", "openmp"},
- ".ci": {"compiler-rt", "libc", "flang-rt"},
+ "offload": {"offload"},
+ ".ci": {"compiler-rt", "libc", "flang-rt", "openmp", "offload"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
"llvm": {"libcxx", "libcxxabi", "libunwind"},
>From 8fa313a9458aa58eda3999bcccb215321d3c9935 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Thu, 8 Jan 2026 07:08:30 -0600
Subject: [PATCH 4/6] WIP
---
.ci/compute_projects.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index ba5095f56ebf6..a2705a3b4f0f4 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -66,8 +66,6 @@
"polly",
"flang",
"libclc",
- "openmp",
- "offload",
},
}
>From b0632d04d5ff2530a19fe0de18b9770a99257fcb Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Fri, 9 Jan 2026 14:01:26 -0600
Subject: [PATCH 5/6] Update CI tests
---
.ci/compute_projects_test.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py
index fe1bf07eae8ff..c00db5346c730 100644
--- a/.ci/compute_projects_test.py
+++ b/.ci/compute_projects_test.py
@@ -293,11 +293,11 @@ def test_ci(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind;offload;openmp",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
- "check-compiler-rt check-flang-rt check-libc",
+ "check-compiler-rt check-flang-rt check-libc check-offload check-openmp",
)
self.assertEqual(
env_variables["runtimes_check_targets_needs_reconfig"],
@@ -367,11 +367,11 @@ def test_premerge_workflow(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind;offload;openmp",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
- "check-compiler-rt check-flang-rt check-libc",
+ "check-compiler-rt check-flang-rt check-libc check-offload check-openmp",
)
self.assertEqual(
env_variables["runtimes_check_targets_needs_reconfig"],
@@ -402,7 +402,7 @@ def test_third_party_benchmark(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind;offload;openmp",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
>From 86e1150f30cd4c332039cb602928010a3545df5b Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Mon, 16 Feb 2026 13:27:07 -0600
Subject: [PATCH 6/6] Trying to only build not test runtimes
---
.ci/compute_projects.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index a2705a3b4f0f4..afca7338e29c5 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -72,7 +72,11 @@
# This mapping describes runtimes that should be enabled for a specific project,
# but not necessarily run for testing. The only case of this currently is lldb
# which needs some runtimes enabled for tests.
-DEPENDENT_RUNTIMES_TO_BUILD = {"lldb": {"libcxx", "libcxxabi", "libunwind"}}
+DEPENDENT_RUNTIMES_TO_BUILD = {"lldb": {"libcxx", "libcxxabi", "libunwind"},
+ "clang": {"openmp", "offload"},
+ "llvm": {"openmp", "offload"},
+ "lld": {"openmp", "offload"},
+ ".ci": {"openmp", "offload"}}
# This mapping describes runtimes that should be tested when the key project is
# touched.
@@ -83,8 +87,8 @@
"compiler-rt": {"compiler-rt"},
"flang": {"flang-rt"},
"flang-rt": {"flang-rt"},
- "openmp": {"openmp"},
- "offload": {"offload"},
+ # "openmp": {"openmp"},
+ # "offload": {"offload"},
".ci": {"compiler-rt", "libc", "flang-rt", "openmp", "offload"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
@@ -151,10 +155,10 @@
"lld": "check-lld",
"lldb": "check-lldb",
"mlir": "check-mlir",
- "openmp": "check-openmp",
+ # "openmp": "check-openmp",
"polly": "check-polly",
"lit": "check-lit",
- "offload": "check-offload",
+ # "offload": "check-offload",
}
RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc", "flang-rt", "openmp", "offload"}
More information about the llvm-commits
mailing list