Nvidia GPU cannot run glmark2 or glxgears in Ubuntu 22.04

I have nvidia card with driver 515.65.01 in Ubuntu 22.04 LTS (kernel 5.15.0-52-generic). The command nvidia-smi version details. ‘prime-select query’ shows ‘on-demand’. However, when I run ‘glxgears’ or ‘glmark2’ to benchmark gpu, the code runs on intel HD card and not on GPU. Is there a way to really run benchmarking codes on GPU?

Thanks and Regards