Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
954 B
Nix
50 lines
954 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
eigen,
|
|
frugally-deep,
|
|
functionalplus,
|
|
nlohmann_json,
|
|
src,
|
|
version,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "miopen-frugally-deep-model-test";
|
|
inherit version src;
|
|
|
|
dontConfigure = true;
|
|
dontInstall = true;
|
|
doCheck = true;
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
$CXX -std=c++20 \
|
|
-I${lib.getDev eigen}/include/eigen3 \
|
|
-I${lib.getDev functionalplus}/include \
|
|
-I${lib.getDev frugally-deep}/include \
|
|
-I${lib.getDev nlohmann_json}/include \
|
|
${./test-frugally-deep-model-loading.cpp} \
|
|
-o test_models
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
echo "Running model loading tests..."
|
|
SRC_DIR="${src}" ./test_models
|
|
mkdir -p $out
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Test that frugally-deep can load MIOpen model files";
|
|
maintainers = with lib.teams; [ rocm ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|