Skip to content

Commit 9f5fc1f

Browse files
committed
Disallow package builds when using the Dawn Agility SDK
1 parent af26e50 commit 9f5fc1f

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

tools/ci_build/build.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,16 @@ def generate_build_tree(
912912
if args.build_wasm:
913913
raise BuildError("Only static library build of WebGPU EP is supported for WebAssembly build.")
914914

915-
if args.use_dawn_agility_sdk and not is_windows():
916-
raise BuildError("Dawn Agility SDK (--use_dawn_agility_sdk) is only supported on Windows.")
915+
if args.use_dawn_agility_sdk:
916+
if not is_windows():
917+
raise BuildError("Dawn Agility SDK (--use_dawn_agility_sdk) is only supported on Windows.")
918+
919+
if args.build_wheel or args.build_csharp or args.build_nuget or args.build_java or args.build_nodejs:
920+
raise BuildError(
921+
"Dawn Agility SDK (--use_dawn_agility_sdk) is currently supported for local development builds only. "
922+
"Python, C#, NuGet, Java, and Node.js packaging is not supported because the required D3D12 runtime "
923+
"DLLs are not deployed into those packages."
924+
)
917925

918926
if args.use_snpe:
919927
cmake_args += ["-Donnxruntime_USE_SNPE=ON"]

tools/ci_build/build_args.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,10 @@ def add_execution_provider_args(parser: argparse.ArgumentParser) -> None:
831831
webgpu_group.add_argument(
832832
"--use_dawn_agility_sdk",
833833
action="store_true",
834-
help="Build Dawn's D3D12 backend with the Agility SDK (Windows only).",
834+
help=(
835+
"Build Dawn's D3D12 backend with the Agility SDK for local development "
836+
"(Windows only; packaging unsupported)."
837+
),
835838
)
836839
webgpu_group.add_argument(
837840
"--wgsl_template",

0 commit comments

Comments
 (0)