<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic compiling ifort with -openmp flag in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763050#M18436</link>
    <description>In my version of ifort, I see no -auto option, other than -auto-scalar. Do you mean -parallel? It runs fine with the -parallel option (though the speed up is perhaps only %20 or so).&lt;BR /&gt;</description>
    <pubDate>Tue, 21 Feb 2012 20:22:37 GMT</pubDate>
    <dc:creator>rdpob</dc:creator>
    <dc:date>2012-02-21T20:22:37Z</dc:date>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763048#M18434</link>
      <description>In Mac OS 10.6, I have a program that compiles and runs fine without the -openmp flag. As soon as I introduce that flag, I can compile fine, but get an immediate crash on the first line of the code with the error "illegal instruction". It doesnt matter whether or not I have any openmp directives in the code, I get the same result. &lt;BR /&gt;I've also run a couple of simple examples from the Openmp book and these compile and run fine. Any ideas?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2012 16:46:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763048#M18434</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-21T16:46:43Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763049#M18435</link>
      <description>Does the same thing happen if you use -auto instead of -openmp?</description>
      <pubDate>Tue, 21 Feb 2012 18:30:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763049#M18435</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-02-21T18:30:47Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763050#M18436</link>
      <description>In my version of ifort, I see no -auto option, other than -auto-scalar. Do you mean -parallel? It runs fine with the -parallel option (though the speed up is perhaps only %20 or so).&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2012 20:22:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763050#M18436</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-21T20:22:37Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763051#M18437</link>
      <description>No, I don't mean -parallel. -auto is a valid option. If you find, somehow, that doesn't work, try -recursive.</description>
      <pubDate>Tue, 21 Feb 2012 22:11:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763051#M18437</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-02-21T22:11:04Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763052#M18438</link>
      <description>I tried both, separately, with the same previous result. While the compiler didnt complain, there is no -auto flag in the man pages for Mac OS X ifort. &lt;BR /&gt;&lt;BR /&gt;Any other ideas? By the way, thanks for taking the time!&lt;BR /&gt;&lt;BR /&gt;-Lee&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:37:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763052#M18438</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-21T22:37:58Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763053#M18439</link>
      <description>Here is the Makefile, if that is of help. Also, in the intel debugger, I get a failure on the first line of the program &lt;BR /&gt;"PROGRAM MAIN", with the descriptor "SIGBUS" error. &lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;# Makefile for the 3D Shear Velocity inversion &lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;FC = ifort&lt;BR /&gt;FFLAGS = -parallel -g -openmp -recursive -debug extended -O0 -m64 -openmp-report=1 -align all&lt;BR /&gt;EXTND=-extend_source 132&lt;BR /&gt;&lt;BR /&gt;#FC = gfortran&lt;BR /&gt;#EXTND=-ffixed-line-length-none&lt;BR /&gt;&lt;BR /&gt;CC = gcc&lt;BR /&gt;CFLAGS = -O -m64 &lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# You need a sacio lib to link this code.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;SACLIB = /usr/local/bin/sac/lib/libsacio.a&lt;BR /&gt;&lt;BR /&gt;# Need dynamic libraries, but already set in shell&lt;BR /&gt;# DYLD_LIBRARY_PATH = /Developer/opt/intel/composer_xe_2011_sp1.7.246/compiler/lib&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Executable will be placed here.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;BINDIR=.&lt;BR /&gt;&lt;BR /&gt;OBJS = lovdsp.o lovmrx.o raydsp.o raymrx.o partials.o gett.o \&lt;BR /&gt; lprModel.o rayrkg.o lovrkg.o drgSubroutines.o \&lt;BR /&gt; buildGravitynew.o transform_r_gfortran.o filterGravity.o&lt;BR /&gt;#&lt;BR /&gt;# Small problems can be handled by an SVD approach&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;SVDOBJS = svdrs.o h12.o &lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Larger problems require a conjugate gradiewnt-based approach.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;LSQROBJS = lsqr.o lsqrblas.o aprod.o row_io.o lsqrUtils.o&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# dr indicates dispersion &amp;amp; rftn inversion&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;dr_3d_inv: $(OBJS) $(SVDOBJS) $(LSQROBJS) model3d.inc dr_3d_inv.o &lt;BR /&gt; $(FC) $(FFLAGS) $(OBJS) $(SVDOBJS) $(LSQROBJS) -o $(BINDIR)/dr_3d_inv dr_3d_inv.o $(SACLIB) $(EXTND)&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;clean:&lt;BR /&gt;# rm *.o&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# dependencies&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;dr_3d_inv.o: dr_3d_inv.f model3d.inc&lt;BR /&gt; $(FC) $(FFLAGS) $(EXTND) $(OBJS) $(SVDOBJS) $(LSQROBJS) model3d.inc -c dr_3d_inv.f $(SACLIB)&lt;BR /&gt;#&lt;BR /&gt;lsqrUtils.o: lsqrUtils.f&lt;BR /&gt; $(FC) $(FFLAGS) $(EXTND) -c lsqrUtils.f&lt;BR /&gt;#&lt;BR /&gt;drgSubroutines.o:drgSubroutines.f&lt;BR /&gt; $(FC) $(FFLAGS) $(EXTND) -c drgSubroutines.f&lt;BR /&gt;#&lt;BR /&gt;buildGravitynew.o: buildGravitynew.f model3d.inc&lt;BR /&gt; $(FC) $(FFLAGS) $(EXTND) -c buildGravitynew.f&lt;BR /&gt;#&lt;BR /&gt;filterGravity.o: filterGravity.f model3d.inc&lt;BR /&gt; $(FC) $(FFLAGS) $(EXTND) -c filterGravity.f&lt;BR /&gt;#&lt;BR /&gt;transform_r_gfortran.o:transform_r_gfortran.c&lt;BR /&gt;#&lt;BR /&gt;svdrs.o: svdrs.f&lt;BR /&gt;h12.o: h12.f&lt;BR /&gt;lovdsp.o: lovdsp.f&lt;BR /&gt;lovmrx.o: lovmrx.f&lt;BR /&gt;raydsp.o: raydsp.f&lt;BR /&gt;raymrx.o: raymrx.f&lt;BR /&gt;partials.o: partials.f&lt;BR /&gt;gett.o: gett.f&lt;BR /&gt;sac2xy.o: sac2xy.f&lt;BR /&gt;srf2sac.o: srf2sac.f&lt;BR /&gt;lovrkg.o: lovrkg.f&lt;BR /&gt;rayrkg.o: rayrkg.f&lt;BR /&gt;lsqr.o: lsqr.f&lt;BR /&gt;lsqrblas.o:lsqrblas.f&lt;BR /&gt;aprod.o: aprod.c&lt;BR /&gt;row_io.o: row_io.c&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:20:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763053#M18439</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-22T16:20:53Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763054#M18440</link>
      <description>I wanted to see if -auto caused the same problem as -openmp. Do I understand that it does? If so, then what is likely happening is that you are overflowing the stack. -openmp implies -auto (-recursive is an alias) - both are in the documentation (not sure about man pages, though - I don't think the man page is comprehensive.) This puts all local variables on the stack. OpenMP complicates the issue by having thread-specific stacks.&lt;BR /&gt;&lt;BR /&gt;The first thing I suggest you try is to unlimit the stack. The syntax to do this varies by shell, it can be:&lt;BR /&gt;&lt;BR /&gt;ulimit stack&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;limit stacksize unlimited&lt;BR /&gt;&lt;BR /&gt;This doesn't really make it "unlimited", but raises the size to the max configured for the kernel. You may then need to try setting the environment variable KMP_STACKSIZE to a larger value - try "16M" (without the quotes).</description>
      <pubDate>Wed, 22 Feb 2012 18:37:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763054#M18440</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-02-22T18:37:10Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763055#M18441</link>
      <description>Is this possibly a stack size issue? I've set OMP_STACKSIZE to sizes up to 1G with no luck. I've also used the csh built-in command ulimit to set it to the hard amount, which I think is 65M (up from 8M). Or are those values given in K?&lt;BR /&gt;&lt;BR /&gt;Any help ideas welcome....</description>
      <pubDate>Thu, 23 Feb 2012 17:13:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763055#M18441</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T17:13:15Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763056#M18442</link>
      <description>Steve, do I need to compile with the stack increased or just run in a shell with it increased? Or both?</description>
      <pubDate>Thu, 23 Feb 2012 17:16:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763056#M18442</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T17:16:29Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763057#M18443</link>
      <description>OMP_STACKSIZE defaults to 4MB (for 64-bit builds). The largest I have seen used is 32MB. This amount, times number of threads, comes out of your total stack, as seen by ulimit. &lt;BR /&gt;The build doesn't remember anything about what stack you had set at build time, and there's no stack size built in such as you would set when using Microsoft linker.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2012 17:32:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763057#M18443</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-02-23T17:32:04Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763058#M18444</link>
      <description>Somehow I didnt get yesterday's reply until today. Oh well. So, I've set OMP_STACKSIZE and KMP_STACKSIZE to 16M and used limit stacksize unlimited in both the run and compile shells. Still fails with same error. I checked and using -automatic gives me "option deprecated". I think it has been replaced with -parallel.&lt;BR /&gt;&lt;BR /&gt;the code runs with -parallel, but fails with both -automatic and -openmp, with or without the stacksize settings.</description>
      <pubDate>Thu, 23 Feb 2012 17:32:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763058#M18444</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T17:32:29Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763059#M18445</link>
      <description>It is worth pointing out that the code fails regardless of whether or not I've included any openmp directives in the actual program. It is just the addition of "-openmp" to the compilation line that introduces the errors.</description>
      <pubDate>Thu, 23 Feb 2012 17:35:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763059#M18445</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T17:35:26Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763060#M18446</link>
      <description>When I set OMP_NUM_THREADS to 1,2 or 8, (with the stack sizes enlarged as before) I get the same error.</description>
      <pubDate>Thu, 23 Feb 2012 17:49:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763060#M18446</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T17:49:39Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763061#M18447</link>
      <description>-auto has nothing to do with -parallel. I didn't say -automatic.</description>
      <pubDate>Thu, 23 Feb 2012 18:28:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763061#M18447</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-02-23T18:28:37Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763062#M18448</link>
      <description>It doesnt work with -auto either....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2012 20:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763062#M18448</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T20:39:12Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763063#M18449</link>
      <description>When I look in the Intel Software Development Tools/Intel FOrtran Compiler User and Reference Guides the option "auto" refers one to the option "automatic". Document number 304970-006US. Maybe its an old version, who knows...</description>
      <pubDate>Thu, 23 Feb 2012 20:43:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763063#M18449</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T20:43:16Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763064#M18450</link>
      <description>By the way, I should have mentioned this earlier, I'm using XE 12.1.</description>
      <pubDate>Thu, 23 Feb 2012 20:45:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763064#M18450</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T20:45:05Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763065#M18451</link>
      <description>&lt;A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/mac/copts/fortran_options/option_auto_f.html"&gt;Documentation for -auto&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If -auto behaves the same way as -openmp, then that confirms my theory that stack space is the issue.&lt;BR /&gt;&lt;BR /&gt;What happens if you add -heap-arrays ?</description>
      <pubDate>Thu, 23 Feb 2012 22:02:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763065#M18451</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-02-23T22:02:32Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763066#M18452</link>
      <description>Yeah, it still fails in the same way. Thanks for the doc info. I'm slowly getting better at using the documentation...</description>
      <pubDate>Thu, 23 Feb 2012 22:19:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763066#M18452</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-23T22:19:19Z</dc:date>
    </item>
    <item>
      <title>compiling ifort with -openmp flag</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763067#M18453</link>
      <description>Here is a summary of what doesnt work. I've set the stacksize to unlimited (65336) and can check to be sure&lt;BR /&gt;that is the case. I've set KMP_STACKSIZE to 16M. I've tried compiling with -auto, -openmp, -recursive, -heap-arrays. So far, none of this has made a difference. I still get an error on the first line when I run the code. In the&lt;BR /&gt;debugger (IDB), I get a SIGBUS error. Outside of the debugger, I get "illegal instruction". Anybody have any further ideas? Thanks for your contributions so far!&lt;BR /&gt;&lt;BR /&gt;-Lee</description>
      <pubDate>Tue, 28 Feb 2012 21:27:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compiling-ifort-with-openmp-flag/m-p/763067#M18453</guid>
      <dc:creator>rdpob</dc:creator>
      <dc:date>2012-02-28T21:27:07Z</dc:date>
    </item>
  </channel>
</rss>

