A comprehensive framework for efficient, scalable, and performance-portable tensor applications