adding swift cpu and gpu templates