diff --git a/custom_ops/setup_ops.py b/custom_ops/setup_ops.py index 180116bf2c..dd4d464542 100644 --- a/custom_ops/setup_ops.py +++ b/custom_ops/setup_ops.py @@ -723,6 +723,8 @@ elif paddle.device.is_compiled_with_custom_device("metax_gpu"): "-Igpu_ops", "-DPADDLE_DEV", "-DPADDLE_WITH_CUSTOM_DEVICE_METAX_GPU", + "-Xcompiler", + "-Wno-non-pod-varargs", ], }