mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-19 22:38:52 +00:00
Replace all occurences of pynvbench with cuda-bench
This commit is contained in:
@@ -23,11 +23,11 @@ from cuda.pathfinder import ( # type: ignore[import-not-found]
|
||||
)
|
||||
|
||||
try:
|
||||
__version__ = importlib.metadata.version("pynvbench")
|
||||
__version__ = importlib.metadata.version("cuda-bench")
|
||||
except Exception as e:
|
||||
__version__ = "0.0.0dev"
|
||||
warnings.warn(
|
||||
"Could not retrieve version of pynvbench package dynamically from its metadata. "
|
||||
"Could not retrieve version of cuda-bench package dynamically from its metadata. "
|
||||
f"Exception {e} was raised. "
|
||||
f"Version is set to fall-back value '{__version__}' instead."
|
||||
)
|
||||
@@ -47,7 +47,7 @@ def _get_cuda_major_version():
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"cuda-bindings is required for runtime CUDA version detection. "
|
||||
"Install with: pip install pynvbench[cu12] or pip install pynvbench[cu13]"
|
||||
"Install with: pip install cuda-bench[cu12] or pip install cuda-bench[cu13]"
|
||||
)
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ try:
|
||||
_nvbench_module = importlib.import_module(_module_fullname)
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
f"No pynvbench extension found for CUDA {_cuda_major}.x. "
|
||||
f"No cuda-bench extension found for CUDA {_cuda_major}.x. "
|
||||
f"This wheel may not include support for your CUDA version. "
|
||||
f"Supported CUDA versions: 12, 13. "
|
||||
f"Original error: {e}"
|
||||
|
||||
@@ -3,7 +3,7 @@ requires = ["scikit-build-core>=0.10", "setuptools_scm"]
|
||||
build-backend = "scikit_build_core.build"
|
||||
|
||||
[project]
|
||||
name = "pynvbench"
|
||||
name = "cuda-bench"
|
||||
description = "CUDA Kernel Benchmarking Package"
|
||||
authors = [{ name = "NVIDIA Corporation" }]
|
||||
license = { text = "Apache-2.0 WITH LLVM-exception" }
|
||||
@@ -36,10 +36,10 @@ cu12 = ["cuda-bindings>=12.0.0,<13.0.0", "nvidia-cuda-cupti-cu12"]
|
||||
cu13 = ["cuda-bindings>=13.0.0,<14.0.0", "nvidia-cuda-cupti>=13.0"]
|
||||
|
||||
# Test dependencies for CUDA 12
|
||||
test-cu12 = ["pynvbench[cu12]", "pytest", "cupy-cuda12x", "numba"]
|
||||
test-cu12 = ["cuda-bench[cu12]", "pytest", "cupy-cuda12x", "numba"]
|
||||
|
||||
# Test dependencies for CUDA 13
|
||||
test-cu13 = ["pynvbench[cu13]", "pytest", "cupy-cuda13x", "numba"]
|
||||
test-cu13 = ["cuda-bench[cu13]", "pytest", "cupy-cuda13x", "numba"]
|
||||
|
||||
# Generic test dependencies (defaults to CUDA 12)
|
||||
test = ["pytest", "cupy-cuda12x", "numba"]
|
||||
|
||||
Reference in New Issue
Block a user