The GP is the counterpart to the limited partners who provide most of the money. It earns a management fee for running the fund and, if the fund does well, carried interest.
In a classic limited partnership the general partner is responsible for the partnership’s debts without limit. For that reason the GP is usually a company set up just for the fund, rather than the investment firm itself.
The GP normally invests some of its own money in the fund too, so that its interests line up with those of the investors. People often use “GP” loosely for the fund manager or the investment firm as a whole.