Copy configurations on recorder init
Allows models to add additional configurations if needed, as the directories will be already created.
This commit is contained in:
		
							parent
							
								
									4778b8c9ab
								
							
						
					
					
						commit
						12e06498c4
					
				| @ -1,4 +1,4 @@ | |||||||
| /* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
 | /* Copyright (c) 2021-2025 Barcelona Supercomputing Center (BSC)
 | ||||||
|  * SPDX-License-Identifier: GPL-3.0-or-later */ |  * SPDX-License-Identifier: GPL-3.0-or-later */ | ||||||
| 
 | 
 | ||||||
| #include "recorder.h" | #include "recorder.h" | ||||||
| @ -19,6 +19,12 @@ recorder_init(struct recorder *rec, const char *dir) | |||||||
| 		return -1; | 		return -1; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/* TODO: Use configs per pvt */ | ||||||
|  | 	if (cfg_generate(rec->dir) != 0) { | ||||||
|  | 		err("cfg_generate failed"); | ||||||
|  | 		return -1; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -81,11 +87,5 @@ recorder_finish(struct recorder *rec) | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/* TODO: Use configs per pvt */ |  | ||||||
| 	if (cfg_generate(rec->dir) != 0) { |  | ||||||
| 		err("cfg_generate failed"); |  | ||||||
| 		return -1; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user