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

Let the Najarian Brothers Help You Generate Income With Options

Let the Najarian Brothers Help You Generate Income With Options

Amazon Prime Tops 100 Million Members and 4 Other Stories You Must Know Thursday

Amazon Prime Tops 100 Million Members and 4 Other Stories You Must Know Thursday

AAP Exclusive: Cramer on Why They Sold Broadcom Shares

AAP Exclusive: Cramer on Why They Sold Broadcom Shares

AAP Exclusive: Cramer's Trust Has Made $2.5M in Charitable Distributions

AAP Exclusive: Cramer's Trust Has Made $2.5M in Charitable Distributions

Jim Cramer: I Don't Want to Panic About Snap

Jim Cramer: I Don't Want to Panic About Snap