File tree Expand file tree Collapse file tree
pkgs/development/python-modules/vllm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 cupy ,
9494 flashinfer ,
9595 nvidia-ml-py ,
96+ # rocm-only
97+ pybind11 ,
9698
9799 # optional-dependencies
98100 # audio
@@ -584,11 +586,46 @@ buildPythonPackage.override { stdenv = torch.stdenv; } (finalAttrs: {
584586 pythonRelaxDeps = true ;
585587
586588 pythonImportsCheck = [ "vllm" ] ;
587- makeWrapperArgs = lib . optionals cudaSupport [
588- "--set"
589- "VLLM_NCCL_SO_PATH"
590- "${ cudaPackages . nccl } /lib/libnccl.so"
591- ] ;
589+ makeWrapperArgs =
590+ lib . optionals cudaSupport [
591+ "--set"
592+ "VLLM_NCCL_SO_PATH"
593+ "${ cudaPackages . nccl } /lib/libnccl.so"
594+ ]
595+ ++ lib . optionals rocmSupport [
596+ "--set"
597+ "CPLUS_INCLUDE_PATH"
598+ ( lib . concatStringsSep ":" (
599+ map ( p : "${ lib . getInclude p } /include" ) (
600+ ( with rocmPackages ; [
601+ rocthrust
602+ rocprim
603+ clr
604+ hipsparse
605+ hipblas
606+ hipblas-common
607+ hipblaslt
608+ hipsolver
609+ rocsparse
610+ rocblas
611+ rocsolver
612+ hipfft
613+ ] )
614+ ++ [
615+ pybind11
616+ ]
617+ )
618+ ) )
619+
620+ "--set"
621+ "HIP_DEVICE_LIB_PATH"
622+ "${ rocmPackages . rocm-device-libs } /amdgcn/bitcode"
623+
624+ "--prefix"
625+ "PATH"
626+ ":"
627+ "${ rocmPackages . clr } /bin"
628+ ] ;
592629
593630 passthru = {
594631 # make internal dependency available to overlays
You can’t perform that action at this time.
0 commit comments