[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gomp-discuss] Simplest OpenMP program
From: |
Diego Novillo |
Subject: |
Re: [Gomp-discuss] Simplest OpenMP program |
Date: |
Mon, 10 Feb 2003 13:10:37 -0500 |
User-agent: |
Mutt/1.4i |
On Mon, 10 Feb 2003, 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!
>
Excellent. I agree with the idea of starting with parallel
sections and loops. Let's start working on the patches that will
take us to that stage (says Diego who won't be contributing
actual code for a while :)
Diego.