Detach gpu from running container

I am trying to prototype a solution, that would allow me to detach the gpu from a container so that it can successfully allow me to use criu to checkpoint state. I am a little perplexed as to where to start looking at this. My apologies, since I am not particularly familiar with how PCI-E and OS and pass-through feature all interfaces, so if anyone can lend me some direction that would be great