Skip to content

Commit

Permalink
clblas: turn of gtest, fix build
Browse files Browse the repository at this point in the history
clblas does not work anymore with gmock 1.8.1.
Turning off the test suite fixes the build.

(cherry picked from commit 4c74ee9)
  • Loading branch information
markuskowa authored and infinisil committed Mar 29, 2019
1 parent d11c540 commit 5141dca
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkgs/development/libraries/science/math/clblas/default.nix
Expand Up @@ -8,21 +8,20 @@
, ocl-icd
, opencl-headers
, Accelerate, CoreGraphics, CoreVideo, OpenCL
, gtest
}:

stdenv.mkDerivation rec {
name = "clblas-${version}";
name = "clblas-${version}";
version = "2.12";

src = fetchFromGitHub {
owner = "clMathLibraries";
owner = "clMathLibraries";
repo = "clBLAS";
rev = "v${version}";
sha256 = "154mz52r5hm0jrp5fqrirzzbki14c1jkacj75flplnykbl36ibjs";
};
};

patches = [ ./platform.patch ];
patches = [ ./platform.patch ];

postPatch = ''
sed -i -re 's/(set\(\s*Boost_USE_STATIC_LIBS\s+).*/\1OFF\ \)/g' src/CMakeLists.txt
Expand All @@ -33,7 +32,7 @@ stdenv.mkDerivation rec {
'';

cmakeFlags = [
"-DUSE_SYSTEM_GTEST=ON"
"-DBUILD_TEST=OFF"
];

buildInputs = [
Expand All @@ -42,7 +41,6 @@ stdenv.mkDerivation rec {
blas
python
boost
gtest
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
ocl-icd
opencl-headers
Expand All @@ -61,7 +59,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/clMathLibraries/clBLAS";
description = "A software library containing BLAS functions written in OpenCL";
longDescription = ''
This package contains a library of BLAS functions on top of OpenCL.
This package contains a library of BLAS functions on top of OpenCL.
'';
license = licenses.asl20;
maintainers = with maintainers; [ artuuge ];
Expand Down

0 comments on commit 5141dca

Please sign in to comment.