gomp-discuss
[Top][All Lists]
Advanced

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

Re: [Gomp-discuss] Further thoughts on OpenMP functions


From: Steven Bosscher
Subject: Re: [Gomp-discuss] Further thoughts on OpenMP functions
Date: 10 Feb 2003 21:20:25 +0100

Op ma 10-02-2003, om 21:14 schreef Scott Robert Ladd:
> Okay, I'm back.

How's the kid?

> Scott Ladd said (earlier)
> > If no one objects, I'd be more than happy to provide an initial "omp.h"
> > header file that provides the prototypes for the OpenMP functions.
> 
> To be more specific: We can implement do-nothing shell routines for the
> OpenMP library, and fill in implementations as needed. This gives us a start
> on libgomp. I can create the "omp.h" file, then we can discuss which
> functions to implement first.

Isn't there a full implementation of "do-nothings" in the specs?  I
think the interface for C/C++ and Fortran is identical (except that g95
doesn't have cray pointer support but that's an issue for later).
 
> I suspect the best ones to start with are:
> 
> int omp_get_num_threads(void);
> int omp_get_max_threads(void);
> int omp_get_thread_num(void);
> int omp_get_num_procs(void);
> int omp_in_parallel(void);
> 
> ..Scott

Missing:
void omp_set_num_threads (int; /* Or whatever its definition is.  */

Greetz
Steven






reply via email to

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