Skip to content

Commit

Permalink
WIP: faiss: add passthru.test.hasCudaObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds committed Oct 31, 2024
1 parent be9a856 commit 5274586
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/development/libraries/science/math/faiss/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
(cudaPackages.cuda_profiler_api or cudaPackages.cuda_nvprof)
];
in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
inherit pname version;

outputs = [ "out" ] ++ lib.optionals pythonSupport [ "dist" ];
Expand Down Expand Up @@ -107,6 +107,12 @@ stdenv.mkDerivation {

passthru = {
inherit cudaSupport cudaPackages pythonSupport;

tests = lib.optionalAttrs cudaSupport {
hasCudaObjects = cudaPackages.hasCudaObjects {
package = finalAttrs.finalPackage;
};
};
};

meta = {
Expand All @@ -117,4 +123,4 @@ stdenv.mkDerivation {
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ SomeoneSerge ];
};
}
})

0 comments on commit 5274586

Please sign in to comment.