From b6088ea2f32335978f366708440b0f4ded5b7f9f Mon Sep 17 00:00:00 2001 From: Tom Westerhout <14264576+twesterhout@users.noreply.github.com> Date: Fri, 9 Jun 2023 20:17:44 +0000 Subject: [PATCH] Enable tests for Halide; replace llvmPackages.stdenv with stdenv (#224473) * Enable tests for Halide; replace llvmPackages.stdenv with stdenv * halide: disable performance_memcpy test * halide: disable all performance tests because they are unreliable --- pkgs/development/compilers/halide/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/halide/default.nix b/pkgs/development/compilers/halide/default.nix index d0d3038c23c6..636506836dc9 100644 --- a/pkgs/development/compilers/halide/default.nix +++ b/pkgs/development/compilers/halide/default.nix @@ -1,4 +1,5 @@ -{ llvmPackages +{ stdenv +, llvmPackages , lib , fetchFromGitHub , cmake @@ -13,7 +14,7 @@ assert blas.implementation == "openblas" && lapack.implementation == "openblas"; -llvmPackages.stdenv.mkDerivation rec { +stdenv.mkDerivation rec { pname = "halide"; version = "15.0.1"; @@ -24,7 +25,15 @@ llvmPackages.stdenv.mkDerivation rec { sha256 = "sha256-mnZ6QMqDr48bH2W+andGZj2EhajXKApjuW6B50xtzx0="; }; - cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" "-DTARGET_WEBASSEMBLY=OFF" ]; + cmakeFlags = [ + "-DWARNINGS_AS_ERRORS=OFF" + "-DWITH_PYTHON_BINDINGS=OFF" + "-DTARGET_WEBASSEMBLY=OFF" + # Disable performance tests since they may fail on busy machines + "-DWITH_TEST_PERFORMANCE=OFF" + ]; + + doCheck = true; # Note: only openblas and not atlas part of this Nix expression # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix