The viewports are hardware accelerated. If you use the hardware renderbuffer you can render with your videocard. If you just do a normal render with mayas internal renderer or mental ray it will not use the videocard.