Hello Triangle in CUDA/OpenGL

Hi all, hope you are having a great day. I am using GLFW and GLEW for OpenGL ,which uses my Integrated AMD GPU; but I want to use my Nvidia GPU for this purpose . As a quick-start, can you provide a sample HELLO TRIANGLE using the same . I will be using Latest toolkit and Drivers for this purpose .
Thank you