Make methods static since we know they are the same across translation units.
Merge branch 'better_cuda_perf'