Fix nOS-V multiple-segment emu test
The ovni_proc_set_rank() call must occur after we initialize the thread. It was always failing, but the multi-process driver didn't catch this case.
This commit is contained in:
		
							parent
							
								
									3b65b0a52d
								
							
						
					
					
						commit
						ce01675e9e
					
				| @ -1,4 +1,4 @@ | ||||
| /* Copyright (c) 2023-2024 Barcelona Supercomputing Center (BSC)
 | ||||
| /* Copyright (c) 2023-2025 Barcelona Supercomputing Center (BSC)
 | ||||
|  * SPDX-License-Identifier: GPL-3.0-or-later */ | ||||
| 
 | ||||
| #include <stdio.h> | ||||
| @ -31,8 +31,8 @@ main(void) | ||||
| 		die("snprintf failed"); | ||||
| 
 | ||||
| 	ovni_proc_init(1 + app, loom, getpid()); | ||||
| 	ovni_proc_set_rank(rank, nranks); | ||||
| 	ovni_thread_init(get_tid()); | ||||
| 	ovni_proc_set_rank(rank, nranks); | ||||
| 
 | ||||
| 	/* Leader of the segment, must emit CPUs */ | ||||
| 	if (rank % N == 0) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user