Is it possible to manually set the SMs used for one CUDA stream?

后端 未结 1 1121
一生所求
一生所求 2021-01-27 09:39

By default, the kernel will use all available SMs of the device (if enough blocks). However, now I have 2 stream with one computational-intense and one memory-intense, and I wan

相关标签:
1条回答
  • 2021-01-27 10:28

    In short, no there is no way to do what you envisage.

    The CUDA execution model doesn't provide that sort of granularity, and that isn't an accident. By abstracting that level of scheduling and work distribution away, it means (within reason) any code you can run on the smallest GPU of a given architecture can also run on the largest without any modification. That is important from a portability and interoperability point of view.

    0 讨论(0)
提交回复
热议问题