cpu/gen - use hash of preprocessed source for JiT cache lookup - #2058
zatkins-dev wants to merge 10 commits into
Conversation
|
I feared weird compilers would have issues; ugh. |
|
I like being able to just open the cpp for debugability so it should remain an optional feature if removed by default |
70922f8 to
806975b
Compare
it's now only written in debug mode |
|
jk there's a problem |
Can you make CUDA and HIP mirror this behavior? |
806975b to
4ccb05b
Compare
83d3e0b to
a4cc34b
Compare
…t and output capturing
a4cc34b to
de04565
Compare
de04565 to
e684386
Compare
I kinda blacked out for a bit and now the CUDA Clang JiT is cached and reused in the same way as the CPU. The impact is wayyyy more dramatic, since compiling for device is super slow. |
|
Okay I think this is good to review, I'm happy with the current state. |
Purpose:
First attempt at actually using the cache. In my testing, the cost of preprocessing is < 10% of the compilation cost, making the preprocessed source a perfect target for hashing.
Remaining goals:
Closes: #2038
LLM/GenAI Disclosure:
None