Skip to content

Commit

Permalink
rocmlir: init at 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Madouura committed Nov 3, 2022
1 parent ee419e4 commit b0bd0b4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/development/libraries/rocmlir/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, hip
, python3
}:

stdenv.mkDerivation rec {
pname = "rocmlir";
rocmVersion = "5.3.1";
# For some reason they didn't add a tag for 5.3.1, should be compatible, change to rocmVersion later
version = "5.3.0";

src = fetchFromGitHub {
owner = "ROCmSoftwarePlatform";
repo = "rocMLIR";
rev = "rocm-${version}"; # change to rocmVersion later
hash = "sha256-s/5gAH5vh2tgATZemPP66juQFDg8BR2sipzX2Q6pOOQ=";
};

nativeBuildInputs = [
cmake
hip
];

buildInputs = [
python3
];

cmakeFlags = [
"-DBUILD_FAT_LIBMLIRMIOPEN=ON"
];

meta = with lib; {
description = "MLIR-based convolution and GEMM kernel generator";
homepage = "https://github.com/ROCmSoftwarePlatform/rocMLIR";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ Madouura ];
broken = rocmVersion != hip.version;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14859,6 +14859,8 @@ with pkgs;

rocminfo = callPackage ../development/tools/rocminfo { };

rocmlir = callPackage ../development/libraries/rocmlir { };

rtags = callPackage ../development/tools/rtags {
inherit (darwin) apple_sdk;
};
Expand Down

0 comments on commit b0bd0b4

Please sign in to comment.