# How to a CPU queue and GPU queue and hoe to utilising it

**URL:** <https://community.openpbs.org/t/how-to-a-cpu-queue-and-gpu-queue-and-hoe-to-utilising-it/1077>\
**Category:** Developers\
**Created:** [July 15, 2018, 3:24am UTC](https://community.openpbs.org/t/how-to-a-cpu-queue-and-gpu-queue-and-hoe-to-utilising-it/1077 "2018-07-15T03:24:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [July 16, 2018, 1:03pm UTC](https://community.openpbs.org/t/how-to-a-cpu-queue-and-gpu-queue-and-hoe-to-utilising-it/1077/2 "2018-07-16T13:03:50Z")

</div>

How to create a queue ?

- as a root user on the PBS Server host
- qmgr -c “create queue CPUQ queue\_type=e,enabled=t,started=t”
- qmgr -c “create queue GPUQ queue\_type=e,enabled=t,started=t”

Now you can submit the jobs to either of the queues as below:  
qsub -q GPUQ – /bin/sleep 100  
qsub -q CPUQ – /bin/sleep 100

If in case you want to target nodes with cpus only and gpus only then please follow this link

- Please refer the PBS Pro administrator guid and search for Qlists:  
[https://pbsworks.com/pdfs/PBSAdminGuide18.2.pdf](https://pbsworks.com/pdfs/PBSAdminGuide18.2.pdf)

- [Node-level resource not taking effect](http://community.openpbs.org/t/node-level-resource-not-taking-effect/998)

Thank you

---

_[View the full topic](https://community.openpbs.org/t/how-to-a-cpu-queue-and-gpu-queue-and-hoe-to-utilising-it/1077)._
