terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

Repeated rebuilds when CUDA is enabled in CMake build #415

Closed elliottslaughter closed 4 years ago

elliottslaughter commented 5 years ago

When I build Terra with CMake and CUDA is enabled, I'm seeing repeated rebuilds every time I run make. This is apparently a known issue though that link is talking about VS (and I'm on Ubuntu). There is some indication that the newer support for CUDA as a first-class language may fix this issue. That would require bumping the CMake required version to 3.10, which is in Ubuntu 18.04 but not in Ubuntu 16.04.

If there are other options that don't require a bump in the minimum CMake version I'm open to suggestions.

elliottslaughter commented 4 years ago

I am very confused, but I am now unable to reproduce this. I have tried builds with -DTERRA_USE_CUDA=ON, -DTERRA_USE_CUDA=OFF and no flag at all. The following build procedure:

make -j40
make -j40
make install -j40
make install -j40

Does exactly what you'd expect (build on the first make, install on the first make install).

I guess I'll close this issue unless/until I can reproduce again.