forked from mirrors/nixpkgs
clblast: init (#234020)
This commit is contained in:
parent
bc3ec5eaa7
commit
12ae1e6b6b
44
pkgs/development/libraries/science/math/clblast/default.nix
Normal file
44
pkgs/development/libraries/science/math/clblast/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue