Hi Srikanta,

In the past, I've been able to run pthreads mutex with ruby using Arm and FS mode. By default, pthreads use syscalls to the OS to sleep or wake up threads. As far as I know, FS does not work with RISCV. Therefore, you could try to select the pthread mutex type to spinlock to avoid having sleeps and wakes up from the OS. Notice that if you set spinlock, you should never instantiate more threads than cores (oversuscription). Otherwise you can have temporal deadlocks and starvation.

Regards,

Víctor.

On 29/6/23 9:03, Srikanta Chaitanya via gem5-users wrote:
Hi ,
I am running pthreads matmul program for riscv in se mode , but with lock and unlock instructions I am getting read error in Ruby ..
Do i have to compile with mthreads ..

Thanks
Chaitanya

_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to