Giter Site home page Giter Site logo

Does not build about lsh-rs HOT 11 CLOSED

ritchie46 avatar ritchie46 commented on June 15, 2024
Does not build

from lsh-rs.

Comments (11)

ritchie46 avatar ritchie46 commented on June 15, 2024

Hi.. Could you tell me which example you are trying to run? I notice that the blas dependencies can be troublesome.

from lsh-rs.

ijsnow avatar ijsnow commented on June 15, 2024

Sorry, coulda been more specific. I get the error when running make build in examples/neural-network

from lsh-rs.

ritchie46 avatar ritchie46 commented on June 15, 2024

I believe the examples are not up to date anymore indeed. The lsh-rs library still builds on my side (I hope on yours as well). However the examples don't work anymore because my blas libraries don't compile. At the moment I am too busy too work that out. But as the main library still builds I believe it should work with updating some dependencies / toggling off blas. If you believe there are any issues with the main library let me know, I'll figure it out.

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

Also seeing this error when I add lsh-rs = "0.4.0" to cargo.toml and run the install.

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

Hey, so I managed to compile by pulling the code out of lsh-rs/lsh-rs/src/ and copying into my src, with some module changes.. you can see this commit here if it's helpful bwindsor22/thistle@477cd93

As an aside, for vector similarity lookup, you might also check out granne, hnswlib-rs, and hnsw libraries

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

@ritchie46 thanks for the comment on blas, was helpful -- thoughts on shipping the examples separately? Something like Cargo.toml -> RemoveMe.Cargo.toml for a quick fix

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

@ritchie46 err, looking back, some of the errors that @ijsnow saw were things I fixed locally -- e.g. changing this to std::marker::PhantomData

8 | use serde::export::PhantomData;
| ^^^^^^ private module

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

... however when git clone and cargo make locally, I do get the blas error. So I think the blas error is an issue, but as I can get the code to compile without solving it, it might be possible to ship a working version of this lib only by quarantining the blas bit and separately solving the serde errors ijsnow was seeing

from lsh-rs.

ritchie46 avatar ritchie46 commented on June 15, 2024

@ritchie46 err, looking back, some of the errors that @ijsnow saw were things I fixed locally -- e.g. changing this to std::marker::PhantomData

8 | use serde::export::PhantomData;
| ^^^^^^ private module

Yes, that's definitly a good one. Could you make a PR for that fix?

from lsh-rs.

ritchie46 avatar ritchie46 commented on June 15, 2024

uarantining the blas bit and

This make sense, BLAS is only for squeezing out max performance, but should definitely be opt in.

from lsh-rs.

bwindsor22 avatar bwindsor22 commented on June 15, 2024

Great, submitted.

from lsh-rs.

Related Issues (11)

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.