gomp-discuss
[Top][All Lists]
Advanced

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

[Gomp-discuss] Simplest OpenMP program


From: Scott Robert Ladd
Subject: [Gomp-discuss] Simplest OpenMP program
Date: Mon, 10 Feb 2003 13:02:51 -0500

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






reply via email to

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