jonysy / parenchyma

An extensible HPC framework for CUDA, OpenCL and native CPU.
75 stars 4 forks source link

Just-in-time (JIT) compilation #21

Open jonysy opened 7 years ago

jonysy commented 7 years ago

Add a graph along w/ a JIT compiler.

Design: ..

jonysy commented 7 years ago

discussion:

With OpenCL 2 the compilation model changed some to be much more flexible. Now there is an LLVM backend that targets the new SPIR-V intermediate representation, so any language compiler that targets LLVM should be capable of being used to target OpenCL. Other than that the model is pretty much the same but gains a step, source compiles to LLVM IR, LLVM IR compiles to SPIR-V, driver handles final compilation and execution.