move macro from .cu to .h