# How do multiple CUDA programs run?

**URL:** <https://forums.developer.nvidia.com/t/how-do-multiple-cuda-programs-run/31166>\
**Category:** CUDA Programming and Performance\
**Created:** [October 23, 2013, 4:00pm UTC](https://forums.developer.nvidia.com/t/how-do-multiple-cuda-programs-run/31166 "2013-10-23T16:00:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vichord](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@vichord](https://forums.developer.nvidia.com/u/vichord)\
**Post date:** [October 23, 2013, 4:00pm UTC](https://forums.developer.nvidia.com/t/how-do-multiple-cuda-programs-run/31166/1 "2013-10-23T16:00:59Z")

</div>

Hi,

I submited two CUDA programs on by one onto the GPU with 2 SMs. I specified the first CUDA program with 1 block and expect it run on 1 SM, and then submitted another CUDA program onto the CUDA with hundreds of blocks.

How do these multiple CUDA programs run on the GPU?

On my platform, it seems that the first CUDA Program run first, but the second program wait until the first program finished and start to run. But that is not my expectation, I would like them could run simultaneously.

---

<div class="post-metadata">

**Author:** ![pasoleatis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pasoleatis](https://forums.developer.nvidia.com/u/pasoleatis)\
**Post date:** [October 23, 2013, 9:03pm UTC](https://forums.developer.nvidia.com/t/how-do-multiple-cuda-programs-run/31166/2 "2013-10-23T21:03:41Z")

</div>

In general they just time slice. The kernels from different programs will run sequentially. This means the program with 1 block keeps the gpu occupied until the kernel is done, then switches to the other proram. If you have compute capability 3.5 there is something called HyperQ, which in theory means that kernels from different CUDA programs run concurrently. In practice I am not sure if this really works.
