Nasdaq rallies with Nvidia, tech shares; investors look toward Jackson Hole