Skip to content

Commit 27c0077

Browse files
authored
[OpenMP][Flang] Adds experimental OpenMP bot (#87)
This bot adds clang and flang frontends to the OpenMP runtime on AMDGPUs. Given the current state of flang, this can still be seen quite experimental. Also, this relies on a new worker that is not yet connected.
1 parent 8a17534 commit 27c0077

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

buildbot/osuosl/master/config/builders.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,6 +1823,32 @@
18231823
add_lit_checks=["check-clang", "check-llvm", "check-lld", "check-libc"]
18241824
)},
18251825

1826+
{'name' : "openmp-offload-amdgpu-clang-flang",
1827+
'tags' : ["openmp,flang"],
1828+
'workernames' : ["rocm-worker-hw-01"],
1829+
'builddir': "openmp-offload-amdgpu-clang-flang",
1830+
'factory' : OpenMPBuilder.getOpenMPCMakeBuildFactory(
1831+
clean=True,
1832+
enable_runtimes=['openmp'],
1833+
depends_on_projects=['llvm','clang','lld','openmp','flang'],
1834+
extraCmakeArgs=[
1835+
"-DCMAKE_BUILD_TYPE=Release",
1836+
"-DCLANG_DEFAULT_LINKER=lld",
1837+
"-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU",
1838+
"-DLLVM_ENABLE_ASSERTIONS=ON",
1839+
"-DLLVM_ENABLE_RUNTIMES=openmp",
1840+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
1841+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
1842+
],
1843+
install=True,
1844+
testsuite=False,
1845+
testsuite_sollvevv=False,
1846+
extraTestsuiteCmakeArgs=[
1847+
"-DTEST_SUITE_SOLLVEVV_OFFLOADING_CFLAGS=-fopenmp-targets=amdgcn-amd-amdhsa;-Xopenmp-target=amdgcn-amd-amdhsa",
1848+
"-DTEST_SUITE_SOLLVEVV_OFFLOADING_LDLAGS=-fopenmp-targets=amdgcn-amd-amdhsa;-Xopenmp-target=amdgcn-amd-amdhsa",
1849+
],
1850+
)},
1851+
18261852

18271853
# Whole-toolchain builders.
18281854

buildbot/osuosl/master/config/workers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ def get_all():
298298
create_worker("omp-vega20-0", properties={'jobs': 32}, max_builds=1),
299299
create_worker("omp-vega20-1", properties={'jobs': 32}, max_builds=1),
300300

301+
# Flang OpenMP on AMDGPU, Ubuntu 22.04.3, AMD(R) EPYC 9354 @ 2.5GHz with 512GB Memory, 1 MI210 GPU with 64GB Memory
302+
create_worker("rocm-worker-hw-01", properties={'jobs': 64}, max_builds=1),
303+
301304
# AMD ROCm support, Ubuntu 18.04.6, AMD Ryzen @ 1.5 GHz, MI200 GPU
302305
create_worker("mi200-buildbot", max_builds=1),
303306

0 commit comments

Comments
 (0)