Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
367d548
Add origami to TheRock
ibrahimw1 Jan 7, 2026
17eacf4
Test
ibrahimw1 Jan 7, 2026
c3ebff2
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 7, 2026
f2f9082
Test
ibrahimw1 Jan 8, 2026
cd57c4d
Test
ibrahimw1 Jan 8, 2026
be44aa6
Add origami dependency to hipblaslt
ibrahimw1 Jan 8, 2026
ca7d473
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 8, 2026
7691894
Remove conditional in origami dep, fix rocm-libraries origami install
ibrahimw1 Jan 8, 2026
b866b4c
Bump to fix windows
ibrahimw1 Jan 8, 2026
c845ae8
Update python script to fix Origami build dir not found
ibrahimw1 Jan 8, 2026
a3a70bd
Ctest fix
ibrahimw1 Jan 9, 2026
c821d74
Fix origami missing lib in tests
ibrahimw1 Jan 9, 2026
246d4cc
Add lib dir for python tests
ibrahimw1 Jan 12, 2026
e3e0e44
Update rocm-libs
ibrahimw1 Jan 12, 2026
c665be0
Fix origami python test
ibrahimw1 Jan 12, 2026
ada4462
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 12, 2026
f8f0a0f
Bump
ibrahimw1 Jan 12, 2026
c609d7a
fix bad state of rocm libs
ibrahimw1 Jan 13, 2026
c9cdf7a
Fix windows origami test
ibrahimw1 Jan 13, 2026
bc13cfa
Fix windows dll issue by bumping rocm libs:
ibrahimw1 Jan 13, 2026
dd069a6
Bump
ibrahimw1 Jan 14, 2026
da52ab3
Merge branch 'main' into users/ibrahimw1/add-origami
ibrahimw1 Jan 14, 2026
3bc152a
Fix windows dll issues, ctest file gen change
ibrahimw1 Jan 15, 2026
8b2fc37
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 15, 2026
4be54b9
Origami to runtime deps, disable origami python binding tests on windows
ibrahimw1 Jan 15, 2026
34de24c
Merge branch 'main' into users/ibrahimw1/add-origami
ibrahimw1 Jan 16, 2026
66b2b7a
Merge main
ibrahimw1 Jan 19, 2026
c8c0b0b
Apply PR comments
ibrahimw1 Jan 19, 2026
17ea7c4
Set LD path again
ibrahimw1 Jan 19, 2026
80562e9
Add origami to package.json
ibrahimw1 Jan 19, 2026
15f6b6e
bump
ibrahimw1 Jan 19, 2026
4a8a49f
bump, python3
ibrahimw1 Jan 20, 2026
af910c6
bump
ibrahimw1 Jan 20, 2026
81e6a2c
bump
ibrahimw1 Jan 20, 2026
c1c7241
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 21, 2026
bee4092
bump
ibrahimw1 Jan 21, 2026
bdacaaa
bump, merge develop
ibrahimw1 Jan 21, 2026
8c12c8f
Smoke tests run all tests, fix precommit error
ibrahimw1 Jan 21, 2026
54902bb
Fix precommit error
ibrahimw1 Jan 21, 2026
40d9233
bump
ibrahimw1 Jan 22, 2026
844aa1f
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 22, 2026
f06d760
bump
ibrahimw1 Jan 22, 2026
49712e7
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 23, 2026
a93bdb1
Bump, pip install merge
ibrahimw1 Jan 23, 2026
a5da770
bump, nb fix
ibrahimw1 Jan 23, 2026
3aff083
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 26, 2026
ccf012a
Point to develop in rocm-libs
ibrahimw1 Jan 26, 2026
a10d2f1
remove submodule bump
ibrahimw1 Jan 26, 2026
b940a8a
Merge branch 'main' into users/ibrahimw1/add-origami
ibrahimw1 Jan 27, 2026
36dbc00
Change Origami to lowercase origami
ibrahimw1 Jan 28, 2026
bed89f1
Merge branch 'main' into users/ibrahimw1/add-origami
ibrahimw1 Jan 28, 2026
2148b09
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Jan 29, 2026
586866b
Address PR comments
ibrahimw1 Jan 30, 2026
936859c
Merge branch 'users/ibrahimw1/add-origami' of github.com:ROCm/TheRock…
ibrahimw1 Jan 30, 2026
ac42c47
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/a…
ibrahimw1 Feb 3, 2026
91bad2a
Bump to point to origami rocm-sdk sanity test failure fix
ibrahimw1 Feb 3, 2026
1386d5e
Remove ld path
ibrahimw1 Feb 3, 2026
aac6040
Add origami library to rocm-sdk
ibrahimw1 Feb 3, 2026
d7d1b96
bump
ibrahimw1 Feb 9, 2026
706d1ee
Remove python paths
ibrahimw1 Feb 9, 2026
4418a79
Add python path back
ibrahimw1 Feb 9, 2026
af9ab20
add ld lib path and python path back
ibrahimw1 Feb 10, 2026
9ff32ac
Bump - fix selector tests, fix linux python package rocm sdk tests
ibrahimw1 Feb 10, 2026
a2fe186
bump
ibrahimw1 Feb 10, 2026
fb06de5
bump + change pythonpath
ibrahimw1 Feb 10, 2026
0f9dba0
Fix precommit fail
ibrahimw1 Feb 10, 2026
5887f25
bump
ibrahimw1 Feb 10, 2026
b2b484b
Merge branch 'main' into users/ibrahimw1/add-origami-2
ibrahimw1 Feb 10, 2026
260f1a1
bump
ibrahimw1 Feb 15, 2026
3c6b27a
remove rocm-libs bump
ibrahimw1 Feb 15, 2026
19ec5f8
Merge branch 'main' into users/ibrahimw1/add-origami-2
ibrahimw1 Feb 16, 2026
c9bdc47
Remove optional lines from origami in toml file
ibrahimw1 Feb 16, 2026
19b87ce
Add PR suggestions
ibrahimw1 Feb 17, 2026
2979897
Test
ibrahimw1 Feb 17, 2026
5bb6673
Bump
ibrahimw1 Feb 24, 2026
5d958c5
Merge branch 'main' of github.com:ROCm/TheRock into users/ibrahimw1/p…
ibrahimw1 Feb 24, 2026
be9b4a5
bump
ibrahimw1 Feb 24, 2026
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
8 changes: 8 additions & 0 deletions build_tools/github_actions/fetch_test_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ def _get_script_path(script_name: str) -> str:
],
},
},
"origami": {
"job_name": "origami",
"fetch_artifact_args": "--blas --tests",
"timeout_minutes": 5,
"test_script": f"python {_get_script_path('test_origami.py')}",
"platform": ["linux", "windows"],
"total_shards": 1,
},
"hipblas": {
"job_name": "hipblas",
"fetch_artifact_args": "--blas --tests",
Expand Down
80 changes: 80 additions & 0 deletions build_tools/github_actions/test_executable_scripts/test_origami.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env python3
"""
Test script for origami C++ and Python tests.

Origami uses Catch2 for C++ tests and pytest for Python tests.
Both test types are registered with CTest and run via ctest command.
"""

import logging
import os
import shlex
import subprocess
import sys
from pathlib import Path

THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR")
SCRIPT_DIR = Path(__file__).resolve().parent
THEROCK_DIR = SCRIPT_DIR.parent.parent.parent

logging.basicConfig(level=logging.INFO, format="%(message)s")

# Environment setup
environ_vars = os.environ.copy()
platform = os.getenv("RUNNER_OS", "linux").lower()
is_windows = platform == "windows"

bin_dir = Path(THEROCK_BIN_DIR).resolve()
lib_dir = bin_dir.parent / "lib"
origami_test_dir = bin_dir / "origami"

# Path separator is different on Windows vs Linux
path_sep = ";" if is_windows else ":"

# The origami Python package is installed to lib/pythonX.Y/site-packages/origami/
site_packages_dir = (
lib_dir
/ f"python{sys.version_info.major}.{sys.version_info.minor}"
/ "site-packages"
)

# LD_LIBRARY_PATH is needed for Python tests to find liborigami.so
if not is_windows:
ld_paths = [
str(lib_dir),
environ_vars.get("LD_LIBRARY_PATH", ""),
]
environ_vars["LD_LIBRARY_PATH"] = path_sep.join(p for p in ld_paths if p)
else:
dll_paths = [
str(bin_dir),
str(lib_dir),
environ_vars.get("PATH", ""),
]
environ_vars["PATH"] = path_sep.join(p for p in dll_paths if p)

# Set PYTHONPATH so Python can find the origami package in site-packages
python_paths = [
str(site_packages_dir),
environ_vars.get("PYTHONPATH", ""),
]
environ_vars["PYTHONPATH"] = path_sep.join(p for p in python_paths if p)

logging.info(f"LD_LIBRARY_PATH: {environ_vars.get('LD_LIBRARY_PATH', '')}")
logging.info(f"PYTHONPATH: {environ_vars.get('PYTHONPATH', '')}")

# CTest runs both C++ (Catch2) tests and Python (pytest) tests
cmd = [
"ctest",
"--test-dir",
str(origami_test_dir),
"--output-on-failure",
"--parallel",
"8",
]

if is_windows:
cmd.extend(["-R", "origami-tests"])

logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}")
subprocess.run(cmd, cwd=THEROCK_DIR, check=True, env=environ_vars)
9 changes: 8 additions & 1 deletion build_tools/packaging/linux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,14 @@
"doc"
]
},

