adEngine AMD refactoring