Compiling thermo in CUDA