What role does the GPU play in UE4 when compiling?

ok so wait the thing that says “Compiling Shaders” that takes forever. Is that CPU or GPU dependant?

Because I think as far as I remember when I used my IGP it was far worse.