Ali,
Did you use aarch64 cross compiler when compiling Parsec. By default,
Parsec just supports x86 GCC. You will need to modify gcc.bldconf of
Parsec to make use of aarch64. See ARM pdf file from my link. I do not
have any problem with parsec. You can eventually try with Hello compiled
by aarch64 cross compiler first. The last lines in your log tell exact
problem that m5 could not find either location or compiled binary (with
cross compiler) in your disk image. Hope it help !
/T
On 05/11/2018 09:54 AM, Hadouda Ali wrote:
i compiled and run parsec 3.0 in my linux operating system after i
copied parsec in the linaro-minimal-aarch64.img image and i tried in gem5.
2018-05-11 18:44 GMT+02:00 TungHoang_GMail <[email protected]
<mailto:[email protected]>>:
Ali,
Have you statically compile PARSEC using aarch64-linux-gnu-gcc
cross compiler or qemu-aarch64 before copying into disk-image file ?
See helps in https://github.com/arm-university/arm-gem5-rsk
<https://github.com/arm-university/arm-gem5-rsk>
/Tung
On 05/11/2018 09:40 AM, Hadouda Ali wrote:
hi hoang;
yes I did this step; I have uploaded PARSEC 3.0
here is the download link:
https://github.com/connorimes/parsec-3.0
<https://github.com/connorimes/parsec-3.0>
and I followed these steps:
*cp linaro-minimal-aarch64.img expanded-linaro-minimal-aarch64.img*
*$ dd if = / dev / zero bs = 1G count = 20 >>
./expanded-linaro-minimal-aarch64.img # add 20G zeros*
*$ sudo parted expanded-linaro-minimal-aarch64.img resizepart 1
100% # grow partition 1*
*Mount the expanded disk image, resize it, and copy PARSEC to it:*
*Note: set /path_to_compiled_parsec-3.0_dir/*
*$ mkdir disk_mnt*
*$ name = $ (sudo fdisk -l expanded-linaro-minimal-aarch64.img |
tail -1 | awk -E: '{print $ 1}' | awk -E "" '{print $ 1}')*
*$ start_sector = $ (sudo fdisk -l
expanded-linaro-minimal-aarch64.img | grep $ name | awk -E ""
'{print $ 2}')*
*$ units = $ (sudo fdisk -l expanded-linaro-minimal-aarch64.img |
grep ^ Units | awk -E "" '{print $ 9}')*
*$ sudo mount -o loop, offset = $ (($ start_sector * $ units))
expanded-linaro-minimal-aarch64.img disk_mnt*
*$ df # find / dev / loopX for disk_mnt*
*$ sudo resize2fs / dev / loopX # resize filesystem*
*$ df # check that the Available space for disk_mnt is increased*
*$ sudo cp -r /path_to_compiled_parsec-3.0_dir/disk_mnt / home /
root # copy the compiled parsec-3.0 to the image*
*$ ls disk_mnt / home / root # check the parsec-3.0 contents*
*$ sudo umount disk_mnt*
with I generate the script of each application (e.g. blacksholes)
as follows:
*#! / Bin / bash*
*
*
*PARSEC_DIR = "/ home / root / parsec-3.0"*
*cd $ PARSEC_DIR*
*pwd*
*
*
*source ./env.sh*
*parsecmgmt -a run -p blackscholes -c gcc-hooks -i simsmall -n 2*
*m5 exit*
and I found the previous result.
so if I forgot something or some step please help me to find the
solution.
thank you very much;
Ali.
_______________________________________________
gem5-users mailing list
[email protected] <mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
<http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>
--
Cordialement Ali HADOUDA .
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users