Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions cuda_core/cuda/core/_program.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,30 @@ cdef inline object _prepare_nvvm_options_impl(object opts, bint as_bytes):
unsupported.append("fdevice_syntax_only")
if opts.minimal is not None and opts.minimal:
unsupported.append("minimal")
if opts.no_cache is not None and opts.no_cache:
unsupported.append("no_cache")
if opts.fdevice_time_trace is not None:
unsupported.append("fdevice_time_trace")
if opts.device_float128 is not None and opts.device_float128:
unsupported.append("device_float128")
if opts.frandom_seed is not None:
unsupported.append("frandom_seed")
if opts.ofast_compile is not None:
unsupported.append("ofast_compile")
if opts.pch is not None and opts.pch:
unsupported.append("pch")
if opts.create_pch is not None:
unsupported.append("create_pch")
if opts.use_pch is not None:
unsupported.append("use_pch")
if opts.pch_dir is not None:
unsupported.append("pch_dir")
if opts.pch_verbose is not None:
unsupported.append("pch_verbose")
if opts.pch_messages is not None:
unsupported.append("pch_messages")
if opts.instantiate_templates_in_pch is not None:
unsupported.append("instantiate_templates_in_pch")
if unsupported:
raise CUDAError(f"The following options are not supported by NVVM backend: {', '.join(unsupported)}")

Expand Down
12 changes: 12 additions & 0 deletions cuda_core/tests/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,18 @@ def test_program_options_bad_define_macro_nested_list_invalid_element():
{"split_compile": 2},
{"fdevice_syntax_only": True},
{"minimal": True},
{"no_cache": True},
{"fdevice_time_trace": "trace.json"},
{"device_float128": True},
{"frandom_seed": "1"},
{"ofast_compile": "0"},
{"pch": True},
{"create_pch": "out.pch"},
{"use_pch": "in.pch"},
{"pch_dir": "pch-cache"},
{"pch_verbose": False},
{"pch_messages": False},
{"instantiate_templates_in_pch": False},
],
ids=lambda kw: next(iter(kw)),
)
Expand Down
Loading