A rotating electric machine comprising: a housing ; a stator positioned inside the housing ; a rotor configured to rotate by receiving magnetic flux from the stator ; wherein the stator includes a plurality of winding sets, and each winding set comprises three windings, one of each phase; and a plurality of power conversion devices configured to supply a driving current to the plurality of winding sets of the stator , wherein the plurality of power conversion devices are each provided on a different flat portion , on an outer periphery of the housing , positioned so as to be separated from each other in a circumferential direction; and a winding set supplied with a driving current by a first power conversion device among the plurality of power conversion devices is different from a winding set supplied with a driving current by a second power conversion device being different from the first power conversion device ; and the flat portions are positioned so as to be separated from each other in a circumferential direction; wherein: the power conversion device includes a driving circuit having an inverter board and a switching element connected to the inverter board ; the flat portion has a recessed portion in a part thereof; and the inverter board is positioned at a position where a first surface of the switching element , opposing a board side of the switching element , and a bottom surface of the recessed portion are in contact with each other. a housing ; a stator positioned inside the housing ; a rotor configured to rotate by receiving magnetic flux from the stator ; wherein the stator includes a plurality of winding sets, and each winding set comprises three windings, one of each phase; and a plurality of power conversion devices configured to supply a driving current to the plurality of winding sets of the stator , wherein the plurality of power conversion devices are each provided on a different flat portion , on an outer periphery of the housing , positioned so as to be separated from each other in a circumferential direction; and a winding set supplied with a driving current by a first power conversion device among the plurality of power conversion devices is different from a winding set supplied with a driving current by a second power conversion device being different from the first power conversion device ; and the flat portions are positioned so as to be separated from each other in a circumferential direction; wherein: the power conversion device includes a driving circuit having an inverter board and a switching element connected to the inverter board ; the flat portion has a recessed portion in a part thereof; and the inverter board is positioned at a position where a first surface of the switching element , opposing a board side of the switching element , and a bottom surface of the recessed portion are in contact with each other. the power conversion device includes a driving circuit having an inverter board and a switching element connected to the inverter board ; the flat portion has a recessed portion in a part thereof; and the inverter board is positioned at a position where a first surface of the switching element , opposing a board side of the switching element , and a bottom surface of the recessed portion are in contact with each other. <EOS>