Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d11c540027d3
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d3634b0facaa
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 29, 2019

  1. clblas: turn of gtest, fix build

    clblas does not work anymore with gmock 1.8.1.
    Turning off the test suite fixes the build.
    
    (cherry picked from commit 4c74ee9)
    markuskowa authored and infinisil committed Mar 29, 2019
    Copy the full SHA
    5141dca View commit details
  2. libgpuarray: fix build

    move cmake into nativeBuildInputs
    
    (cherry picked from commit ad1e7b0)
    markuskowa authored and infinisil committed Mar 29, 2019
    Copy the full SHA
    d3634b0 View commit details
Showing with 8 additions and 9 deletions.
  1. +6 −8 pkgs/development/libraries/science/math/clblas/default.nix
  2. +2 −1 pkgs/development/python-modules/libgpuarray/default.nix
14 changes: 6 additions & 8 deletions pkgs/development/libraries/science/math/clblas/default.nix
Original file line number Diff line number Diff line change
@@ -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
@@ -33,7 +32,7 @@ stdenv.mkDerivation rec {
'';

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

buildInputs = [
@@ -42,7 +41,6 @@ stdenv.mkDerivation rec {
blas
python
boost
gtest
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
ocl-icd
opencl-headers
@@ -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 ];
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/libgpuarray/default.nix
Original file line number Diff line number Diff line change
@@ -66,8 +66,9 @@ buildPythonPackage rec {

enableParallelBuilding = true;

nativeBuildInputs = [ cmake ];

buildInputs = [
cmake
cython
nose
];