Skip to content

Commit b0906fd

Browse files
authored
[Offload] Adds offload-runtime buildbot (#149)
This adds a new worker for AMD GPU workloads and uses that worker for the new offload-runtime buildbot. That builder is in preparation for landing llvm/llvm-project#75125. The builder enables clang and flang frontend together with the runtimes 'offload' and 'openmp' to build host-side OpenMP and GPU offloading OpenMP. It runs 'check-openmp' for host-side tests, 'check-clang' and 'check-flang' for frontend/codegen tests and 'check-offload' for runtime offloading tests.
1 parent 974536f commit b0906fd

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

buildbot/osuosl/master/config/builders.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,36 @@
18591859
"-DTEST_SUITE_SOLLVEVV_OFFLOADING_LDLAGS=-fopenmp-targets=amdgcn-amd-amdhsa;-Xopenmp-target=amdgcn-amd-amdhsa",
18601860
],
18611861
add_openmp_lit_args=["--time-tests", "--timeout 100"],
1862+
)},
1863+
1864+
{'name' : "offload-runtime-openmp-amdgpu",
1865+
'tags' : ["openmp"],
1866+
'workernames' : ["rocm-worker-hw-03"],
1867+
'builddir': "offload-runtime-openmp-amdgpu",
1868+
'factory' : OpenMPBuilder.getOpenMPCMakeBuildFactory(
1869+
clean=True,
1870+
enable_runtimes=['openmp', 'offload'],
1871+
depends_on_projects=['llvm', 'clang', 'flang', 'lld', 'openmp'],
1872+
extraCmakeArgs=[
1873+
"-DCMAKE_BUILD_TYPE=Release",
1874+
"-DCLANG_DEFAULT_LINKER=lld",
1875+
"-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU",
1876+
"-DLLVM_ENABLE_ASSERTIONS=ON",
1877+
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
1878+
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
1879+
],
1880+
env={
1881+
'HSA_ENABLE_SDMA':'0',
1882+
},
1883+
install=True,
1884+
testsuite=False,
1885+
testsuite_sollvevv=False,
1886+
extraTestsuiteCmakeArgs=[
1887+
"-DTEST_SUITE_SOLLVEVV_OFFLOADING_CFLAGS=-fopenmp-targets=amdgcn-amd-amdhsa;-Xopenmp-target=amdgcn-amd-amdhsa",
1888+
"-DTEST_SUITE_SOLLVEVV_OFFLOADING_LDLAGS=-fopenmp-targets=amdgcn-amd-amdhsa;-Xopenmp-target=amdgcn-amd-amdhsa",
1889+
],
1890+
add_lit_checks=["check-clang", "check-flang", "check-offload"],
1891+
add_openmp_lit_args=["--time-tests", "--timeout 100"],
18621892
)},
18631893

18641894
{'name' : "openmp-offload-libc-amdgpu-runtime",

buildbot/osuosl/master/config/workers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ def get_all():
313313
# Flang OpenMP on AMDGPU, Ubuntu 22.04.3, AMD(R) EPYC 9354 @ 2.5GHz with 512GB Memory, 1 MI210 GPU with 64GB Memory
314314
create_worker("rocm-worker-hw-01", properties={'jobs': 64}, max_builds=1),
315315
create_worker("rocm-worker-hw-02", properties={'jobs': 64}, max_builds=1),
316+
create_worker("rocm-worker-hw-03", properties={'jobs': 64}, max_builds=1),
316317
create_worker("rocm-worker-hw-04-sles", properties={'jobs': 32}, max_builds=1),
317318

318319
# AMD ROCm support, Ubuntu 18.04.6, AMD Ryzen @ 1.5 GHz, MI200 GPU

0 commit comments

Comments
 (0)