Giter Site home page Giter Site logo

use git submodules about fbgemm HOT 7 CLOSED

pytorch avatar pytorch commented on May 18, 2024
use git submodules

from fbgemm.

Comments (7)

dskhudia avatar dskhudia commented on May 18, 2024 1

I think so. For now, you can download asmjit once and point ASMJIT_SRC_DIR env var to the downloaded source code to avoid downloading with build. Particular git tag we use is in https://github.com/pytorch/FBGEMM/blob/master/cmake/modules/DownloadASMJIT.cmake

from fbgemm.

dhpollack avatar dhpollack commented on May 18, 2024

@t-vi I run into this problem all the time too. I created a pull request. Perhaps you could test it out and let me know if it works for you.

from fbgemm.

dskhudia avatar dskhudia commented on May 18, 2024

@dhpollack Thanks a lot for the pull request. Let me test its impact on Caffe2/Pytorch build.

from fbgemm.

dskhudia avatar dskhudia commented on May 18, 2024

Update: I had to revert the commit because adding submodules involves one more step so that internal tools work correctly. Will re-commit soon.

from fbgemm.

dhpollack avatar dhpollack commented on May 18, 2024

@dskhudia I also noticed a few other things that I can update before you commit this pr.

  1. I may want to use ${FBGEMM_SOURCE_DIR} instead of ${CMAKE_SOURCE_DIR}, because I'm not sure what the latter is when FBGEMM is a submodule itself.
  2. You may want to consider renaming ${ASMJIT_SRC_DIR} to ${ASMJIT_SOURCE_DIR} to make it consistent with the other variables.

Let me know if you want me to make those changes. I am not sure it matters as both work for me right now.

from fbgemm.

dskhudia avatar dskhudia commented on May 18, 2024
  1. I will change it to FBGEMM_SOURCE_DIR
  2. I remember it being having an issue with ASMJIT's cmake file. So we should keep that.

from fbgemm.

dskhudia avatar dskhudia commented on May 18, 2024

@t-vi and @dhpollack : It's fixed now. Once the pytorch's fbgemm submodule gets updated (should happen soon) to fbgemm's latest commit, pytorch build will not download asmjit at build time.

@dhpollack : Thanks for your PR 👍

from fbgemm.

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.