Skip to content

Commit

Permalink
python312Packages.torch-benchmark: init at unstable-2024-07-18
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 1, 2024
1 parent f6a693e commit 5c4aba7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/torch-benchmark/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15844,6 +15844,8 @@ self: super: with self; {

torch = callPackage ../development/python-modules/torch { };

torch-benchmark = callPackage ../development/python-modules/torch-benchmark { };

# Required to test triton
torch-no-triton = self.torch.override { tritonSupport = false; };

Expand Down

0 comments on commit 5c4aba7

Please sign in to comment.