Skip to content

Commit

Permalink
extend assembly manifest to apply to cpu and cuda EPs, and not just dml
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonswope committed Jan 6, 2025
1 parent 49cdb5c commit 125063c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<noInheritable></noInheritable>
<assemblyIdentity
type="win32"
name="bfx_ml.ort_dml_deps.runtime"
version="1.0.0.3" processorArchitecture="amd64">
name="bfx_ml.ort_deps.runtime"
version="1.0.0.4" processorArchitecture="amd64">
</assemblyIdentity>
<file name="DirectML.dll" hash="" hashalg="SHA1"></file>
<file name="DirectML.Debug.dll" hash="" hashalg="SHA1"></file>
<file name="onnxruntime.dll" hash="" hashalg="SHA1"></file>
<file name="onnxruntime_providers_cuda.dll" hash="" hashalg="SHA1"></file>
<file name="onnxruntime_providers_shared.dll" hash="" hashalg="SHA1"></file>
</assembly>
6 changes: 3 additions & 3 deletions bfx/build_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ Copy-Item .\build\Windows\Release\DirectML.Debug.dll $DIST_LIB_DIR
Copy-Item -r .\include $DIST_DIR

# generate manifest for libraries with DLL hashes
Copy-Item bfx/bfx_ml.ort_dml_deps.runtime.manifest.in $DIST_LIB_DIR
Copy-Item bfx/bfx_ml.ort_deps.runtime.manifest.in $DIST_LIB_DIR
Push-Location $DIST_LIB_DIR
mt.exe -manifest bfx_ml.ort_dml_deps.runtime.manifest.in -hashupdate -out:bfx_ml.ort_dml_deps.runtime.manifest
Remove-Item bfx_ml.ort_dml_deps.runtime.manifest.in
mt.exe -manifest bfx_ml.ort_deps.runtime.manifest.in -hashupdate -out:bfx_ml.ort_deps.runtime.manifest
Remove-Item bfx_ml.ort_deps.runtime.manifest.in
Pop-Location

# make zip archive!
Expand Down

0 comments on commit 125063c

Please sign in to comment.