Samaksh,

Yep, thats precisely what I've been doing. Using the docker from the
develop branch, and then the simulator is the staging branch.

It actually looks like you pointed the simulator onto the square.cpp source
file rather than the square.out (or whatever your compiler outputs).

Not sure if this was a typo or not, but you need to compile the source into
a binary first using the command from that link:

docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
<image_name> make square

You can also just have a docker container running and then attach to it to
do command line (commands) directly in the container, so you could cd into
gem5-resources and then just type "make square." \Sometimes this is more
convenient, sometimes not. Up to you.

Best,

Dan


On Sun, Aug 30, 2020 at 7:10 PM Matt Sinclair <mattdsincl...@gmail.com>
wrote:

> Dan or Kyle can confirm, but yes I believe that is what others are doing.
>
> If you look through the posted text from running square, you have a fatal
> error because of it being able to access gem5-resources.  Kyle, have you
> seen this before?
>
> Matt
>
> On Sun, Aug 30, 2020 at 5:43 PM Samaksh Sethi via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Okay, yeah that does make sense to me.
>> So what i understand is, I used the develop branch for the dockerfile and
>> then I run everything as usual from the staging branch
>>
>> Ok, so that works, Thanks a lot!!
>> I was able to get the build command running,
>>
>> Just one last thing, how do I confirm everything worked ok?
>> I ran this command for square (changed a bit, from
>> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3)
>> *docker run --rm -v $PWD/gem5:/gem5 -v
>> $PWD/gem5-resources:/gem5-resources -w /gem5 gcn-docker
>> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
>> --benchmark-root=/gem5-resources/src/square -c square.cpp*
>> warn: system.ruby.network adopting orphan SimObject param 'int_links'
>> warn: system.ruby.network adopting orphan SimObject param 'ext_links'
>> warn: DRAM device capacity (8192 Mbytes) does not match the address range
>> assigned (512 Mbytes)
>> gem5 Simulator System.  http://gem5.org
>> gem5 is copyrighted software; use the --copyright option for details.
>>
>> gem5 compiled Aug 30 2020 22:11:25
>> gem5 started Aug 30 2020 22:27:07
>> gem5 executing on d154d77a3679, pid 1
>> command line: build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
>> --benchmark-root=/gem5-resources/src/square -c square.cpp
>>
>> info: Standard input is not a terminal, disabling listeners.
>> Num SQC =  1 Num scalar caches =  1 Num CU =  4
>> Global frequency set at 1000000000000 ticks per second
>> fatal: Can't load object file /gem5-resources/src/square/square.cpp
>> Memory Usage: 1182408 KBytes
>>
>> Now what? There's nothing in the stats.txt, is there any other command I
>> need to run too?
>>
>>
>>
>>
>> _______________________________________________
>>
>> gem5-users mailing list -- gem5-users@gem5.org
>>
>> To unsubscribe send an email to gem5-users-le...@gem5.org
>>
>> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
> --
> Regards,
> Matt Sinclair
> Assistant Professor
> University of Wisconsin-Madison
> Computer Sciences Department
> cs.wisc.edu/~sinclair
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to