gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Libthreads for Gem5

GM
George Michelogiannakis
Thu, Sep 14, 2023 5:28 PM

Good morning everyone,
Does anyone know if "m5threads" is available for RISC-V? I'm trying to compile an OpenMP code for RISC-V, hopefully avoiding FS.
Thank you

Good morning everyone, Does anyone know if "m5threads" is available for RISC-V? I'm trying to compile an OpenMP code for RISC-V, hopefully avoiding FS. Thank you
JL
Jason Lowe-Power
Thu, Sep 14, 2023 6:05 PM

Hi George,

You can use pthreads. There's no need for m5threads anymore. The only
wrinkle is that you have to make sure the cross-compiled dynamic libraries
are in the right place. You can use the "redirect paths" option to map a
path on the host to a different location in the guest (like volumes in
docker).

Cheers,
Jason

On Thu, Sep 14, 2023 at 10:29 AM George Michelogiannakis via gem5-users <
gem5-users@gem5.org> wrote:

Good morning everyone,

Does anyone know if "m5threads" is available for RISC-V? I'm trying to
compile an OpenMP code for RISC-V, hopefully avoiding FS.

Thank you


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi George, You can use pthreads. There's no need for m5threads anymore. The only wrinkle is that you have to make sure the cross-compiled dynamic libraries are in the right place. You can use the "redirect paths" option to map a path on the host to a different location in the guest (like volumes in docker). Cheers, Jason On Thu, Sep 14, 2023 at 10:29 AM George Michelogiannakis via gem5-users < gem5-users@gem5.org> wrote: > Good morning everyone, > > Does anyone know if "m5threads" is available for RISC-V? I'm trying to > compile an OpenMP code for RISC-V, hopefully avoiding FS. > > Thank you > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >