Skip to content

Program.compile() options parameter is not handled properly #221

@keenan-simpson

Description

@keenan-simpson

compile() requires the options parameter to be an iterable which is inconsistent with the use of @ dataclass to support options to the other methods (device.create_stream etc.) This is not a bug, but rather an possible ux enhancement.

calling : Program(empty_entrypoint_kernel, "c++").compile("ltoir", ("-dlto"))

cuda.core.experimental._utils.NVRTCError: 5: NVRTC_ERROR_INVALID_OPTION, compilation log:
nvrtc: error: unrecognized option - found

("dlto",) would succeed.

Metadata

Metadata

Labels

P1Medium priority - Should docuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementstriageNeeds the team's attention

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions