Skip to content

Indicate script dependencies in cuda.bench package metadata #384

Description

@oleksandr-pavlyk

Right now, if cuda.bench itself does not need numpy, jsondiff, colorama, matplotlib, etc.

Those should not be unconditional core dependencies just because helper scripts use them. They belong in optional extras.

cuda-bench must provide [project.optional-dependencies] section.

cuda-bench core dependencies should be kept lean. Script dependencies should be kept under tools. Every console script should fail gracefully when its optional dependencies are absent with error like

 nvbench-compare requires optional tool dependencies.
 Install with: pip install "cuda-bench[tools]"

Tool surface may be split into groups:

compare = ["colorama", "jsondiff", "numpy", "tabulate"]
plot = ["matplotlib", "numpy", "pandas", "seaborn"]
tools = ["cuda-bench[compare,plot]"]

Metadata

Metadata

Labels

Type

No fields configured for Task.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions