From 2676aedf9effd66ef25fee1da7002e1a1bda3863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Mon, 15 Dec 2025 15:16:44 +0100 Subject: [PATCH 1/2] [HIP] Enable SPIRV backend when testing HIP --- zorg/buildbot/builders/annotated/hip-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zorg/buildbot/builders/annotated/hip-build.sh b/zorg/buildbot/builders/annotated/hip-build.sh index 83b4b095e..fa31c97c3 100755 --- a/zorg/buildbot/builders/annotated/hip-build.sh +++ b/zorg/buildbot/builders/annotated/hip-build.sh @@ -84,7 +84,7 @@ cmake -G Ninja \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_VERBOSE_MAKEFILE=1 \ - -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" \ + -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86;SPIRV" \ -DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" \ -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind" \ -DCLANG_DEFAULT_LINKER=lld \ From 56d30a7535e69fd68607812c86d3719d134f485b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Mon, 15 Dec 2025 15:27:13 +0100 Subject: [PATCH 2/2] [HIP] Add clang-hip-spirv builder This is pretty much a "I have no idea of what I'm doing" kind of patch. But I prefer to discuss around some code. --- buildbot/osuosl/master/config/builders.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/buildbot/osuosl/master/config/builders.py b/buildbot/osuosl/master/config/builders.py index 3d845dab4..48ac7527b 100644 --- a/buildbot/osuosl/master/config/builders.py +++ b/buildbot/osuosl/master/config/builders.py @@ -2788,6 +2788,17 @@ def collapseRequestsDoxygen(master, builder, req1, req2): script="hip-build.sh", checkout_llvm_sources=False, script_interpreter=None)}, + {'name' : "clang-hip-spirv", + 'tags' : ["clang"], + 'workernames' : ["hip-vega20-0"], + 'builddir': "clang-hip-spirv", + 'factory' : AnnotatedBuilder.getAnnotatedBuildFactory( + script="hip-build.sh", + checkout_llvm_sources=False, + script_interpreter=None, + env={ + 'AMDGPU_ARCHS': 'amdgcnspirv', + })}, # VE builders. {'name' : "clang-ve-ninja",