script to get grid driver suitable for host


the host/hypervisor and grid driver in a VM are bound together.
I cannot install an newer grid driver on an older host.

How can I check, within the VM which grid driver is necessary?
Something like this:

HOST_VER=`cat /proc/vmware/host/nvidia/version`

case "$HOST_VER"; do
   "440*") // do install grid 440
   "367*") // do install grid 367

Another option is do take a closer look in the nvidia driver, there must be
a way to test this with some C-source, because the newer nvidia driver,
somehow knows that it does not work together with the host version.