Save compiler paths to global config.
(config_manager: ConfigManager, paths: Dict[str, Optional[str]])
| 238 | |
| 239 | |
| 240 | def _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 | |
| 255 | def show_compiler_status(config_manager: ConfigManager): |
no test coverage detected