2022-10-25 11:44:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-12-04 00:25:41 +00:00
|
|
|
, rocmUpdateScript
|
2022-10-25 11:44:37 +00:00
|
|
|
, buildPythonPackage
|
2023-10-04 01:42:42 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools
|
2022-10-25 11:44:37 +00:00
|
|
|
, pyyaml
|
|
|
|
, msgpack
|
|
|
|
, pandas
|
2023-10-04 01:42:42 +00:00
|
|
|
, joblib
|
|
|
|
, filelock
|
|
|
|
, rocminfo
|
2022-10-25 11:44:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tensile";
|
2023-10-17 05:53:19 +00:00
|
|
|
version = "5.7.1";
|
2023-10-04 01:42:42 +00:00
|
|
|
format = "pyproject";
|
2022-10-25 11:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ROCmSoftwarePlatform";
|
|
|
|
repo = "Tensile";
|
2022-11-28 11:53:23 +00:00
|
|
|
rev = "rocm-${version}";
|
2023-09-30 04:47:55 +00:00
|
|
|
hash = "sha256-CyPGiM/53duJc/oNtOsl6JSsl9uOOYm5R7O6YXaVOm4=";
|
2022-10-25 11:44:37 +00:00
|
|
|
};
|
|
|
|
|
2023-10-04 01:42:42 +00:00
|
|
|
buildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-10-25 11:44:37 +00:00
|
|
|
pyyaml
|
|
|
|
msgpack
|
|
|
|
pandas
|
2023-10-04 01:42:42 +00:00
|
|
|
joblib
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # Too many errors, not sure how to set this up properly
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
filelock
|
|
|
|
rocminfo
|
2022-10-25 11:44:37 +00:00
|
|
|
];
|
|
|
|
|
2023-10-04 01:42:42 +00:00
|
|
|
preCheck = ''
|
|
|
|
export ROCM_PATH=${rocminfo}
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "Tensile" ];
|
|
|
|
|
2022-12-04 00:25:41 +00:00
|
|
|
passthru.updateScript = rocmUpdateScript {
|
|
|
|
name = pname;
|
|
|
|
owner = src.owner;
|
|
|
|
repo = src.repo;
|
|
|
|
};
|
2022-11-22 14:13:49 +00:00
|
|
|
|
2022-10-25 11:44:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GEMMs and tensor contractions";
|
|
|
|
homepage = "https://github.com/ROCmSoftwarePlatform/Tensile";
|
|
|
|
license = with licenses; [ mit ];
|
2022-11-24 01:24:39 +00:00
|
|
|
maintainers = teams.rocm.members;
|
2023-01-18 08:25:46 +00:00
|
|
|
platforms = platforms.linux;
|
2023-01-15 15:59:25 +00:00
|
|
|
broken = versions.minor version != versions.minor stdenv.cc.version;
|
2022-10-25 11:44:37 +00:00
|
|
|
};
|
|
|
|
}
|