Skip to content

With CUDA 13.0 and later, use the new cuCtxCreate() version 4, taking a params class #746

@eyalroz

Description

@eyalroz

CUDA 13.0 has replaced the older cuCtxCreate() function with a new version, v4, having the following signature:

context CUresult CUDAAPI cuCtxCreate(
    CUcontext *pctx,
    CUctxCreateParams *ctxCreateParams, 
    unsigned int flags, 
    CUdevice dev);

This can be used with a default-initialized params structure, for the same effect as earlier-CUDA-version cuCtxCreate(); let's do that.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions