<?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 Hello, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086797#M123190</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;after carefully dissecting the globals.F90 file above, I found that the following line was causing trouble:&lt;/P&gt;

&lt;P&gt;PROCEDURE(deriv_sub), POINTER :: deriv =&amp;gt; null()&lt;/P&gt;

&lt;P&gt;setting it as&lt;/P&gt;

&lt;P&gt;PROCEDURE(deriv_sub), POINTER :: deriv ! =&amp;gt; null()&lt;/P&gt;

&lt;P&gt;then the .mod files only have differences in the first 50 bytes, which I can ignore and avoid compilation cascades.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Ángel de Vicente&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 11:30:30 GMT</pubDate>
    <dc:creator>de_Vicente__Angel</dc:creator>
    <dc:date>2016-04-13T11:30:30Z</dc:date>
    <item>
      <title>.mod files from exactly same source file differ beyond the first 50 bytes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086796#M123189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;trying to avoid a compilation cascade, I have been looking at how Intel Fortran generates .mod files. Searching in the internet, I thought that Intel Fortran would include a timestamp in the first few bytes of the .mod file, so that if I ignored those first bytes I could see whether the .mod definitions actually changed from one compilation to another. But this is not working as expected. For one of the files in our code I do:&lt;/P&gt;

&lt;P&gt;[angelv@duna]$ h5pfc -O0 -fpp&amp;nbsp; -c mancha_src/globals.F90&lt;BR /&gt;
	[angelv@duna]$ cp globals.mod globals.mod.backup&lt;BR /&gt;
	[angelv@duna]$ h5pfc -O0 -fpp&amp;nbsp; -c mancha_src/globals.F90&lt;BR /&gt;
	[angelv@duna]$ cmp -l globals.mod globals.mod.backup&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; 49 126 115&lt;BR /&gt;
	18684 122 337&lt;BR /&gt;
	[angelv@duna]$ h5pfc --version&lt;BR /&gt;
	ifort (IFORT) 15.0.2 20150121&lt;BR /&gt;
	Copyright (C) 1985-2015 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;[angelv@duna]$&lt;/P&gt;

&lt;P&gt;So, those two .mod files, generated without modifying the source file at all differ in the byte 49 (OK, as expected due to the timestamp), but also in the byte 18684 (this is about 30% into the file).&lt;/P&gt;

&lt;P&gt;Is there any way to avoid these changes in the .mod files except in some fixed position in the file?&lt;/P&gt;

&lt;P&gt;As another example, for the json_module.F90 file (available from &lt;A href="http://jacobwilliams.github.io/json-fortran/sourcefile/json_module.f90.html)" target="_blank"&gt;http://jacobwilliams.github.io/json-fortran/sourcefile/json_module.f90.html)&lt;/A&gt;, I get even more differences:&lt;/P&gt;

&lt;P&gt;[angelv@duna]$ ifort -O0 -fpp&amp;nbsp; -c mancha_src/json_module.F90&lt;BR /&gt;
	[angelv@duna]$ cp json_module.mod json_module.mod.backup&lt;BR /&gt;
	[angelv@duna]$ ifort -O0 -fpp&amp;nbsp; -c mancha_src/json_module.F90&lt;BR /&gt;
	[angelv@duna]$ cmp -l json_module.mod json_module.mod.backup&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; 49 224 217&lt;BR /&gt;
	28156 165 140&lt;BR /&gt;
	28364 165 140&lt;BR /&gt;
	28572 165 140&lt;BR /&gt;
	28780 165 140&lt;BR /&gt;
	28988 165 140&lt;BR /&gt;
	29548 165 140&lt;BR /&gt;
	29713 165 140&lt;BR /&gt;
	30626 165 140&lt;BR /&gt;
	[angelv@duna]$ ifort -V&lt;BR /&gt;
	Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.2.164 Build 20150121&lt;BR /&gt;
	Copyright (C) 1985-2015 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;[angelv@duna]$&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Ángel de Vicente&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Is&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:43:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086796#M123189</guid>
      <dc:creator>de_Vicente__Angel</dc:creator>
      <dc:date>2016-04-13T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086797#M123190</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;after carefully dissecting the globals.F90 file above, I found that the following line was causing trouble:&lt;/P&gt;

&lt;P&gt;PROCEDURE(deriv_sub), POINTER :: deriv =&amp;gt; null()&lt;/P&gt;

&lt;P&gt;setting it as&lt;/P&gt;

&lt;P&gt;PROCEDURE(deriv_sub), POINTER :: deriv ! =&amp;gt; null()&lt;/P&gt;

&lt;P&gt;then the .mod files only have differences in the first 50 bytes, which I can ignore and avoid compilation cascades.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Ángel de Vicente&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:30:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086797#M123190</guid>
      <dc:creator>de_Vicente__Angel</dc:creator>
      <dc:date>2016-04-13T11:30:30Z</dc:date>
    </item>
    <item>
      <title>We thought we had eliminated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086798#M123191</link>
      <description>&lt;P&gt;We thought we had eliminated all such differences. Can you provide a small source that shows the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:21:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086798#M123191</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-04-13T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Hi Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086799#M123192</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;

&lt;P&gt;yes, the attached file is a minimal version that has the mentioned behaviour.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Ángel de Vicente&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;[angelv@duna angelv]$ ifort -V&lt;BR /&gt;
	Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.2.164 Build 20150121&lt;BR /&gt;
	Copyright (C) 1985-2015 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;[angelv@duna angelv]$ ifort -c test.f90&lt;BR /&gt;
	[angelv@duna angelv]$ cp test.mod test.mod.backup&lt;BR /&gt;
	[angelv@duna angelv]$ ifort -c test.f90&lt;BR /&gt;
	[angelv@duna angelv]$ cmp -l test.mod test.mod.backup&lt;BR /&gt;
	&amp;nbsp; 49 172 164&lt;BR /&gt;
	4490 156 120&lt;BR /&gt;
	[angelv@duna angelv]$&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 22:24:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086799#M123192</guid>
      <dc:creator>de_Vicente__Angel</dc:creator>
      <dc:date>2016-04-13T22:24:07Z</dc:date>
    </item>
    <item>
      <title>Thanks - escalated as issue</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086800#M123193</link>
      <description>&lt;P&gt;Thanks - escalated as issue&amp;nbsp;DPD200410040. Curiously I couldn't reproduce a difference on Windows, but could on Linux.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:59:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/mod-files-from-exactly-same-source-file-differ-beyond-the-first/m-p/1086800#M123193</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-04-18T15:59:42Z</dc:date>
    </item>
  </channel>
</rss>

