if you look your m5thread folder

you will see test folder there are many programs there. pl. look

open test_omp.c you will see they required to pass thread parameter in
command line

and than they set the thread inside the code through some function omp_set.....

hope this helps

On Fri, Mar 14, 2014 at 1:13 PM, Aditya Deshpande
<[email protected]> wrote:
> Hi,
>
> I want to run openmp code in SE mode using X86 architecture. I statically
> compiled the code with m5threads. Typically when I want to run openmp code I
> set environment variable OMP_NUM_THREADS to indicate how many threads to use
> before executing the program. How do I set this for SE simulation?
>
> I tried initializing the OMP_NUM_THREADS variable in the env before running
> the gem5 execution, but it didn't seem to work during simulation
>
> Any help or suggestions?
>
> Regards,
> Aditya
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to