Re: [gem5-users] Error in running a CNN benchmark in gem5 SE mode

2017-04-17 Thread Alberto Álvarez
Hello,As you can see in the error("fatal: syscall set_tid_address (#256) unimplemented"), the emulation of system call "set_tid_address" is not emulated. You can apply this explanation in future problems with "syscall X unimplemmented".I propose you several options:1. Use FS mode.2. Try to change de benchmark code to avoid this syscall.3. Try to implement the syscall emulation.I hope to help you.Best regards,Alberto.El 17 abr. 2017 20:48, Mitali Sinha  escribió:Hi,I am trying to run tiny-dnn benchmarks (convolutional neural network benchmarks written in C++ ) in gem5 SE mode. Here are the steps I followed:1. Cross-compiled some benchmark examples using a cross compiler (built using croosstool-ng) for ARM.2. Run the executable in gem5 SE mode using following command:     $ ./build/ARM/gem5.opt configs/example/se.py -c /home/iiitd/Desktop/tiny-dnn/examples/mnist/train -o /home/iiitd/Desktop/tiny-dnn/data        ---                Global frequency set at 1 ticks per second        warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)        0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000        warn: ClockedObject: More than one power state change request encountered within the same simulation tick         REAL SIMULATION         info: Entering event queue @ 0.  Starting simulation...        fatal: syscall set_tid_address (#256) unimplemented.3. I tried to ignore the error by making following changes in arch/arm/linux/process.cc     SyscallDesc("set_tid_address", unimplementedFunc) to SyscallDesc("set_tid_address", ignoreFunc)    SyscallDesc("set_robust_list", unimplementedFunc) to  SyscallDesc("set_robust_list", ignoreFunc)    4. Run the following command    $ scons build/ARM/gem5.opt -j4    $ ./build/ARM/gem5.opt configs/example/se.py -c /home/iiitd/Desktop/tiny-dnn/examples/mnist/train -o /home/iiitd/Desktop/tiny-dnn/data            ---     Global frequency set at 1 ticks per second     warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)     0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000     warn: ClockedObject: More than one power state change request encountered within the same simulation tick      REAL SIMULATION      info: Entering event queue @ 0.  Starting simulation...     warn: ignoring syscall set_tid_address(...)     warn: ignoring syscall set_robust_list(...)     warn: ignoring syscall rt_sigaction(...)     (further warnings will be suppressed)     warn: ignoring syscall rt_sigprocmask(...)     (further warnings will be suppressed)     warn: readlink() called on '/proc/self/exe' may yield unexpected results in various settings.     Returning '/home/iiitd/Desktop/tiny-dnn-master2/examples/mnist/train'     info: Increasing stack size by one page.     warn: ignoring syscall futex(...)     (further warnings will be suppressed)     load models...The simulation freezes after the above steps. Any help is appreciated.Thanks.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Error in running a CNN benchmark in gem5 SE mode

2017-04-17 Thread Mitali Sinha
Hi,

I am trying to run tiny-dnn benchmarks (convolutional neural network
benchmarks written in C++ ) in gem5 SE mode.

Here are the steps I followed:

1. Cross-compiled some benchmark examples using a cross compiler (built
using croosstool-ng) for ARM.

2. Run the executable in gem5 SE mode using following command:
 $ ./build/ARM/gem5.opt configs/example/se.py -c
/home/iiitd/Desktop/tiny-dnn/examples/mnist/train -o
/home/iiitd/Desktop/tiny-dnn/data
---

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address
range assigned (512 Mbytes)
0: system.remote_gdb.listener: listening for remote gdb #0 on port
7000
warn: ClockedObject: More than one power state change request
encountered within the same simulation tick
 REAL SIMULATION 
info: Entering event queue @ 0.  Starting simulation...
fatal: syscall set_tid_address (#256) unimplemented.

3. I tried to ignore the error by making following changes in
arch/arm/linux/process.cc
SyscallDesc("set_tid_address", unimplementedFunc)
to SyscallDesc("set_tid_address", ignoreFunc)
SyscallDesc("set_robust_list", unimplementedFunc) to
 SyscallDesc("set_robust_list", ignoreFunc)

4. Run the following command
$ scons build/ARM/gem5.opt -j4
$ ./build/ARM/gem5.opt configs/example/se.py -c
/home/iiitd/Desktop/tiny-dnn/examples/mnist/train -o
/home/iiitd/Desktop/tiny-dnn/data
  
  ---
 Global frequency set at 1 ticks per second
 warn: DRAM device capacity (8192 Mbytes) does not match the address
range assigned (512 Mbytes)
 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
 warn: ClockedObject: More than one power state change request
encountered within the same simulation tick
  REAL SIMULATION 
 info: Entering event queue @ 0.  Starting simulation...
 warn: ignoring syscall set_tid_address(...)
 warn: ignoring syscall set_robust_list(...)
 warn: ignoring syscall rt_sigaction(...)
 (further warnings will be suppressed)
 warn: ignoring syscall rt_sigprocmask(...)
 (further warnings will be suppressed)
 warn: readlink() called on '/proc/self/exe' may yield unexpected
results in various settings.
 Returning '/home/iiitd/Desktop/tiny-dnn-master2/examples/mnist/train'
 info: Increasing stack size by one page.
 warn: ignoring syscall futex(...)
 (further warnings will be suppressed)
 load models...

The simulation freezes after the above steps. Any help is appreciated.

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