Move all cuda code to posterize.cu/posterize.h