How do you plot using a gpu on ubuntu 16.04?


I would like to know how to gpu plot on ubuntu 16.04. Because right now I’m cpu plotting and that takes 10 hours for 300gb. And I’m getting 2 2 terabyte hdds soon.

So I figured it out on ubuntu 16.04 so ask if you need to know how may make a post explaining how.