Resizable Bar configuration

We are on our way to starting using the GPUDirect feature of our NVIDIA graphics cards and in order to achieve that we have to configure Resizable Bar. How can we set it to 8GB on A100, A5000 and L40? This is a requirement that we have from our camera manufacturer.

Asking because we are currently fighting with the configuration of Resizable Bar on A5000 and used dedicated scripts from NVIDIA to do so, after which our graphics card refused to be detected and we had to replace it with a new one. Also important part - we do not have that option of configuring Resizable Bar in our BIOS, that is why we had to resort to using the script.

We used: nvidia-display-mode-selector-tool-home
And this document: developer.nvidia.com/sites/default/files/akamai/NVIDIA_Display_Mode_Selector_Tool_User_Guide.pdf
We used option: physical_display_enabled_8GB_bar1