EXSWHTEC-350 - Implement tests for hipModuleLaunchCooperativeKernel #429
Change-Id: I42342c7d4cceed67990f603cd83473fe76e7f856
Этот коммит содержится в:
коммит произвёл
Rakesh Roy
родитель
39bd6bcac6
Коммит
303836a7fd
@@ -20,6 +20,7 @@ THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <hip/hip_runtime.h>
|
||||
#include <hip/hip_cooperative_groups.h>
|
||||
|
||||
extern "C" {
|
||||
__global__ void NOPKernel() {}
|
||||
@@ -34,4 +35,9 @@ __global__ void Delay(uint32_t interval, const uint32_t ticks_per_ms) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__global__ void CoopKernel() {
|
||||
cooperative_groups::grid_group grid = cooperative_groups::this_grid();
|
||||
grid.sync();
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user