3990x high temperature

I think the cause here is that it IS optimized to use AMD processors. It uses enough of the special SIMD functionality that the cores run warm.
If it wasn’t optimized to use everything from the CPU, then it wouldn’t get as warm, because it wouldn’t be doing as much, and wouldn’t be using as many execution units.