[clang] [HLSL] Add Offload distribution (PR #196640)

Deric C. via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 15:50:02 PDT 2026


================
@@ -14,3 +14,30 @@ if (HLSL_ENABLE_DISTRIBUTION)
       "clang;hlsl-resource-headers;clangd"
       CACHE STRING "")
 endif()
+
+# Enable the offload test suite distribution. This produces a portable
+# install prefix containing all binaries and test files needed to run the
+# HLSL offload test suite on another machine.
+#
+# Install with:
+#   cmake --build build --target install-distribution
+#   cmake --build build --target install-offload-tools
+#   cmake --build build --target install-offload-test-suite
+#
+# Prerequisites on the target machine:
+#   - Python 3.6+
+#   - pip install lit pyyaml
+#   - GPU drivers (D3D12, Vulkan, or Metal depending on test suite)
+#   - For non-clang test suites: a DXC executable (clang-dxc is included)
+#
+# After installing, configure and run tests:
+#   cd <prefix>/share/hlsl-test-suite
+#   ./configure-test-suite.py --suite clang-d3d12
+#   lit run/test/clang-d3d12
----------------
Icohedron wrote:

I feel like these comments are out of place here. This could be documented in the [docs folder of the offload test suite](https://github.com/llvm/offload-test-suite/tree/main/docs) instead, with more details if required.

https://github.com/llvm/llvm-project/pull/196640


More information about the cfe-commits mailing list