Nvidia (NVDA) and Advanced Micro Devices (AMD) shares are on fire not just because of Apple (AAPL) .

"Technology is on fire - look at what the tech sector has done," said Kenny Polcari, director of equities at O'Neil Securities. "Even energy companies - they are partly becoming technology companies."

Nvidia shares are up over 38% since the start of the year, while AMD shares are up 18%. The broad S&P 500 is up 8.6%.

More From TheStreet:

More from Video

Need Some Income for Your Portfolio? Consider Closed-End Funds

Need Some Income for Your Portfolio? Consider Closed-End Funds

Ferrari 488 Spider: A 661 Horsepower Rolling Piece of Fine Italian Art

Ferrari 488 Spider: A 661 Horsepower Rolling Piece of Fine Italian Art

Former GE Exec Beth Comstock Reveals This Dire Change Companies Need to Make

Former GE Exec Beth Comstock Reveals This Dire Change Companies Need to Make

Jim Cramer: Be Cautious on Cannabis Plays

Jim Cramer: Be Cautious on Cannabis Plays

Jim Cramer: There Is Concern But Micron Downside is Limited

Jim Cramer: There Is Concern But Micron Downside is Limited