first functionality to create a code that can be built under cpu and gpu