Re: [gem5-users] how to Run spec cpu 2006 on gem5-Fs

2020-03-03 Thread Dimitrios Chasapis

Hi,

If I understand your commands properly, I think you compile spec for 
x86_64 but your image is for the arm architecture.  You need to compile 
spec for arm as well.  You can try cross-compiling, using qemu to chroot 
to an arm linux image and compile spec from there or take a look at the 
links Ciro sent you.


From my experience, using the spec infrastructure to run the spec is 
very slow, instead after successfully building them (you can build them 
using the spec scripts) you should find a folder benchspec/CPU, and in 
there a folder for each benchmark.  In these folder you should be able 
to find a file in run/speccmds.cmd.  If you open you can see where the 
executables are located and what arguments you need to pass.  This way 
you can create your own scripts to run the spec.


On 3/2/20 7:19 PM, Ciro Santilli wrote:

One Buildroot option:

- 
https://cirosantilli.com/linux-kernel-module-cheat/#gem5-buildroot-setup-getting-started
- 
https://cirosantilli.com/linux-kernel-module-cheat/#add-new-files-to-the-buildroot-image


On Mon, Mar 2, 2020 at 5:50 PM FARIDEH ZIAEE  wrote:

Hi,
I need to run spec cpu 2006 on gem5-Fs mode but I don't know how to run it.
also ,according to  
site""https://yulistic.gitlab.io/2016/05/gem5-make-a-new-boot-image/"; I make a 
new boot image :
d if=/dev/zero of=ubuntu.img bs=1M count=12288
ls -alh
fdisk -l ubuntu.img
   sudo fdisk ubuntu.img
   fdisk -l ubuntu.img
sudo losetup -f
sudo losetup -o $((512*2048)) /dev/loop8 ubuntu.img
sudo mke2fs /dev/loop8
sudo losetup -d /dev/loop8
//
and copy  all of file form aarch32-ubuntu-natty-headless.img(aar20ch-system-14-10 ) to 
new boot image. Then I istall and compile spec cpu 2006 on 
linux(ubuntu-18.04-desktop-amd64) according to this 
site:"https://www.spec.org/cpu2006/Docs/install-guide-unix.html; :
  cd  SPEC_CPU2006
  ./install.sh
  cd /cpu2006/
  . ./shrc
  cd config
  cp Example-linux64-amd64-gcc43+.cfg mytest.cfg
  runspec --config=mytest.cfg --action=build --tune=base bzip2
  runspec --config=mytest.cfg --size=test --noreportable --tune=base 
--iterations=1 bzip2
  runspec --config=mytest.cfg --size=ref --noreportable --tune=base 
--iterations=1 bzip2
/
Also I learn how to add file to the image , according to this 
site:"https://spark.nitk.ac.in/r/GEM5-FS-Run.pdf;
,but I don't know wich files of spec cpu 2006 add to image and how to write 
runscrip  for spe cpu 2006 .
Can any one help and giude me? and I did  those things, were those correct?

Best Regards.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


http://bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] how to Run spec cpu 2006 on gem5-Fs

2020-03-02 Thread Ciro Santilli
One Buildroot option:

- 
https://cirosantilli.com/linux-kernel-module-cheat/#gem5-buildroot-setup-getting-started
- 
https://cirosantilli.com/linux-kernel-module-cheat/#add-new-files-to-the-buildroot-image


On Mon, Mar 2, 2020 at 5:50 PM FARIDEH ZIAEE  wrote:
>
> Hi,
> I need to run spec cpu 2006 on gem5-Fs mode but I don't know how to run it.
> also ,according to  
> site""https://yulistic.gitlab.io/2016/05/gem5-make-a-new-boot-image/"; I make 
> a new boot image :
>d if=/dev/zero of=ubuntu.img bs=1M count=12288
> ls -alh
> fdisk -l ubuntu.img
>   sudo fdisk ubuntu.img
>   fdisk -l ubuntu.img
> sudo losetup -f
> sudo losetup -o $((512*2048)) /dev/loop8 ubuntu.img
> sudo mke2fs /dev/loop8
> sudo losetup -d /dev/loop8
> //
> and copy  all of file form 
> aarch32-ubuntu-natty-headless.img(aar20ch-system-14-10 ) to new boot image. 
> Then I istall and compile spec cpu 2006 on linux(ubuntu-18.04-desktop-amd64) 
> according to this 
> site:"https://www.spec.org/cpu2006/Docs/install-guide-unix.html; :
>  cd  SPEC_CPU2006
>  ./install.sh
>  cd /cpu2006/
>  . ./shrc
>  cd config
>  cp Example-linux64-amd64-gcc43+.cfg mytest.cfg
>  runspec --config=mytest.cfg --action=build --tune=base bzip2
>  runspec --config=mytest.cfg --size=test --noreportable --tune=base 
> --iterations=1 bzip2
>  runspec --config=mytest.cfg --size=ref --noreportable --tune=base 
> --iterations=1 bzip2
> /
> Also I learn how to add file to the image , according to this 
> site:"https://spark.nitk.ac.in/r/GEM5-FS-Run.pdf;
> ,but I don't know wich files of spec cpu 2006 add to image and how to write 
> runscrip  for spe cpu 2006 .
> Can any one help and giude me? and I did  those things, were those correct?
>
> Best Regards.
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] how to Run spec cpu 2006 on gem5-Fs

