# Sub/virtual warps or serialize access?

**URL:** <https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590>\
**Category:** CUDA Programming and Performance\
**Created:** [July 11, 2026, 7:15pm UTC](https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590 "2026-07-11T19:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asterix\_obelix](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@asterix\_obelix](https://forums.developer.nvidia.com/u/asterix_obelix)\
**Post date:** [July 11, 2026, 7:15pm UTC](https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590/1 "2026-07-11T19:15:35Z")

</div>

Hello, hoping someone can clear this up for me. I am a bit confused in regards to how branch divergence is handled in CUDA. Say two paths are taken by threads in a warp.

I was under the impression that - Because all hardware lanes in a physical warp share a single program counter, the GPU cannot execute both paths simultaneously - so both paths are taken one after another - the branches are effectively serialized.

A lecture I saw on youtube makes a remark - GPUs can dynamically create “virtual/sub warps” by grouping threads from different warps that go through the same paths/branches - to effectively increase utilization - at some point these paths merge, and you are back to your original warp.

I did try searching about dynamic creation of virtual/sub warps and found some very old discussions surrounding half-warps on the forum. So I am curious if Nvidia GPUs ever handled branch divergence using sub/virtual warps?

---

<div class="post-metadata">

**Author:** ![striker159](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@striker159](https://forums.developer.nvidia.com/u/striker159)\
**Post date:** [July 11, 2026, 9:19pm UTC](https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590/2 "2026-07-11T21:19:55Z")

</div>

Since the introduction of Independent Thread Scheduling with the Volta Gpus, the program counter is per thread, not per warp. This allows to alternate between instructions from different branches

---

<div class="post-metadata">

**Author:** ![asterix\_obelix](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@asterix\_obelix](https://forums.developer.nvidia.com/u/asterix_obelix)\
**Post date:** [July 12, 2026, 12:52am UTC](https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590/3 "2026-07-12T00:52:39Z")

</div>

Hi, thanks. I am aware of that. I was curious if dynamic sub/virtual warps was ever a thing with Nvidia GPUs?

---

<div class="post-metadata">

**Author:** ![Curefab](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Curefab](https://forums.developer.nvidia.com/u/Curefab)\
**Post date:** [July 12, 2026, 10:05am UTC](https://forums.developer.nvidia.com/t/sub-virtual-warps-or-serialize-access/376590/4 "2026-07-12T10:05:11Z")

</div>

1. There is a small amount of blocking/synchronization instructions, which work on just the same-looking or only the actual same instruction: `.sync` vs. `.sync.aligned` (using the PTX names). But for even those, it could be that they need more cycles, if the program counter is not pointing to the same location.

2. I could imagine that the lecture on YouTube meant that divergent lanes may recombine as soon as their address is the same again. There are features in the hardware for it and there are instructions for it.

This paper mentions the `BSYNC` SASS instruction.  
[https://arxiv.org/pdf/2407.02944v1](https://arxiv.org/pdf/2407.02944v1)  
With `BSYNC` a reconvergence point for specified lanes can be set.

The increase in utilization comes from actually convergent again lanes to execute together versus being handled as if they still were divergent.

1. What I have never heard of, is lanes executing different instructions to be combined. E.g. different additions, etc. A reason why this is not done is that it is not only the e.g. arithmetic unit, which would be shared, but also which registers are accessed, do they use the register .reuse cache in writing or reading or which register bank is used, etc. There are details in the hardware, which a CUDA programmer is not thinking about. The lanes easily differ more than one would imagine. Also the instructions have to be loaded and decoded several times for each lane.
