sst-elements
sst-elements copied to clipboard
Vanadis is too fast
@nmhamster Vanadis was running too fast so I needed to slow it down a bit. I added the following to my empty main
#include <unistd.h>
int main(){
sleep(1);
}
to make it take longer, but
FATAL: [os]: [syscall-handler] Error: unknown code 4166 (ins: 0x401584, link-reg: 0x4014d4)
prevents my simulation from finishing.
@calewis - you are the first user to complain the code is too fast :-). I'll take a look, this is just an OS call we need to add I believe.
Do you really want to sleep for long periods (like a second or more?) or are you looking for smaller sleep periods that are functionally correct with respect to the sleep time? Asking the question because there is the potential to optimize differently depending on the answer.
I was actually just testing functionality.
auto t0 = std::chono::system_clock::now();
sleep(1);
auto time = std::chono::system_clock::now() - t0;
should lead to a duration that is approximately the amount of time the sleep was suppose to take.
@nmhamster @mjleven Is this still a thing?
This still fails with
FATAL: [os_hdlr]:handleSysCall() Error: unknown code 115 (ins: 0x38554, link-reg: 0x64)
https://www.man7.org/linux/man-pages/man2/clock_nanosleep.2.html