How to build opencv for mali GPU in arm

I want to use opencv in 3399 board, My os is ubuntu 18.04, but the GPU can not be invoked by umat, Wich opencv version is OK in the offical Release, or How to build to invoke GPU.