Hi Nick,

You can use the argument like this,

scons build/RISCV/gem5.opt –limit-ld-memory-usage -j`nproc`

I was able to compile gem5 with docker with 6GiB of RAM, and was not able
to do that with 4GiB of RAM.

I think you already hint at a better solution, which is to use build the
docker image on a different machine, and bundle the gem5 binary to the
docker image. Then you can distribute the image to the Jetson.

Regards,
Hoa Nguyen

On Fri, Mar 15, 2024, 06:27 Beser, Nicholas D. <nick.be...@jhuapl.edu>
wrote:

> Hoa,
>
>
>
> Thank you for your suggestion. The Jetson Orin Nano normally comes with
> 4Gbyte Ram, so I can see that it could be a problem. Where do you apply the
> –limit-ld-memory-usage command? Did you attempt to build it with the docker
> command? I am using the Jetson Orin Nano for GPU and openmpi work, so the
> docker approach would help isolate the system. I am going to work through
> the installation procedure and see where it ends up.
>
>
>
> Nick
>
>
>
> *From:* Hoa Nguyen <hoangu...@ucdavis.edu>
> *Sent:* Thursday, March 14, 2024 11:58 PM
> *To:* The gem5 Users mailing list <gem5-users@gem5.org>
> *Cc:* Beser, Nicholas D. <nick.be...@jhuapl.edu>
> *Subject:* [EXT] Re: [gem5-users] Build gem5 on non x86 system
>
>
>
> *APL external email warning: *Verify sender hoangu...@ucdavis.edu before
> clicking links or attachments
>
>
>
> Hi Nick,
>
>
>
> I don't think there would be any problem with compiling gem5 on arm (or
> riscv) architecture on Ubuntu. I've been compiling/using gem5 on an arm
> system and it works for me.
>
>
>
> However, please make sure that the system has enough memory to compile
> gem5. Typically compiling gem5 takes a lot of memory, and you can pass
> "--limit-ld-memory-usage" to reduce the memory consumption.
>
>
>
> Regards,
>
> Hoa Nguyen
>
>
>
> On Thu, Mar 14, 2024, 17:44 Beser, Nicholas D. via gem5-users <
> gem5-users@gem5.org> wrote:
>
> I have been using gem5 on a number of linux systems  such as WSL under
> windows 10/11, and  Oracle VM and native Ubuntu 22.04 on a X86 system. All
> of the system were X86 based. I have a jetson orin nano which runs Ubuntu
> 20.04 and is based on the ARM processor. Has anyone ever compiled gem5 on a
> non-x86 based system? I have access to gcc compilers for x86, arm and mips
> that run on ARM, but I am not sure what needs to be done to compile gem5 on
> ARM.
>
>
>
> Nick Beser
>
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to