-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·70 lines (59 loc) · 1.8 KB
/
Copy pathpyproject.toml
File metadata and controls
executable file
·70 lines (59 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# SPDX-License-Identifier: MIT
# Copyright (c) 2025-2026 Advanced Micro Devices, Inc. All rights reserved.
[build-system]
requires = ["scikit-build-core>=0.5", "setuptools-scm>=8"]
build-backend = "scikit_build_core.build"
[project]
name = "kerncap"
dynamic = ["version"]
description = "Kernel extraction and isolation tool for HIP and Triton applications on AMD GPUs"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
dependencies = [
"numpy>=1.20",
"jinja2>=3.0",
"click>=8.0",
"libclang>=18.1",
"fastmcp>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/AMDResearch/intellikit/tree/main/kerncap"
Repository = "https://github.com/AMDResearch/intellikit/tree/main/kerncap"
Documentation = "https://github.com/AMDResearch/intellikit/blob/main/kerncap/README.md"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"ruff",
"docker>=6.0",
]
[project.scripts]
kerncap = "kerncap.cli:main"
kerncap-mcp = "kerncap.mcp.server:main"
[tool.scikit-build]
cmake.build-type = "Release"
wheel.packages = ["kerncap"]
wheel.install-dir = "kerncap"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
[tool.scikit-build.cmake.define]
CMAKE_INSTALL_LIBDIR = "lib"
CMAKE_INSTALL_BINDIR = "bin"
ROCM_PATH = {env="ROCM_PATH", default="/opt/rocm"}
# ---- setuptools-scm versioning ----
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "node-and-date"
fallback_version = "0.1.0"
root = ".."
# ---- Ruff configuration ----
[tool.ruff]
extend = "../ruff.toml"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E501", "E701", "E731", "E741", "F841", "F401"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"docker: marks tests that require Docker (deselect with '-m \"not docker\"')",
"gpu: marks tests that require an AMD GPU",
]