paddle::operators::jit::gen::SeqPoolJitCode needs an aligned allocator
Created by: GBuella
The standard new operator is used with an overaligned type:
paddle/fluid/operators/jit/gen/seqpool.cc:74:60: required from here
paddle/fluid/operators/jit/registry.h:33:29: error: ‘new’ of type ‘paddle::operators::jit::gen::SeqPoolJitCode’ with extended alignment 32 [-Werror=aligned-new=]
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Obviously this can result in runtime errors when using certain AVX instructions, if the allocated SeqPoolJitCode instance is misaligned.