Did NAG fortran complier support OPENMP?
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
Did NAG fortran complier support OPENMP?         


Author: Simulate
Date: Sep 8, 2008 07:59

Did NAG fortran complier support it?
7 Comments
Re: Did NAG fortran complier support OPENMP?         


Author: nospam
Date: Sep 8, 2008 08:17

Simulate gmail.com> wrote:
> Did NAG fortran complier support it?

1. I don't off-hand see it on their web site - not that I pent a lon
time looking.

but

2. For a current supported commercial product, I'd think it more natural
(and reliable) to ask the vendor directly instead of asking here. THey
are pretty easy to find... try nag.com.

3. Why do you say "did"? While the Nag compiler has seemed awfully slow
to come out with new releases in recent years, to my knowledge it is
still a current supported product.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Tobias Burnus
Date: Sep 8, 2008 09:48

On Sep 8, 5:17 pm, nos...@see.signature (Richard Maine) wrote:
> Simulate gmail.com> wrote:
>> Did NAG fortran complier support it?
>
> 1. I don't off-hand see it on their web site - not that I pent a lon
> time looking.

I think it isn't. At least my 5.1 compiler for x86-64-Linux does not
support it.
> 3. Why do you say "did"? While the Nag compiler has seemed awfully slow
> to come out with new releases in recent years, to my knowledge it is
> still a current supported product.

And to add: I also don't think they disabled OpenMP in any new
version, which would be the other way of understanding the "did".

* * *

If you are looking for an OpenMP compiler, you have lots of choices:

GCC's gfortran supports OpenMP v2.5 since 4.2 and OpenMP v3.0 in the
developer releases 4.4.0. (gfortran is an open source compiler,
http://gcc.gnu.org/wiki/GFortran)
Show full article (1.39Kb)
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Ron Ford
Date: Sep 8, 2008 20:43

On Mon, 8 Sep 2008 09:48:06 -0700 (PDT), Tobias Burnus posted:
> On Sep 8, 5:17 pm, nos...@see.signature (Richard Maine) wrote:
>> Simulate gmail.com> wrote:
>>> Did NAG fortran complier support it?
>>
>> 1. I don't off-hand see it on their web site - not...
Show full article (3.15Kb)
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Tobias Burnus
Date: Sep 8, 2008 23:09

On 9 Sep., 05:43, Ron Ford wrote:
> On Mon, 8 Sep 2008 09:48:06 -0700 (PDT), Tobias Burnus posted:
>> GCC's gfortran supports OpenMP v2.5 since 4.2 and OpenMP v3.0 in the
>> developer releases 4.4.0. (gfortran is an open source compiler,
>>http://gcc.gnu.org/wiki/GFortran)
>
> Then there's the fortran part.  I fired this up with silverfrost,
>
> I get different news from gfortran:
>
> F:\gfortran\source>gfortran -o thread ff55.f90
> C:\DOCUME~1\dan\LOCALS~1\Temp/cctv1kPE.o:ff55.f90:(.text+0x1e): undefined
> reference to `omp_get_thread_num_'

You need to compile with the option -fopenmp (cf. gfortran & gcc
documentation/man page):
Show full article (0.82Kb)
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Ron Ford
Date: Sep 9, 2008 11:59

On Mon, 8 Sep 2008 23:09:01 -0700 (PDT), Tobias Burnus posted:
> -fopenmp

F:\gfortran\source>gfortran -o thread -fopenmp ff55.f90

F:\gfortran\source>thread
Hello World from thread 0
There are 1 threads

F:\gfortran\source>

Thanks, tobias. Any ideas why you seem to have 2 threads and I only one?
--
We are here and it is now. Further than that, all human knowledge is
moonshine. 3
H. L. Mencken
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Tobias Burnus
Date: Sep 9, 2008 12:31

On Sep 9, 8:59 pm, Ron Ford wrote:
> Thanks, tobias.  Any ideas why you seem to have 2 threads and I only one?

Well, I have a computer with one CPU and two cores, you probably one
CPU with one core. By default number of threads = number of cores (=
number of cores per CPU * number of CPUs), which makes sense as this
gives the highest performance (assuming no other processes are
competing for CPU power and that the number of used cores is small
compared to the cost of forking all the new threads and having
"remote" memory accesses [the latter depends a bit on the design of
the CPU, but CPU-cache problems are always present]).

Try again after you have set the environment variable OMP_NUM_THREADS
to "2" or to "30" or to ...
Cf. http://gcc.gnu.org/onlinedocs/libgomp/ or the OpenMP specifiction*
or a good book/webpage about OpenMP

* = http://openmp.org/wp/ (for the spec, see top left corner)

Tobias
Show full article (1.24Kb)
no comments
Re: Did NAG fortran complier support OPENMP?         


Author: Ron Ford
Date: Sep 22, 2008 13:51

On Tue, 9 Sep 2008 12:31:25 -0700 (PDT), Tobias Burnus posted:
> On Sep 9, 8:59 pm, Ron Ford wrote:
>> Thanks, tobias.  Any ideas why you seem to have 2 threads and I only one?
>
> Well, I have a computer with one CPU and two cores, you probably...
Show full article (2.14Kb)
no comments