rocmPackages.rocblas: move tests and benchmarks to passthru.tests
Test and bench data bloated rocblas' closure size by around 1.1G
This commit is contained in:
@@ -134,10 +134,7 @@ let
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
rocblas = self.callPackage ./rocblas {
|
rocblas = self.callPackage ./rocblas { };
|
||||||
buildTests = true;
|
|
||||||
buildBenchmarks = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
rocsolver = self.callPackage ./rocsolver { };
|
rocsolver = self.callPackage ./rocsolver { };
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
rocm-smi,
|
rocm-smi,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
buildTensile ? true,
|
buildTensile ? true,
|
||||||
buildTests ? true,
|
buildTests ? false,
|
||||||
buildBenchmarks ? true,
|
buildBenchmarks ? false,
|
||||||
tensileSepArch ? true,
|
tensileSepArch ? true,
|
||||||
tensileLazyLib ? true,
|
tensileLazyLib ? true,
|
||||||
withHipBlasLt ? true,
|
withHipBlasLt ? true,
|
||||||
@@ -130,8 +130,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
(lib.cmakeBool "Tensile_LAZY_LIBRARY_LOADING" tensileLazyLib)
|
(lib.cmakeBool "Tensile_LAZY_LIBRARY_LOADING" tensileLazyLib)
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.amdgpu_targets = gpuTargets';
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "Extend-rocBLAS-HIP-ISA-compatibility.patch";
|
name = "Extend-rocBLAS-HIP-ISA-compatibility.patch";
|
||||||
@@ -150,10 +148,17 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
--replace-fail '0.10' '1.0'
|
--replace-fail '0.10' '1.0'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = rocmUpdateScript {
|
passthru = {
|
||||||
name = finalAttrs.pname;
|
amdgpu_targets = gpuTargets';
|
||||||
inherit (finalAttrs.src) owner;
|
tests.rocblas-tests = finalAttrs.finalPackage.override {
|
||||||
inherit (finalAttrs.src) repo;
|
buildBenchmarks = true;
|
||||||
|
buildTests = true;
|
||||||
|
};
|
||||||
|
updateScript = rocmUpdateScript {
|
||||||
|
name = finalAttrs.pname;
|
||||||
|
inherit (finalAttrs.src) owner;
|
||||||
|
inherit (finalAttrs.src) repo;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user