<?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 Re: gcc/ifc memory alignment for struct passed as reference in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742588#M1663</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;MADsblionel:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Those are just warnings. You can disable the warnings.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;So these warned about misalignments won't actually break anything?&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;You should use SEQUENCE in your derived type to eliminate any padding.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Ok, thanks - I'll look into that.&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Dec 2006 23:51:47 GMT</pubDate>
    <dc:creator>retromoly</dc:creator>
    <dc:date>2006-12-13T23:51:47Z</dc:date>
    <item>
      <title>gcc/ifc memory alignment for struct passed as reference</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742586#M1661</link>
      <description>I am porting a project from Windows to Linux where some F95 code is being called from C. In that code, strutures are passed by reference from C to FORTRAN, and vice-versa.&lt;BR /&gt;&lt;BR /&gt;The problem comes in that the memory alignment of these structures is different on the C side (as generated by gcc 4.1.1) then on the FORTRAN side (as generated by ifort 9.1). In a subset of the project I solved this by passing "-align none" to the fortran compiler and it worked beautifully.&lt;BR /&gt;&lt;BR /&gt;Now, on another subset I'm trying the same trick. But I'm getting errors such as the following for some of the structures:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;The structure length is not a multiple of its largest element; could create misalignments for arrays of this type.&lt;BR /&gt;&lt;BR /&gt;The structure contains one or more misaligned fields.&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;So ... what's going on here? It sounds like things might not go well if I proceed with the "-align none" option. I haven't exhausted my compiler options on either side to make things line up, but I'd be happy if somebody could point me in the right direction. And I could manually align them - but I really don't want to go there. There are quite a few of these errors reported.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2006 09:51:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742586#M1661</guid>
      <dc:creator>retromoly</dc:creator>
      <dc:date>2006-12-13T09:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: gcc/ifc memory alignment for struct passed as reference</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742587#M1662</link>
      <description>&lt;P&gt;Those are just warnings. You can disable the warnings.&lt;/P&gt;
&lt;P&gt;You should use SEQUENCE in your derived type to eliminate any padding.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:03:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742587#M1662</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-12-13T11:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: gcc/ifc memory alignment for struct passed as reference</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742588#M1663</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;MADsblionel:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Those are just warnings. You can disable the warnings.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;So these warned about misalignments won't actually break anything?&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;You should use SEQUENCE in your derived type to eliminate any padding.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Ok, thanks - I'll look into that.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2006 23:51:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-ifc-memory-alignment-for-struct-passed-as-reference/m-p/742588#M1663</guid>
      <dc:creator>retromoly</dc:creator>
      <dc:date>2006-12-13T23:51:47Z</dc:date>
    </item>
  </channel>
</rss>

