I am trying to build a python package, namely flash-attn with CUDA, but it stuck at satisfying the dependencies that auto-patchelf
required. This is not my first time to do so, so of course I tried to find the required packages and added them to the build inputs’ list, however, it has zero effect on this build! For instance, it’s complaining about missing libcudart.so.12
that should have been fixed after adding cuda_cudart
dependency, but nop! also it found gcc-13.2.0-lib
for libstdc++.so.6
dependency, where I explicitly added gcc12Stdenv.defaultNativeBuildInputs
list to the build inputs! how can I provide the dependencies then?! I am so confused! any hint or idea would be appreciated. thanks.
{ pkgs ? import <nixpkgs> {
config.allowUnfree = true;
config.cudaSupport = true;
}
}:
let
flash-attn = with pkgs; with pkgs.python3.pkgs; buildPythonPackage rec {
pname = "flash_attn";
version = "2.6.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-W/rpUArY59KTfrzLSQbzvEZNG/Zu7dDkravVIIEce1I=";
};
inputsEnv = python3.withPackages (p: with p; [
torchWithCuda
psutil
ninja
pybind11
einops
]);
doCheck = false;
nativeBuildInputs = [
git
which
setuptools
libtorch-bin
autoPatchelfHook
wheel
inputsEnv
] ++ (with cudaPackages; [
cuda_nvcc
cudatoolkit
cuda_cudart
cudnn
])
++ gcc12Stdenv.defaultNativeBuildInputs;
CUDA_HOME = "${cudaPackages.cudatoolkit}";
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
LD_LIBRARY_PATH = "/usr/lib64";
EXTRA_LDFLAGS = "-L/lib -L${linuxPackages.nvidia_x11}/lib";
EXTRA_CCFLAGS = "-I/usr/include";
};
in
pkgs.mkShell {
name = "flash-attn";
buildInputs = with pkgs; [
flash-attn
];
}
the output is
$ nix-shell
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpath instead
these 3 derivations will be built:
/nix/store/q96ahxc95q2dq08bwy35xxzk6jp31gm7-libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip.drv
/nix/store/00z96avhmsjx3gq0yms76a1255p92c1x-libtorch-2.3.0.drv
/nix/store/fq42lqzggc61h539mng97qhpqy3jn9a7-python3.11-flash_attn-2.6.3.drv
building '/nix/store/q96ahxc95q2dq08bwy35xxzk6jp31gm7-libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip.drv'...
trying https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcu121.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2414M 100 2414M 0 0 21.8M 0 0:01:50 0:01:50 --:--:-- 22.0M
unpacking source archive /tmp/nix-build-libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip.drv-0/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcu121.zip
building '/nix/store/00z96avhmsjx3gq0yms76a1255p92c1x-libtorch-2.3.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/1xwsg7ibx0wz1jgsmranm7nagjcim3ir-libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip
source root is libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: installPhase
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file '/nix/store/v555g84n7wl6yxzwpmn3kfhip7lv8fys-libtorch-2.3.0-dev/share/cmake/Torch/TorchConfig.cmake')
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_global_deps.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10d_cuda_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublas-37d11411.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-b51b459d.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libjitbackend_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcaffe2_nvrtc.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda_linalg.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libgomp-98b21ff3.so.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10_cuda.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libbackend_with_compiler.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudart-9335f6a2.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorchbind_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublasLt-f97bfc2c.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_python.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libshm.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-builtins-6c5639ce.so.12.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvToolsExt-847d78f2.so.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cpu.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnnapi_backend.so
shrinking RPATHs of ELF executables and libraries in /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_global_deps.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10d_cuda_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublas-37d11411.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-b51b459d.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libjitbackend_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcaffe2_nvrtc.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda_linalg.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libgomp-98b21ff3.so.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10_cuda.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_infer.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libbackend_with_compiler.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudart-9335f6a2.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorchbind_test.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublasLt-f97bfc2c.so.12
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_python.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libshm.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-builtins-6c5639ce.so.12.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_train.so.8
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvToolsExt-847d78f2.so.1
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cpu.so
shrinking /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnnapi_backend.so
checking for references to /tmp/nix-build-libtorch-2.3.0.drv-0/ in /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0...
patching script interpreter paths in /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0
shrinking RPATHs of ELF executables and libraries in /nix/store/v555g84n7wl6yxzwpmn3kfhip7lv8fys-libtorch-2.3.0-dev
shrinking RPATHs of ELF executables and libraries in /nix/store/v555g84n7wl6yxzwpmn3kfhip7lv8fys-libtorch-2.3.0-dev
checking for references to /tmp/nix-build-libtorch-2.3.0.drv-0/ in /nix/store/v555g84n7wl6yxzwpmn3kfhip7lv8fys-libtorch-2.3.0-dev...
patching script interpreter paths in /nix/store/v555g84n7wl6yxzwpmn3kfhip7lv8fys-libtorch-2.3.0-dev
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_global_deps.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10d_cuda_test.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_infer.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublas-37d11411.so.12...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-b51b459d.so.12...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libjitbackend_test.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcaffe2_nvrtc.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda_linalg.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_train.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cuda.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_cnn_infer.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_ops_train.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libgomp-98b21ff3.so.1...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libc10_cuda.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_infer.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libbackend_with_compiler.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudart-9335f6a2.so.12...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorchbind_test.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcublasLt-f97bfc2c.so.12...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_python.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libshm.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvrtc-builtins-6c5639ce.so.12.1...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libcudnn_adv_train.so.8...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnvToolsExt-847d78f2.so.1...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libtorch_cpu.so...
setting rpath for /nix/store/brczr6kpca18sv7w6c6wsrx0vw1dw19v-libtorch-2.3.0/lib/libnnapi_backend.so...
fixupPhase completed in 47 seconds
building '/nix/store/fq42lqzggc61h539mng97qhpqy3jn9a7-python3.11-flash_attn-2.6.3.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setup-cuda-hook
Running phase: unpackPhase
unpacking source archive /nix/store/7fhwbdhgx2f92h5pm9davbasb3lgwkls-flash_attn-2.6.3.tar.gz
source root is flash_attn-2.6.3
setting SOURCE_DATE_EPOCH to timestamp 1721951149 of file flash_attn-2.6.3/setup.cfg
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Executing setupCUDAToolkitCompilers
no configure script, doing nothing
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
fatal: not a git repository (or any of the parent directories): .git
torch.__version__ = 2.3.0
* Building wheel...
fatal: not a git repository (or any of the parent directories): .git
torch.__version__ = 2.3.0
running bdist_wheel
Guessing wheel URL: https://github.com/Dao-AILab/flash-attention/releases/download/v2.6.3/flash_attn-2.6.3+cu123torch2.3cxx11abiTRUE-cp311-cp311-linux_x86_64.whl
Raw wheel path /tmp/nix-build-python3.11-flash_attn-2.6.3.drv-0/flash_attn-2.6.3/dist/.tmp-4ulegqp7/flash_attn-2.6.3-cp311-cp311-linux_x86_64.whl
Successfully built flash_attn-2.6.3-cp311-cp311-linux_x86_64.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for flash_attn-2.6.3-cp311-cp311-linux_x86_64.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed flash_attn-2.6.3-cp311-cp311-linux_x86_64.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3
shrinking /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
checking for references to /tmp/nix-build-python3.11-flash_attn-2.6.3.drv-0/ in /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3...
patching script interpreter paths in /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3
stripping (with command strip and flags -S -p) in /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/5dry4sx5vq82y2p9daz1gj9smd2f10kd-python3.11-flash_attn-2.6.3-dist
checking for references to /tmp/nix-build-python3.11-flash_attn-2.6.3.drv-0/ in /nix/store/5dry4sx5vq82y2p9daz1gj9smd2f10kd-python3.11-flash_attn-2.6.3-dist...
patching script interpreter paths in /nix/store/5dry4sx5vq82y2p9daz1gj9smd2f10kd-python3.11-flash_attn-2.6.3-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
automatically fixing dependencies for ELF files
{'append_rpaths': [],
'extra_args': [],
'ignore_missing': [],
'libs': [PosixPath('/nix/store/7hnr99nxrd2aw6lghybqdmkckq60j6l9-python3-3.11.9/lib')],
'paths': [PosixPath('/nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3'),
PosixPath('/nix/store/5dry4sx5vq82y2p9daz1gj9smd2f10kd-python3.11-flash_attn-2.6.3-dist')],
'recursive': True,
'runtime_dependencies': []}
searching for dependencies of /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
libc10.so -> not found!
libtorch_cpu.so -> not found!
libtorch_python.so -> not found!
libcudart.so.12 -> not found!
libc10_cuda.so -> not found!
libtorch_cuda.so -> not found!
libstdc++.so.6 -> found: /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib
libgcc_s.so.1 -> found: /nix/store/0rxb3ixzk4zaqivc9s795m0a3679wbw2-gcc-13.2.0-libgcc/lib
setting RPATH to: /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib:/nix/store/0rxb3ixzk4zaqivc9s795m0a3679wbw2-gcc-13.2.0-libgcc/lib
auto-patchelf: 6 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libc10.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libtorch_cpu.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libtorch_python.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libcudart.so.12 wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libc10_cuda.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libtorch_cuda.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
error: builder for '/nix/store/fq42lqzggc61h539mng97qhpqy3jn9a7-python3.11-flash_attn-2.6.3.drv' failed with exit code 1;
last 10 log lines:
> setting RPATH to: /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib:/nix/store/0rxb3ixzk4zaqivc9s795m0a3679wbw2-gcc-13.2.0-libgcc/lib
> auto-patchelf: 6 dependencies could not be satisfied
> error: auto-patchelf could not satisfy dependency libc10.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> error: auto-patchelf could not satisfy dependency libtorch_cpu.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> error: auto-patchelf could not satisfy dependency libtorch_python.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> error: auto-patchelf could not satisfy dependency libcudart.so.12 wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> error: auto-patchelf could not satisfy dependency libc10_cuda.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> error: auto-patchelf could not satisfy dependency libtorch_cuda.so wanted by /nix/store/482rdzjspg25fch0pnx9bi7wx0iaz3p9-python3.11-flash_attn-2.6.3/lib/python3.11/site-packages/flash_attn_2_cuda.cpython-311-x86_64-linux-gnu.so
> auto-patchelf failed to find all the required dependencies.
> Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
For full logs, run 'nix log /nix/store/fq42lqzggc61h539mng97qhpqy3jn9a7-python3.11-flash_attn-2.6.3.drv'.