3
0
Fork 0
forked from mirrors/nixpkgs

clblast: init (#234020)

This commit is contained in:
Tungsten842 2023-05-31 21:49:10 +02:00 committed by GitHub
parent bc3ec5eaa7
commit 12ae1e6b6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
, opencl-headers
, ocl-icd
}:
stdenv.mkDerivation rec {
pname = "clblast";
version = "1.6.0";
src = fetchFromGitHub {
owner = "CNugteren";
repo = "CLBlast";
rev = version;
hash = "sha256-eRwSfP6p0+9yql7TiXZsExRMcnnBLXXW2hh1JliYU2I=";
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
opencl-headers
ocl-icd
];
cmakeFlags = [
# https://github.com/NixOS/nixpkgs/issues/144170
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
meta = with lib; {
description = "The tuned OpenCL BLAS library";
homepage = "https://github.com/CNugteren/CLBlast";
license = licenses.asl20;
maintainers = with maintainers; [ Tungsten842 ];
platforms = platforms.linux;
};
}

View file

@ -37908,6 +37908,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo OpenCL;
};
clblast = callPackage ../development/libraries/science/math/clblast { };
cliquer = callPackage ../development/libraries/science/math/cliquer { };
coin-utils = callPackage ../development/libraries/science/math/coin-utils { };