From ce01675e9e1478b1714b030af10c846302ba27a3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Wed, 23 Jul 2025 17:22:07 +0200 Subject: [PATCH] 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. --- test/emu/nosv/multiple-segment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/emu/nosv/multiple-segment.c b/test/emu/nosv/multiple-segment.c index b00debd..dd9b2ab 100644 --- a/test/emu/nosv/multiple-segment.c +++ b/test/emu/nosv/multiple-segment.c @@ -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 @@ -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) {