optional cuda mode

if you set line 10 in run.lua to true, then you can optionally run the pipeline on GPU