-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.torch-benchmark: init at unstable-2024-07-18
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
pkgs/development/python-modules/torch-benchmark/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
setuptools, | ||
colorama, | ||
matplotlib, | ||
numpy, | ||
pynvml, | ||
torch, | ||
torchprofile, | ||
}: | ||
|
||
buildPythonPackage { | ||
pname = "torch-benchmark"; | ||
version = "unstable-2024-07-18"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "MaximeGloesener"; | ||
repo = "torch-benchmark"; | ||
rev = "405a3fc2d147b43b4c1f7edb7aca0a60ba343ac5"; | ||
hash = "sha256-KU3dAf97A6lkMNTKRay23BMFQfn1ReAFNaJ0kG2RfnA="; | ||
}; | ||
|
||
build-system = [ | ||
setuptools | ||
]; | ||
|
||
dependencies = [ | ||
colorama | ||
matplotlib | ||
numpy | ||
pynvml | ||
torch | ||
torchprofile | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"torch_benchmark" | ||
]; | ||
|
||
meta = { | ||
description = "Benchmarking tool for torch"; | ||
homepage = "https://github.com/MaximeGloesener/torch-benchmark"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ drupol ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters