cuda template engine and more