Skip to content

Commit

Permalink
Merge pull request #509 from intel/jatin/nuget_package_name
Browse files Browse the repository at this point in the history
Updated the name for Intel nuget package
  • Loading branch information
sfatimar authored Dec 5, 2024
2 parents 41ce5b7 + c7c583b commit fa744a0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ def build_nuget_package(
target_name = "/t:CreateWindowsAIPackage"
elif use_openvino:
execution_provider = "/p:ExecutionProvider=openvino"
package_name = "/p:OrtPackageId=Microsoft.ML.OnnxRuntime.OpenVino"
package_name = "/p:OrtPackageId=Intel.ML.OnnxRuntime.OpenVino"
elif use_tensorrt:
execution_provider = "/p:ExecutionProvider=tensorrt"
package_name = "/p:OrtPackageId=Microsoft.ML.OnnxRuntime.TensorRT"
Expand Down
29 changes: 28 additions & 1 deletion tools/nuget/generate_nuspec_for_native_nuget.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def generate_description(line_list, package_name):
description = "This package contains Linux native shared library artifacts for ONNX Runtime with CUDA."
elif "Microsoft.ML.OnnxRuntime.Gpu.Windows" in package_name:
description = "This package contains Windows native shared library artifacts for ONNX Runtime with CUDA."
elif "Intel.ML.OnnxRuntime" in package_name:
description = "This package contains native shared library artifacts for ONNX Runtime with OpenVINO."
elif "Microsoft.ML.OnnxRuntime" in package_name: # This is a Microsoft.ML.OnnxRuntime.* package
description = (
"This package contains native shared library artifacts for all supported platforms of ONNX Runtime."
Expand Down Expand Up @@ -715,7 +717,7 @@ def generate_files(line_list, args):
)

if args.execution_provider == "openvino":
get_env_var("INTEL_OPENVINO_DIR")
openvino_path = get_env_var("INTEL_OPENVINO_DIR")
files_list.append(
"<file src="
+ '"'
Expand All @@ -733,6 +735,31 @@ def generate_files(line_list, args):
+ '\\native" />'
)

if is_windows():
dll_list_path = os.path.join(openvino_path, "runtime\\bin\\intel64\\Release\\")
tbb_list_path = os.path.join(openvino_path, "runtime\\3rdparty\\tbb\\bin\\")
for dll_element in os.listdir(dll_list_path):
if dll_element.endswith("dll"):
files_list.append(
"<file src="
+ '"'
+ os.path.join(dll_list_path, dll_element)
+ runtimes_target
+ args.target_architecture
+ '\\native" />'
)
for tbb_element in os.listdir(tbb_list_path):
if tbb_element.endswith("dll"):
files_list.append(
"<file src="
+ '"'
+ os.path.join(tbb_list_path, tbb_element)
+ runtimes_target
+ args.target_architecture
+ '\\native" />'
)


if args.execution_provider == "cuda" or is_cuda_gpu_win_sub_package and not is_ado_packaging_build:
files_list.append(
"<file src="
Expand Down

0 comments on commit fa744a0

Please sign in to comment.