Git Product home page Git Product logo

Comments (5)

jakelee8 avatar jakelee8 commented on August 16, 2024

Did you install Cuda and cudnn?

https://developer.nvidia.com/accelerated-computing-toolkit

from leaf.

jianingy avatar jianingy commented on August 16, 2024

yep, i am sure i've installed them since I can compile and run other applications.

they are located at

/usr/lib/x86_64-linux-gnu/libcudnn.so
/usr/lib/x86_64-linux-gnu/libcuda.so

from leaf.

lvitol avatar lvitol commented on August 16, 2024

may be the cudnn version not match, try cudnn v3

from leaf.

jakelee8 avatar jakelee8 commented on August 16, 2024

This Stack Overflow answer fix that problem for me.

export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/

from leaf.

jakelee8 avatar jakelee8 commented on August 16, 2024

Though now, I'm running into undefined symbol errors.

note: Undefined symbols for architecture x86_64:
  "_cudnnConvolutionBackwardData_v3", referenced from:
      cudnn::api::convolution::_$LT$impl$u20$API$GT$::convolution_backward_data::he8223ff51775f8a6 in libcudnn-e530283dd2c0d0c1.rlib(cudnn-e530283dd2c0d0c1.0.o)
  "_cudnnConvolutionBackwardFilter_v3", referenced from:
      cudnn::api::convolution::_$LT$impl$u20$API$GT$::convolution_backward_filter::h75fc249aacd45956 in libcudnn-e530283dd2c0d0c1.rlib(cudnn-e530283dd2c0d0c1.0.o)
  "_cudnnSetConvolutionNdDescriptor_v3", referenced from:
      cudnn::convolution_descriptor::ConvolutionDescriptor::new::h06812852cb5d2f0b in libcudnn-e530283dd2c0d0c1.rlib(cudnn-e530283dd2c0d0c1.0.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

OS: Mac OS X 10.11.5

Cargo configuration: native + cuda

[features]
default = ["native", "cuda"]
native = ["leaf/native", "collenchyma/native"]
opencl = ["leaf/opencl", "collenchyma/opencl"]
cuda = ["leaf/cuda", "collenchyma/cuda"]

btw, I had to disable opencl support because the crate uses the -lOpenCL instead of '-framework OpenCL` flag needed on Mac OS.

Edit: there's an issue for this in the examples directory: autumnai/leaf-examples#9

from leaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.