Code Monkey home page Code Monkey logo

Comments (7)

devinamatthews avatar devinamatthews commented on June 6, 2024

The Makefile keeps a list of all objects in the MK_BLIS_OBJS variable, so you could hack the Makefile to print this out. However, some files will be compiled with different flags. If you're only building one sub-configuration (e.g. configure haswell) then you could get away with a single set of flags either pulled from BLIS or specified externally.

Alternatively, you could use a tool like bear to instrument the build and construct a compilation database.

from blis.

devinamatthews avatar devinamatthews commented on June 6, 2024

FYI in addition to object files, there are also lists (note plural) of source files which are used to generate the object list. I can't recall all of these ATM but you should be able to backtrack in the Makefile and find them.

from blis.

winterland1989 avatar winterland1989 commented on June 6, 2024

Yeah I could do it manually, but if a flat_sources.py is provided officially then things could be easier.

from blis.

devinamatthews avatar devinamatthews commented on June 6, 2024

Any comment about compiler flags? If it's just a matter of jamming all of the .c files together then we could probably hack something together.

from blis.

winterland1989 avatar winterland1989 commented on June 6, 2024

You mean if we choose a configure family like arm64 or x86_64 then different sub-families need different compile flag right? We can put limits on possible configurations from the cabal side, so that each cabal flag chooses one single sub-configuration, and in flat_sources.py this condition is checked too so that it can output a single file with flags needed.

from blis.

fgvanzee avatar fgvanzee commented on June 6, 2024

You mean if we choose a configure family like arm64 or x86_64 then different sub-families need different compile flag right?

@winterland1989 Yes, but it actually goes beyond just the sub-configurations needing different compiler flags. Even when just one sub-configuration is targeted, different parts of the framework are compiled with different sets of flags.

To see the full list of possible classes of CFLAGS used, take a look at the make functions defined in the section labeled "CFLAGS query functions" within common.mk.

from blis.

winterland1989 avatar winterland1989 commented on June 6, 2024

Thanks! I'll try a implement a different way to build blis with cabal then.

from blis.

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.