Issue in using two gpu's at the same time

While using two gpu’s simultaneously, I am getting the following error.
qsub: Job violates queue and/or server resource limits

My submission script is:
#!/bin/bash
#PBS -l nodes=2:ppn=20
#PBS -l ngpus=2
#PBS -N sudhakar
#PBS -o out.log
#PBS -e error.log
#PBS -q prerungs

Is it the problem with the resource limit set by the administrator or something else this message is trying to inform. Something related to the submission script. Please suggest.

Thats correct, there is queue or server limit set by the administrator and hence you are seeing this message.

You can check the limits by running the below commands:

qmgr -c “print server”
qmgr -c “print queue @default

For example:
[root@pbsserver~]# qmgr -c “print queue workq”

create queue workq
set queue workq queue_type = Execution
set queue workq resources_min.walltime = 10:00:00
set queue workq resources_default.walltime = 10:00:00
set queue workq enabled = True
set queue workq started = True

[root@pbsserver~]# qsub -l walltime=00:01:00 – /bin/sleep 100
qsub: Job violates queue and/or server resource limits

Thanks for clarifying.