guarded cpp numa codegen with macro