Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build_tools/build_python_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def run(args: argparse.Namespace):
PopulatedDistPackage(params, logical_name="meta")

# Populate each target neutral library package.
core = PopulatedDistPackage(params, logical_name="core").populate_runtime_files(
core = PopulatedDistPackage(params, logical_name="core")
core.rpath_dep(core, "lib/llvm/lib")
core.populate_runtime_files(
params.filter_artifacts(
core_artifact_filter,
# TODO: The base package is shoving CMake redirects into lib.
Expand Down Expand Up @@ -87,6 +89,7 @@ def core_artifact_filter(an: ArtifactName) -> bool:
"core-ocl",
"core-hipinfo",
"core-runtime",
"hipify",
"host-blas",
"host-suite-sparse",
"rocprofiler-sdk",
Expand Down
2 changes: 2 additions & 0 deletions build_tools/packaging/python/templates/rocm-sdk-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def import_dist_info():
"amdlld=rocm_sdk_core._cli:amdlld",
"hipcc=rocm_sdk_core._cli:hipcc",
"hipconfig=rocm_sdk_core._cli:hipconfig",
"hipify-clang=rocm_sdk_core._cli:hipify_clang",
"offload-arch=rocm_sdk_core._cli:offload_arch",
"roc-obj=rocm_sdk_core._cli:roc_obj",
"roc-obj-extract=rocm_sdk_core._cli:roc_obj_extract",
Expand All @@ -70,6 +71,7 @@ def import_dist_info():
[
# These tools are only available on Linux.
"amd-smi=rocm_sdk_core._cli:amd_smi",
"hipify-perl=rocm_sdk_core._cli:hipify_perl",
"rocm_agent_enumerator=rocm_sdk_core._cli:rocm_agent_enumerator",
"rocminfo=rocm_sdk_core._cli:rocm_info",
"rocm-smi=rocm_sdk_core._cli:rocm_smi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ def hipconfig():
_exec("bin/hipconfig")


def hipify_clang():
_exec("bin/hipify-clang")


def hipify_perl():
_exec("bin/hipify-perl")


def hipInfo():
_exec("bin/hipInfo")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@
("amdlld", ["-flavor", "ld.lld", "--help"], "USAGE:", True),
("hipcc", ["--help"], "clang LLVM compiler", True),
("hipconfig", [], "HIP version:", True),
("hipify-clang", ["--help"], "USAGE:", True),
]

LINUX_CONSOLE_SCRIPT_TESTS = [
("amd-smi", [], "AMD-SMI", True),
("rocm_agent_enumerator", [], "", True),
("rocminfo", [], "", True),
("rocm-smi", [], "Management", True),
("hipify-perl", ["--help"], "USAGE:", True),
]

WINDOWS_CONSOLE_SCRIPT_TESTS = [
Expand Down
Loading