How to configure GPU resource within PBSPro

Thanks again. Did anybody tried this solution? Is there some contribution that can be find somewhere using CUDA_VISIBLE_DEVICE into PBS hooks?

Other threads seem to mention cgroup hook as @jon: Trying to get CUDA_VISIBLE DEVICES set with hook, GPU Access Limited by CGroup.

Would this work on PBS version 13?