diff --git a/c10/macros/Macros.h b/c10/macros/Macros.h index 5499a7d8b81..d65fd8daebb 100644 --- a/c10/macros/Macros.h +++ b/c10/macros/Macros.h @@ -179,7 +179,7 @@ namespace at { namespace cuda { using namespace c10::hip; }} /// C10_NOINLINE - Functions whose declaration is annotated with this will not /// be inlined. #ifdef __GNUC__ -#define C10_NOINLINE __attribute__((__noinline__)) +#define C10_NOINLINE __attribute__((noinline)) #elif _MSC_VER #define C10_NOINLINE __declspec(noinline) #else