JIT Compiling

I noticed this with 2.1 and I think I want to use it - many of the kernel paraemets which are entered as variables are constant throughout the lifetime of the application and knowing these values at compile time would really help! It appears that I need to be using the driver API. I’m guessing that I won’t have any luck if I try to mix them? I seem to remember successful mixing of something simple before (to work out how much memory I had left IIRC).

I’m going to do some tests to make sure that this is actually what I want. How much work is transferring to the driver API? It seems fairly straight forward… but I imagine there are always things that are a bit tricky…