summaryrefslogtreecommitdiff
path: root/pkgs/development/rocm-modules/6/rocm-tests/default.nix
blob: 84762ff70e73c993ba4080ff5609ef40d6007f38 (about) (plain)
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
{
  clr,
  ollama,
  python3Packages,
  rocmPackages,
  magma-hip,
  emptyDirectory,
  stdenv,
}:
# This package exists purely to have a bunch of passthru.tests attrs
stdenv.mkDerivation {
  name = "rocm-tests";
  nativeBuildInputs = [
    clr
  ];
  src = emptyDirectory;
  postInstall = "mkdir -p $out";
  passthru.tests = {
    ollama = ollama.override {
      inherit rocmPackages;
      acceleration = "rocm";
    };
    torch = python3Packages.torch.override {
      inherit rocmPackages;
      rocmSupport = true;
      cudaSupport = false;
      magma-hip = magma-hip.override {
        inherit rocmPackages;
      };
    };
  };
}