[gem5-users] Problem in using m5threads for multithreaded program

2017-05-10 Thread Mitali Sinha
I am trying to use the m5threads library for running a multithreaded
program in gem5. I am also cross compiling my program. My host is "x64" and
target is "arm". I have some doubts:

1. After running the makefile it creates a directory libpthread.a in the
m5threads directory and gives me the following warning:

 :~/Desktop/m5thread/m5threads$ make
   gcc -O3 -static   -c -o pthread.o pthread.c
   pthread.c: In function ‘pthread_create’:
   pthread.c:256:3: *warning: implicit declaration of function ‘clone’
[-Wimplicit-function-declaration]*
*   clone(__pthread_trampoline, tcb->stack_start_addr,
CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHA*
*   ^*
   ar rv libpthread.a pthread.o
   ar: creating libpthread.a
   a - pthread.o
   *make: Warning: Archive 'libpthread.a' seems to have been created in
deterministic mode. '' will always be updated. Please consider passing the
U flag to ar to avoid the problem.*
   rm pthread.o

 Does the above warning needs to be considered? If so what should I do?

2. After making the m5threads, how to link my program to it?
For example for using pthread library, I have to use "gcc -pthread".

3. Do I need to make any changes in my program to use the m5threads?


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

[gem5-users] Problem running some SPEC2006 Benchmarks

2017-05-10 Thread Muzamil Rafique
Hi All,

I am testing SPEC 2006 benchmarks in gem5. Most of them are working just
fine but few of them giving errors like:

Cannot open input file x

even I specified file path in Mybench.py file and also made sure that file
exists in particular folder. Some benchmarks that give problem include:
410.bwaves, 453.povray, 416.gamess etc

Any ideas how to fix these issues?

Also what is the difference between folders "ref", "test" and "train"
specified in "data" folder in each benchmark?

Will appreciate any response :)

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

[gem5-users] Fixes for PyBind issues

2017-05-10 Thread Andreas Sandberg

Hi Everyone,

Some of our internal users recently ran into various issues related to
the new PyBind wrappers. These are the issues I'm aware of:

  * Events implemented in Python aren't reference counted correctly.
There are cases where the Python side of an event gets deallocated, but
not the native object. The native object gets confused when the event fires.

 * The --debug-start and --debug-stop options broke because of API
changes in Python events.

  * Some uses of vectors of address ranges cause out-of-range memory
accesses in the Python bindings. These sometimes manifest themselves as
a std::bad_alloc exception. From what we have seen, these only occur for
debug builds.

I have posted fixes for all of the issues above on the pybind/fixes [1]
topic and a set of patches to upgrade to PyBind 2.1.1 [2].

//Andreas

[1]
https://gem5-review.googlesource.com/#/q/topic:pybind/fixes+(status:open+OR+status:merged)
[2]
https://gem5-review.googlesource.com/#/q/topic:pybind/v2.1.1+(status:open+OR+status:merged)

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] question

2017-05-10 Thread valipour_zahra
Hi,
I use gem5 for my thesis : " fault tolerant task scheduling for a real-time 
multicore processor"
I have a question about this, how to i simulate in gem5 with myself scheduler?
Best regards
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users