add ifdef for cpu/gpu