Coder Social home page Coder Social logo

Building with CMake about lyra HOT 6 OPEN

google avatar google commented on August 16, 2024 2
Building with CMake

from lyra.

Comments (6)

aluebs avatar aluebs commented on August 16, 2024

Thank you for the request. Do you mean to use cmake instead of bazel?

from lyra.

KOLANICH avatar KOLANICH commented on August 16, 2024

I mean exactly this. I am not a big fan of bazel (after my poor experience with it a few years ago when I tried to build TensorFlow with it). I cannot exclude that either I don't understand bazel enough, or that it may be misconfigured, but the 4 things that I currently perceive in bazel as the worst are

  • it unneedingly builds dependencies that are already prebuilt by third parties and installed in the system
  • it doesn't have CPack-like module to generate packages I can install into the system
  • it is large itself, because its dependencies are embedded into it, including Java machine. It is not the way software is meant to be distributed for installation into distros. For installation into distros software should rely on the deps provided by distro and on distro package manager to install them.
  • It depends on JVM which is a large dependency, which is not very friendly for CI to install it every time.

In other words, Bazel was created the way assumming that its users are big rich enterprises that can afford itself to waste resources, like Google is, and ignoring needs of everyone else, especially the needs of just users of distros who just want to build a bleeding edge version of the software from source as faster and as cheaper as possible, generate the package that reuses already installed deps as mjch as possible and install it into the system and publish it to allow other people to install it.

from lyra.

aluebs avatar aluebs commented on August 16, 2024

Thank you for the detailed explanation. Those are all great points. Unfortunately I don't see us moving away from bazel any time soon, since it simplifies quite a bit our workflows. And maintaining a second build system independently seems like a lot of work and bug-prone. Do you know if there is a good way to translate bazel files into CMake?

from lyra.

KOLANICH avatar KOLANICH commented on August 16, 2024

I have just googled a little and found these 2 projects:

I have used neither of them, but feel like I may need to give them a try somewhen for PlaidML - a machine learning library using OpenCL, so suitable for AMDs.

I can say something though about both of them. None of them has good enough source code, both look like they were made in haste with a lot of dirty shortcuts to spare the devs from writing a few lines of code, and both of them look a bit abandoned.

from lyra.

aluebs avatar aluebs commented on August 16, 2024

If you end up trying any of them on Lyra, I'd love to hear about your experience.

from lyra.

xnorpx avatar xnorpx commented on August 16, 2024

dependencies is probably gonna be the painful part.

from lyra.

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.