See a hello world tutorial
as far as I can see is that
you haven't put {}
in the section of code you want to run parallel
how many processors do you have
try running without asking number of threads
.you must see as many outputs as number of processors


On 2/6/12, Arun Vishwanathan <aaron.nar...@gmail.com> wrote:
> I use g++
>
> On Sun, Feb 5, 2012 at 12:39 PM, Rahul <raikra...@gmail.com> wrote:
>
>> which compiler
>> or which environment
>> I use Microsoft Visual Studio
>> with Microsoft HPC Pack
>> A syntax error is visible
>> use {
>>
>>
>> On 2/6/12, Arun Vishwanathan <aaron.nar...@gmail.com> wrote:
>> > hi , i am trying to run this small code with open mp but I dont see any
>> > threads created . The code compiles with -fopenmp but does not create
>> > threads to run parallel.For example,
>> >
>> > main()
>> > {
>> >   omp_set_num_threads(4);
>> >  #pragma omp parallel
>> >  printf(" hello world from %d\n" ,omp_get_thread_num());
>> > return;
>> >
>> > }
>> > output: hello world from 0
>> >
>> > what abt the other threads??
>> > --
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Algorithm Geeks" group.
>> > To post to this group, send email to algogeeks@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > algogeeks+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/algogeeks?hl=en.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>
>
> --
>  "People often say that motivation doesn't last. Well, neither does bathing
> - that's why we recommend it daily."
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to