Git Product home page Git Product logo

Comments (6)

paulkass avatar paulkass commented on August 15, 2024

yeah this means that you don't have the cublas header files installed on your computer.

from juice.

drahnr avatar drahnr commented on August 15, 2024

Currently the default feature set includes the cuda backend, and hence requires an additional set of libraries.

Note that using --no-default-features --features=native should remove all lib dependencies but openblas at the cost of some features and availability of certain layer types. Not that this does not work from the workspace, but only from the individual projects!

The dependency situation deems some more attention in the documentation which will be addressed soon.

from juice.

drahnr avatar drahnr commented on August 15, 2024

Given that the workspace level features are not yet specialized, this is a bit of sh*t situation right now, we kind of depend on rust-lang/cargo@3a976c1 landing in stable.

The only workaround right now is to edit the workspace Cargo.toml to disable cuda features by replacing the existing patches section with

[patch.crates-io]
coaster-nn = { path = "./coaster-nn" , default-features = false, features=["native"]}
coaster-blas = { path = "./coaster-blas" , default-features = false, features=["native"]}
coaster = { path = "./coaster" , default-features = false, features=["native"]}
greenglas = { path = "./greenglas" , default-features = false, features=["native"]}
juice = { path = "./juice" , default-features = false, features=["native"]}
rust-blas = { path = "./rust-blas"}
rcublas = { path = "./rcublas/cublas"}
rcublas-sys = { path = "./rcublas/cublas-sys"}
rcudnn = { path = "./rcudnn/cudnn"}
rcudnn-sys = { path = "./rcudnn/cudnn-sys"}

from juice.

drahnr avatar drahnr commented on August 15, 2024

Note also that the dependencies like openblas either need be made known to your pkg-config by defining addition look up dirs where the .pc files reside, or you set env vars BLAS_STATIC=1 BLAS_INCLUDE_DIR=/where/the/.h/files/are BLAS_LIB_DIR=/where/your/lib/resides BLAS_VARIANT="openblas or BLAS"

This also plays into #110

from juice.

drahnr avatar drahnr commented on August 15, 2024

With #121 there will be an improved landing README.md which hopefully avoids all of these struggles.

from juice.

drahnr avatar drahnr commented on August 15, 2024

So this should be solved if cuda 11.2+ is used with the current master-branch. Feel free to re-open.

from juice.

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.