inducer / inducer/pycuda

cudaLaunchCooperativeKernel support

Open
#253 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.1k
Forks
298
Avg merge
4m
Merged PRs (30d)
1

Description

Is it difficult to add cudaLaunchCooperativeKernel() call?

Consider the kernel:

```
#include
namespace cg = cooperative_groups;
extern "C" __global__ void kernel (float *buf) {
cg::grid_group grid = cg::this_grid();
assert(grid.is_valid());
grid.sync();
}
```

The kernel will assert with `kernel <<< dim1,dim2 >>> (buf_gpu)` syntax. Instead, cudaLaunchCooperativeKernel must be used:

```
float *buf_gpu = .....;
void *kernel_args[] = {&buf_gpu};
cudaLaunchCooperativeKernel((void*)kernel, dim1, dim2, kernel_args);
```

It does not look very complicated. Why it is not yet implemented?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.