{
"Name": "origami",
"Components": [
"lib",
"run",
"doc"
]
},
{
"Name": "hipBLASLt",
"Components": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def determine_target_family() -> str:
LibraryEntry("hipsolver", "libraries", "libhipsolver.so*", "hipsolver*.dll")
LibraryEntry("rccl", "libraries", "librccl.so*", "")
LibraryEntry("miopen", "libraries", "libMIOpen.so*", "MIOpen*.dll")
LibraryEntry("origami", "libraries", "liborigami.so*", "origami*.dll")


# Others we may want:
# hiprtc-builtins
Expand Down
32 changes: 32 additions & 0 deletions math-libs/BLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,37 @@ if(_enable_rocRoller)
endif()


##############################################################################
# origami
##############################################################################

therock_cmake_subproject_declare(origami
EXTERNAL_SOURCE_DIR "${THEROCK_ROCM_LIBRARIES_SOURCE_DIR}/shared/origami"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/origami"
BACKGROUND_BUILD
CMAKE_ARGS
-DHIP_PLATFORM=amd
-DORIGAMI_BUILD_SHARED_LIBS=ON
-DORIGAMI_BUILD_TESTING=${THEROCK_BUILD_TESTING}
-DORIGAMI_ENABLE_PYTHON=ON
-DORIGAMI_ENABLE_FETCH=OFF
COMPILER_TOOLCHAIN
amd-hip
BUILD_DEPS
rocm-cmake
therock-catch2
RUNTIME_DEPS
hip-clr
)
therock_cmake_subproject_glob_c_sources(origami
SUBDIRS
.
)
therock_cmake_subproject_provide_package(origami origami lib/cmake/origami)
therock_cmake_subproject_activate(origami)
list(APPEND _blas_subproject_names origami)


##############################################################################
# hipBLASLt
##############################################################################
Expand Down Expand Up @@ -146,6 +177,7 @@ therock_cmake_subproject_declare(hipBLASLt
${hipBLASLt_rocRoller_build_deps}
RUNTIME_DEPS
hip-clr
origami
therock-host-blas
${hipBLASLt_rocRoller_runtime_deps}
${hipBLASLt_runtime_deps}
Expand Down
13 changes: 13 additions & 0 deletions math-libs/BLAS/artifact-blas.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ include = [
]
optional = true

# origami
[components.dbg."math-libs/BLAS/origami/stage"]
[components.dev."math-libs/BLAS/origami/stage"]
[components.lib."math-libs/BLAS/origami/stage"]
include = [
"lib/**",
]
[components.test."math-libs/BLAS/origami/stage"]
include = [
"bin/origami-tests*",
"bin/origami/**",
]

# hipBLAS
[components.dbg."math-libs/BLAS/hipBLAS/stage"]
[components.dev."math-libs/BLAS/hipBLAS/stage"]
Expand Down
2 changes: 1 addition & 1 deletion rocm-libraries
Loading