Script.single_warp¶
- Script.single_warp(warp=0)¶
Create a thread group context with a single warp (32 threads).
This method is equivalent to thread_group(<first-thread-in-a-warp>, num_threads=32) that creates a thread group context with 32 threads. All instructions within the context will be executed by only one warp.
- Returns:
ret – The thread group context created.
- Return type:
ThreadGroupContext
- Parameters:
warp (int)