···1{
2 lib,
3 stdenv,
4+ callPackage,
5 fetchFromGitHub,
6 fetchpatch,
7 rocmUpdateScript,
···298299 requiredSystemFeatures = [ "big-parallel" ];
300301+ passthru.tests = {
302+ # Ensure all .tn.model files can be loaded by whatever version of frugally-deep we have
303+ # This is otherwise hard to verify as MIOpen will only use these models on specific,
304+ # expensive Instinct GPUs
305+ # If MIOpen stops embedding .tn.model files the test will also fail, and can be deleted,
306+ # likely along with the frugally-deep dependency
307+ can-load-models = callPackage ./test-frugally-deep-model-loading.nix {
308+ inherit (finalAttrs) src version;
309+ inherit frugally-deep nlohmann_json;
310+ };
311+ };
312 passthru.updateScript = rocmUpdateScript {
313 name = finalAttrs.pname;
314 inherit (finalAttrs.src) owner;