before trying to move device code to macros in operations.h