hikettei / cl-waffe2

[Experimental] Graph and Tensor Abstraction for Deep Learning all in Common Lisp
https://hikettei.github.io/cl-waffe2/
MIT License
124 stars 5 forks source link

[Enhancement] Added a simple JIT Compiler from Lisp to vectorized C. #49

Closed hikettei closed 11 months ago

hikettei commented 11 months ago

I've added new backends: JITCPUTensor and JITCPUScalarTensor which works by dynamically compiling the cl-waffe2 program into a C program. and not they're available on :cl-waffe2/backends.jit.cpu package and enabled under the (with-cpu-jit &body body) macro.

Note that this feature is still in the experimental stage. In fact, the generated C code is still redundant and not optimised in any way. In addition, it has not yet been fully tested and is unstable.