Skip to content

Use nexus Python package - #158

Merged
mawad-amd merged 15 commits into
mainfrom
muhaawad/nexus
Nov 8, 2025
Merged

mawad-amd merged 15 commits into
mainfrom
muhaawad/nexus

Conversation

@mawad-amd

Copy link
Copy Markdown
Member

No description provided.

mawad-amd and others added 12 commits September 8, 2025 11:56
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Awad <112003944+mawad-amd@users.noreply.github.com>
Co-authored-by: Muhammad Awad <MuhammadAbdelghaffar.Awad@amd.com>
Co-authored-by: stephen youn <13525892+stephen-youn@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mawad-amd <112003944+mawad-amd@users.noreply.github.com>
Co-authored-by: Muhammad Awad <MuhammadAbdelghaffar.Awad@amd.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@mawad-amd
mawad-amd requested a review from Copilot November 8, 2025 04:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the Nexus integration by migrating from the C++ library API to the Python API, simplifying the codebase and removing manual build configuration. The changes also clean up unused utility functions and streamline the accordo path detection logic.

  • Replaces Nexus C++ library usage with the Python API for kernel source code collection
  • Removes deprecated helper functions get_nexus_path() and get_accordo_path()
  • Adds Nexus as a pip-installable dependency from GitHub

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/intelliperf/utils/env.py Removes get_accordo_path() and get_nexus_path() helper functions that are no longer needed
src/intelliperf/core/application.py Refactors collect_source_code() to use Nexus Python API instead of C++ library via HSA_TOOLS_LIB
src/accordo/validator.py Updates accordo path auto-detection to directly check relative paths instead of using removed get_accordo_path()
pyproject.toml Adds nexus as a git-based dependency and removes manual build configuration for Nexus

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/intelliperf/core/application.py Outdated
try:
from nexus import Nexus
except ImportError:
logging.error("Nexus Python API not found. Please install it: pip install nexus")

Copilot AI Nov 8, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message suggests installing with pip install nexus, but the package is installed from a git repository. The message should be updated to match the actual installation method: pip install git+https://github.com/AMDResearch/nexus.git@main or reference the project's dependency installation process.

Suggested change
logging.error("Nexus Python API not found. Please install it: pip install nexus")
logging.error("Nexus Python API not found. Please install it: pip install git+https://github.com/AMDResearch/nexus.git@main")

Copilot uses AI. Check for mistakes.
@mawad-amd
mawad-amd merged commit 96620d8 into main Nov 8, 2025
2 of 3 checks passed
@mawad-amd
mawad-amd deleted the muhaawad/nexus branch November 8, 2025 04:48
mawad-amd added a commit that referenced this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants