Implemented avx2 support for global modes