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
11 changes: 9 additions & 2 deletions .github/workflows/xtc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v5
- name: Install Distro Packages
# Note: package cache with awalsh128/cache-apt-pkgs-action does not work correctly, use standard install.
run: |
sudo apt install -y build-essential libomp5 binutils-aarch64-linux-gnu binutils-x86-64-linux-gnu libpfm4-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -18,7 +22,7 @@ jobs:
run: |
python -c "import sys; print(sys.version)"
pip list
- name: Install package
- name: Install XTC Package in dev mode
run: |
pip install -e .[dev]
- name: Install TVM dependencies
Expand All @@ -27,6 +31,9 @@ jobs:
- name: Install MLIR dependencies
run: |
pip install -r mlir_requirements.txt
- name: List packages
- name: List Python Packages
run: |
pip list
- name: Run Checks
run: |
make check
4 changes: 3 additions & 1 deletion src/xtc/utils/ext_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

def get_library_path(libname: str) -> str:
libfile = ctypes.util.find_library(libname)
assert libfile
assert libfile, (
f"ctypes.util.find_library: can't find library: {libname}, please install corresponding package"
)

if platform.system() == "Darwin":
return libfile
Expand Down