gem5-users@gem5.org

The gem5 Users mailing list

View all threads

multithreaded program is SE mode using gem5 standard library

ZY
Ziyao Yan
Tue, Oct 3, 2023 7:06 AM

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

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
B
bbruce@ucdavis.edu
Thu, Oct 5, 2023 5:26 PM

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

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
RI
RTL Insn
Thu, Oct 5, 2023 10:30 PM

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

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 >