The tech-heavy Nasdaq Composite Index gained 26.39 points, or 1.06 percent, to 2,518.33.