gomp-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gomp-discuss] Simplest OpenMP program


From: Lars Segerlund
Subject: Re: [Gomp-discuss] Simplest OpenMP program
Date: Tue, 11 Feb 2003 07:38:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9


I agree, I looked at the openMP spec and on Diego's paper yesterday, and I am working on what we need to represent in the tree.

Also the context of the lib ( threding context ) is something we have to start figuring out, ( max_number_of_threads and so on .. ).

 / Lars.

Scott Robert Ladd wrote:
I think this might be suitable as our first target:

#include <stdio.h>

int main(void)
{
    #pragma omp parallel
    puts("Hello, world!");
return 0;
}

The proper output on a 2-processor SMP system is:

Hello, world!
Hello, world!

..Scott




_______________________________________________
Gomp-discuss mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/gomp-discuss






reply via email to

[Prev in Thread] Current Thread [Next in Thread]