You are correct. The dash I had in the linker property was the problem with my -openmp option. Somehow I had the long-dash (ASCII character 150). I replaced it with the regular dash (ASCII character 45) and it works fine.
I really have no idea how the long-dash got there. I only have a key for the regular dash on my keyboard. Maybe I copied the -openmp from some website with the long-dash.
I am now up an running. Thanks for your help.
David Bal
--- On Fri, 3/5/10, Hilliard, Bill <bill.hilliard@xxxxxxxxx> wrote:
From: Hilliard, Bill <bill.hilliard@xxxxxxxxx> Subject: RE: [photran] OpenMP with Intel Fortran on Photran To: "Photran Information"
<photran@xxxxxxxxxxx> Date: Friday, March 5, 2010, 8:59 AM
Your path is ok. I unzipped the
project and tried to build it. What I see in the console build output is
the “-openmp” option to the linker is translated by the ide into “?openmp”
in the actual command. I revisited the linker property again, deleted
what appeared to be a dash as you entered it and reentered a dash. After
applying the new setting and clean/rebuild, all works fine for me. Can
you check to see what character you actually typed for the dash and try
reentering?
Bill
From:
photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx] On Behalf Of David Bal
Sent: Friday, March 05, 2010 10:45
AM
To: Photran
Information
Subject: RE: [photran] OpenMP with
Intel Fortran on Photran
As a test, I opened a terminal window and typed in
the following from my test12 workspace folder:
ifort test12.f90 -openmp
It complied fine and produced a working executable.
Could the problem with Eclipse be with my Path variables?
I included the following into my .bashrc file:
. /opt/intel/Compiler/11.1/064/bin/ifortvars.sh ia32
Is there something else I need to do?
Regards,
David Bal
--- On Thu, 3/4/10, Hilliard, Bill <bill.hilliard@xxxxxxxxx>
wrote:
From: Hilliard, Bill <bill.hilliard@xxxxxxxxx>
Subject: RE: [photran] OpenMP with Intel Fortran on Photran
To: " Photran Information "
<photran@xxxxxxxxxxx>
Date: Thursday, March 4, 2010, 9:22 PM
Looks like your linker setting is fine. Can you zip up the
test12 project and send it to me so I can look through the files for more
clues?
Thanks,
Bill
From: photran-bounces@xxxxxxxxxxx
[mailto:photran-bounces@xxxxxxxxxxx] On
Behalf Of David Bal
Sent: Thursday, March 04, 2010
10:01 PM
To: Photran
Information
Subject: RE: [photran] OpenMP
with Intel Fortran on Photran
I
appreciate your help. I would be lost if I was on my own.
I have followed your suggestion and collected a couple of screen
shots. One shows where I put "-openmp" in the linker
settings. The other screen shot shows you the source code and the
errors I get.
Thanks,
David Bal
--- On Thu, 3/4/10, Hilliard, Bill <bill.hilliard@xxxxxxxxx>
wrote:
From: Hilliard, Bill <bill.hilliard@xxxxxxxxx>
Subject: RE: [photran] OpenMP with Intel Fortran on Photran
To: " Photran Information
" <photran@xxxxxxxxxxx>
Date: Thursday, March 4, 2010, 5:39 AM
I’m not sure what to suggest here.
That works for me and I cannot reproduce what you are seeing.
Can you double check where you added the -openmp property in the
linker tool again just to be sure it is correct? You can send me a
screen shot of the property page if you want and I’ll see if I can
spot anything.
If that does not lead us anywhere, can you
zip up the project and send it to me to look at? My reproducing test
case is very simple. I created an Intel Fortran executable project
with a source file that is just a helloworld program. Then I enable
–openmp in the compile step to see the original problem. Then I
add –openmp in the linker tool as described to see the problem resolved.
Are you doing anything more complicated/different than that (multiple
source files, other options set, etc., anything else that might help me
reproduce the situation)?
Thanks,
Bill
From: photran-bounces@xxxxxxxxxxx
[mailto:photran-bounces@xxxxxxxxxxx] On
Behalf Of David Bal
Sent: Thursday, March 04, 2010
1:30 AM
To: Photran
Information
Subject: RE: [photran] OpenMP
with Intel Fortran on Photran
I
did as you said and added -openmp under Intel Linker tool >
“Command Line” to the “Additional Options”
box. It did not work. I got "error #10236: File not
found: '-openmp'" Any suggestions?
--- On Wed, 3/3/10, Hilliard, Bill <bill.hilliard@xxxxxxxxx>
wrote:
From: Hilliard, Bill <bill.hilliard@xxxxxxxxx>
Subject: RE: [photran] OpenMP with Intel Fortran on Photran
To: " Photran Information
" <photran@xxxxxxxxxxx>
Date: Wednesday, March 3, 2010, 12:36 PM
That should work but I just tried and see
that it does not. The –openmp option setting is supposed to
be automatically propagated to the link step when you change it on the
compile step. I’ll investigate why it is not happening but in
the meantime, you can open the property page settings for the Intel
Linker tool > “Command Line” and add the –openmp
option to the “Additional Options” box. That should fix
it for now.
Hope that helps,
Bill Hilliard
From:
photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx] On Behalf Of David Bal
Sent: Wednesday, March 03,
2010 2:49 PM
To: Photran
Information
Subject: [photran] OpenMP
with Intel Fortran on Photran
I
am having trouble using OpenMP with the Intel 11.1 compiler on
Photran. My project is a Executable Intel Fortran project (using
managed make file I believe).
In order to turn on OpenMP I went under project properties then Intel
IA-32 Fortran Compiler then Language. I changed the Process
OpenMP Directives option from Disable to General Parallel Code
(-openmp).
When I compile a very simple OpenMP program I get a string of errors in
the Fortran Linker. The first error is "undefined reference
to `__kmpc_begin'"
My guess is that the managed make file can not handle OpenMP. Is
that right? Any other ideas?
Thanks,
David Bal
|
-----Inline Attachment Follows-----
|
-----Inline Attachment Follows-----
|
-----Inline Attachment Follows-----
|
-----Inline Attachment Follows-----
|