···11{
22 lib,
33 stdenv,
44+ callPackage,
45 fetchFromGitHub,
56 fetchpatch,
67 rocmUpdateScript,
···297298298299 requiredSystemFeatures = [ "big-parallel" ];
299300301301+ passthru.tests = {
302302+ # Ensure all .tn.model files can be loaded by whatever version of frugally-deep we have
303303+ # This is otherwise hard to verify as MIOpen will only use these models on specific,
304304+ # expensive Instinct GPUs
305305+ # If MIOpen stops embedding .tn.model files the test will also fail, and can be deleted,
306306+ # likely along with the frugally-deep dependency
307307+ can-load-models = callPackage ./test-frugally-deep-model-loading.nix {
308308+ inherit (finalAttrs) src version;
309309+ inherit frugally-deep nlohmann_json;
310310+ };
311311+ };
300312 passthru.updateScript = rocmUpdateScript {
301313 name = finalAttrs.pname;
302314 inherit (finalAttrs.src) owner;