I have written a program using a lot of openGL calls. But When I run the program on Nvidia Optimus system, the integrated display card is always used. That is not what I want. Because some hardware features are missing on integrated display card which use by my program.
So how to tell the optimus system to use discrete display card when run my program?
I know the user can choose a particular graphics processor to use by Nvidia Control Panel. But I don't want that operation is done by each user of my program. The switching decision should be done in my program. Does anybody know how to do this? Thanks very much.
By the way, how to do this if I have a AMD display card?