Open ovitus opened 5 days ago
Nobody is going to help you if you don't ping the maintainers.
@mweinelt
Try again. The maintainer is @bcdarwin.
I got the latest package installed:
{ buildPythonPackage
, cmake
, cudaPackages
, fetchFromGitHub
}:
with cudaPackages;
buildPythonPackage
{ buildInputs =
[ libcublas
libcusparse
];
nativeBuildInputs =
[ cmake
cuda_nvcc
];
pname = "bitsandbytes";
preBuild = ''
cd ..
export NVCC_APPEND_FLAGS="-I${lib.getDev cuda_cccl}/include -I${lib.getDev cuda_cudart}/include -L${lib.getLib cuda_cudart}/lib -L${lib.getStatic cuda_cudart}/lib"
cmake -DCMAKE_CXX_FLAGS="-I${lib.getDev cuda_cccl}/include -I${lib.getDev cuda_cudart}/include" -DCOMPUTE_BACKEND=cuda -B build . && cmake --build build
'';
src = fetchFromGitHub
{ owner = "TimDettmers";
repo = "bitsandbytes";
rev = "main";
hash = "sha256-YOvbMEpRVrbie5mo+mHV9mkfVIbPGgIggR10GLveBgM=";
};
version = "0.44.0.dev0";
}
I'm on the following nixpkg commit: 4f807e8940284ad7925ebd0a0993d2a1791acb2f
The patch for this derivation isn't relevant to the newer versions of bitsandbytes and the build fails:
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/python-modules/bitsandbytes/default.nix
https://github.com/bitsandbytes-foundation/bitsandbytes/tree/0.43.1
The newest version of bitsandbytes is 0.43.3.