Hello,

I want to run a multithread program in ALPHA SE mode.
my main program creates 5 threads with the pthread_create() routine. Each
thread prints a Hello World! message, and then terminates with a call to
pthread_exit().

https://computing.llnl.gov/tutorials/pthreads/samples/hello.c

I use alpha cross-compiler to compile this code:

*alpha-unknown-linux-gnu/bin/alpha-unknown-linux-gnu-gcc multi-thread.c -o
multi-thread-5 -lpthread -static
*
But I can't run it in 6 processor :

*gem5/build/ALPHA/gem5.opt gem5/configs/example/se.py --cpu-type=timing
--num-cpus=6 -c ./multi-thread-5*

ERROR message:

gem5 compiled Mar 29 2012 11:00:36
gem5 started Apr  5 2012 11:19:53
gem5 executing on ghaddab-Inspiron-N5110
command line: gem5/build/ALPHA/gem5.opt gem5/configs/example/se.py
--cpu-type=timing --num-cpus=6 -c ./multi-thread-5
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ghaddab/gem5/src/python/m5/main.py", line 357, in main
    exec filecode in scope
  File "gem5/configs/example/se.py", line 159, in <module>
    system.cpu[i].workload = multiprocesses[i]
IndexError: list index out of range


http://www.mail-archive.com/[email protected]/msg00737.html

Does anyone have some basic knowledge about it?
thank you.
-- 
Cordialement,
Mohamed hédi GHADDAB

Etudiant M2
Ingénieur Informatique Spécialité Systèmes embarqués
Laboratoires:
   * Laboratoire CES,École nationale d'ingénieurs de Sfax (ENIS), Tunisie
   * Laboratoire d'Informatique Fondamentale de Lille, Université de Lille
1, France
Mobile : +33 (0) 6.43.77.45.02
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to