Skip to content

cuda.compute: Expose a way to pass additional compilation options to NVRTC #6873

@shwina

Description

@shwina

https://docs.nvidia.com/cuda/nvrtc/index.html#supported-compile-options

It would be useful to be able to pass additional compiler flags to NVRTC to control e.g., floating point math.

The CCCL.c layer already provides this facility, we just need to plumb it through to the user.

The API could look something like:

set_nvrtc_compile_options({"fmad": "true"})

Or on a per algorithm basis:

reducer = make_reduce_into(d_in, d_out, op, h_init, num_items, nvrtc_compile_options={"fmad": "true"})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions