Hi all,
I ran a simple multithreaded helloworld code (as enclosed) with ARM I got 
"Panic:Page table fault when accessing virtual address" error.
Then I tried running on X86 and it runs fine but in stats file I get 
"sim_seconds 18446744.073710" which is impossible.
I used 4 cores as there are 4 threads.

For compiling this code I am making use of m5threads.
I followed the instructions as in the below link
https://github.com/WeijingShi/playground/blob/master/Run-openmp-code-in-gem5.md

I am not sure what I am doing wrong.
Please can someone help me with it.

Best
Gagan

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <omp.h>

int main(int argc, char **argv)
{
  omp_set_num_threads(4);
  #pragma omp parallel
  {
        int ID=omp_get_thread_num();
        printf("hello(%d)",ID);
        printf("World(%d)\n", ID);
}       
return 0;       
}
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to