I would like to run linux (preferably Ubuntu 18) as my operating system with an nvidia graphics card with binary drivers from nvidia as my primary card.
But I would also like to install an AMD card for GPU software development.
How would I set the system up in a way where the drivers and libraries don’t interfere?
no extra configuration is required. Install drivers for novideo, and ayymd radeonsi.
then to make sure your default x is running from nvidia gpu
you can check by editing xorg.conf
For most computing you just have to select which device to use for compute. (including games or whatever.)
most motherboards by default boot from the GPU nearest the CPU so put the nvidia GPU in slot 1.