Skip to content

cudaLaunchCooperativeKernel support #253

Description

@AlexanderZvyagin

Is it difficult to add cudaLaunchCooperativeKernel() call?

Consider the kernel:

#include <cooperative_groups.h>
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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions