Hi all,
I'm currently new to the gem5 standard library, and I've used old scripts
for a while which works fine for me. I'd like to know if it is possible to
run a multithreaded program in SE mode with the gem5 standard library. It
seems like the SE workload is not compatible with multithreaded binaries.
def set_se_binary_workload(
self,
binary: BinaryResource,
exit_on_work_items: bool = True,
stdin_file: Optional[FileResource] = None,
stdout_file: Optional[Path] = None,
stderr_file: Optional[Path] = None,
env_list: Optional[List[str]] = None,
arguments: List[str] = [],
checkpoint: Optional[Union[Path, CheckpointResource]] = None,
) -> None:
"""Set up the system to run a specific binary.
**Limitations**
* Only supports single threaded applications.
Thanks,
Ziyao
Hey Ziyao,
Thank you for pointing this out. This comment is wrong. This was a restriction at some time, and even then only in the standard library. Right now you can run multi-threaded applications in se-mode via the `set_se_binary_workload` function. It’s supported.
I’ve submitted a pull-request here to remove this comment: https://github.com/gem5/gem5/pull/402.
Kind regards,
Bobby
I can run multithreded programs written in c/c++ using omp and Pthread
libraries in SE mode.
On Fri, Oct 6, 2023 at 12:00 AM bbruce--- via gem5-users <
gem5-users@gem5.org> wrote:
Hey Ziyao,
Thank you for pointing this out. This comment is wrong. This was a
restriction at some time, and even then only in the standard library. Right
now you can run multi-threaded applications in se-mode via the
set_se_binary_workload
function. It’s supported.
I’ve submitted a pull-request here to remove this comment:
https://github.com/gem5/gem5/pull/402.
Kind regards,
Bobby
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org