.U.S. inventories rose, led by the tech-heavy Nasdaq Compound, after the July producer-price index showed that factory-gate inflation decreased slightly from June.