2020-03-02 Thread Abhishek Singh
Hi,

Follow this
https://gem5art.readthedocs.io/en/latest/

On Mon, Mar 2, 2020 at 12:50 PM FARIDEH ZIAEE 
wrote:

> Hi,
> I need to run spec cpu 2006 on gem5-Fs mode but I don't know how to run it.
> also ,according to  site""
> https://yulistic.gitlab.io/2016/05/gem5-make-a-new-boot-image/"; I make a
> new boot image :
>d if=/dev/zero of=ubuntu.img bs=1M count=12288
> ls -alh
> fdisk -l ubuntu.img
>   sudo fdisk ubuntu.img
>   fdisk -l ubuntu.img
> sudo losetup -f
> sudo losetup -o $((512*2048)) /dev/loop8 ubuntu.img
> sudo mke2fs /dev/loop8
> sudo losetup -d /dev/loop8
> //
> and copy  all of file form 
> aarch32-ubuntu-natty-headless.img(aar20ch-system-14-10
> ) to new boot image. Then I istall and compile spec cpu 2006 on
>  linux(ubuntu-18.04-desktop-amd64) according to this site:"
> https://www.spec.org/cpu2006/Docs/install-guide-unix.html; :
>  *cd  SPEC_CPU2006*
>  *./install.sh *
>  *cd /cpu2006/*
>  *. ./shrc*
>  *cd config*
>  *cp Example-linux64-amd64-gcc43+.cfg mytest.cfg*
> * runspec --config=mytest.cfg --action=build --tune=base bzip2*
>  *runspec --config=mytest.cfg --size=test --noreportable
> --tune=base --iterations=1 bzip2*
>  *runspec --config=mytest.cfg --size=ref --noreportable
> --tune=base --iterations=1 bzip2*
> */*
> *Also I learn how to add file to the image , according to this site:"*
> https://spark.nitk.ac.in/r/GEM5-FS-Run.pdf;
> ,but I don't know wich files of spec cpu 2006 add to image and how to
> write runscrip  for spe cpu 2006 .
> Can any one help and giude me? and I did  those things, were those correct?
>
> Best Regards.
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] how to Run spec cpu 2006 on gem5-Fs

2020-03-02 Thread FARIDEH ZIAEE
Hi,
I need to run spec cpu 2006 on gem5-Fs mode but I don't know how to run it.
also ,according to  site""
https://yulistic.gitlab.io/2016/05/gem5-make-a-new-boot-image/"; I make a
new boot image :
   d if=/dev/zero of=ubuntu.img bs=1M count=12288
ls -alh
fdisk -l ubuntu.img
  sudo fdisk ubuntu.img
  fdisk -l ubuntu.img
sudo losetup -f
sudo losetup -o $((512*2048)) /dev/loop8 ubuntu.img
sudo mke2fs /dev/loop8
sudo losetup -d /dev/loop8
//
and copy  all of file form
aarch32-ubuntu-natty-headless.img(aar20ch-system-14-10
) to new boot image. Then I istall and compile spec cpu 2006 on
 linux(ubuntu-18.04-desktop-amd64) according to this site:"
https://www.spec.org/cpu2006/Docs/install-guide-unix.html; :
 *cd  SPEC_CPU2006*
 *./install.sh *
 *cd /cpu2006/*
 *. ./shrc*
 *cd config*
 *cp Example-linux64-amd64-gcc43+.cfg mytest.cfg*
* runspec --config=mytest.cfg --action=build --tune=base bzip2*
 *runspec --config=mytest.cfg --size=test --noreportable
--tune=base --iterations=1 bzip2*
 *runspec --config=mytest.cfg --size=ref --noreportable --tune=base
--iterations=1 bzip2*
*/*
*Also I learn how to add file to the image , according to this site:"*
https://spark.nitk.ac.in/r/GEM5-FS-Run.pdf;
,but I don't know wich files of spec cpu 2006 add to image and how to write
runscrip  for spe cpu 2006 .
Can any one help and giude me? and I did  those things, were those correct?

Best Regards.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users