MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / _save_compiler_paths

Function _save_compiler_paths

rightnow_cli/ui/setup_wizard.py:240–252  ·  view source on GitHub ↗

Save compiler paths to global config.

(config_manager: ConfigManager, paths: Dict[str, Optional[str]])

Source from the content-addressed store, hash-verified

238
239
240def _save_compiler_paths(config_manager: ConfigManager, paths: Dict[str, Optional[str]]):
241 """Save compiler paths to global config."""
242 # Load current config
243 config = config_manager.get()
244
245 # Update compiler paths
246 config.cuda.compiler_paths.nvcc = paths.get('nvcc')
247 config.cuda.compiler_paths.cl = paths.get('cl')
248 config.cuda.compiler_paths.ncu = paths.get('ncu')
249 config.cuda.compiler_paths.nsys = paths.get('nsys')
250
251 # Save to global config
252 config_manager.save_global(config)
253
254
255def show_compiler_status(config_manager: ConfigManager):

Callers 1

run_setup_wizardFunction · 0.85

Calls 2

save_globalMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected