Tiramisu-Compiler / tiramisu

A polyhedral compiler for expressing fast and portable data parallel algorithms
http://tiramisu-compiler.org
MIT License
905 stars 131 forks source link

Further Cmake fixing #384

Closed wraith1995 closed 1 year ago

wraith1995 commented 1 year ago

This pull broadly refactors the cmake files to maintain the current build procedure, but also be more robust and modular. In particular:

  1. Better Supports out of tree builds by making sure references to the build directory are controlled in the usual way by cmake. (Not all cases are covered yet, but more are)
  2. Creates various options so one does not have to build with tutorials, docs, benchmarks, and tests. This currently means we can build the main system out of sources without worrying about the rest of these right now.
  3. Refactors the core tiramisu build into a src/CMakelists.txt as ninja prefers this apparently.

Ideally, we should probably refactor the cmake further, perhaps following what Halide has done.