4 ms·
What leads you to that conclusion? It is still possible to use #include in module implementations. We can use that to make the module implementation look like y
by janwas 2y ago
What leads you to that conclusion?
It is still possible to use #include in module implementations.
We can use that to make the module implementation look like your example.
Thus it ought to be possible, though I have not yet tried it.
- dyaroshev 2y agoWell. You have a file, something like: load.h You need to include it multiple times, compiled with different flags. So - it's never going to be in load.cxx or whatever that's called.
- janwas 2y agoAs mentioned ("re-include our source file"), we are indeed able to put the SIMD code, as well as the self-#include of itself, in a load.cxx TU. Here is an example: https://github.com/google/gemma.cpp/blob/9dfe2a76be63bcfe679b94335f171674420f92e8/ops/bench_matmul.cc#L49 https://github.com/google/gemma.cpp/blob/9dfe2a76be63bcfe679...
- dyaroshev 2y agoI don't think this works if your files are modules. Let's stop here, it doesn't seem like we understand each other.