Hi,

I am trying to run a OpenMP code in X86-FS mode using following command
command line:
./build/X86_MESI_Two_Level/gem5.opt --verbose configs/example/fs.py
--cpu-type=TimingSimpleCPU --num-cpus=4 --caches --l1d_size=64kB
--l1i_size=64kB --l2cache --l2_size=256kB --cacheline_size=64
--mem-size=2048MB
--disk-image=/nfs/div1/adeshpan/arch/x86_disks/disks/x86root-parsec_ad.img
--kernel=/nfs/div1/adeshpan/arch/x86_disks/binaries/x86_64-vmlinux-2.6.22.9

Then on simulator command prompt I added this ENV variable
export OMP_NUM_THREADS=4

After executing the benchmark, in the stats.txt file, I observe only
system.cpu0. stats have any value. Stats for cpu1, cpu2, cpu3 are all 0.
After reading some of the previous posts I added another ENV variable
export GOMP_CPU_AFFINITY="0 1 2 3"
and then re-ran the benchmark. Even after this only cpu0 stats gets
reflected, All cpu1,2,3 stats are 0.

How do I make sure that when I want to use 4-threads, all the cpu cores are
used.

Any help is appreciated.

Regards,
Aditya
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to