OpenPPL / ppl.nn

A primitive library for neural network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cuda build error

hyaihjq opened this issue · comments

/usr/bin/ld: /home/dentafilm/hongyang/workspace/openppl_code/ppl.nn/pplnn-build/install/lib/libpplnn_cuda_static.a(cuda_device.cc.o): in function ppl::nn::cuda::CudaDevice::Init(int, ppl::common::NcclParam*, bool)': cuda_device.cc:(.text._ZN3ppl2nn4cuda10CudaDevice4InitEiPNS_6common9NcclParamEb+0x215): undefined reference to cublasLtCreate'
/usr/bin/ld: /home/dentafilm/hongyang/workspace/openppl_code/ppl.nn/pplnn-build/install/lib/libpplnn_cuda_static.a(cuda_device.cc.o): in function ppl::nn::cuda::CudaDevice::~CudaDevice()': cuda_device.cc:(.text._ZN3ppl2nn4cuda10CudaDeviceD2Ev+0x38): undefined reference to cublasLtDestroy'
/usr/bin/ld: /home/dentafilm/hongyang/workspace/openppl_code/ppl.nn/pplnn-build/install/lib/libpplnn_cuda_static.a(cuda_device.cc.o): in function ppl::nn::cuda::CudaDevice::~CudaDevice()': cuda_device.cc:(.text._ZN3ppl2nn4cuda10CudaDeviceD0Ev+0x36): undefined reference to cublasLtDestroy'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/yolov8ClsInfer.dir/build.make:173: yolov8ClsInfer] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/yolov8ClsInfer.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

cublasLt 没有引入,cmake中要链接cublasLt