<?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: Can not read .bin file | ifort on Linux in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413069#M33626</link>
    <description>&lt;P&gt;The .bin file contains N X N four-byte integers (4 N X N = 3240000 bytes). In contradiction to this assumption, you specify the -i8 compiler option, which tells the compiler that eight-byte integers are to be used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are mistaken in your conclusion that for small N the program runs well. You may not see any error messages during such a run, but the values read will definitely be wrong, as you can verify by printing out a few values.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 16:09:17 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2022-09-06T16:09:17Z</dc:date>
    <item>
      <title>Can not read .bin file | ifort on Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413029#M33623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to read a binary file. I create the file by using Matlab and then I read by Fortran.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this example, I used the command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifort -qopenmp -I$/openmp/intel/oneapi/mkl/2022.1.0/include/intel64/ilb64-m64 -DMKL_ILP64 -i8  -I"$/opt/intel/oneapi/mkl/2022.1.0/include" -fpp -qmkl -nologo -O3 -Os -parallel -heap-arrays[0] Console1.f90 -o Console1&lt;/LI-CODE&gt;
&lt;P&gt;I can run the program well by visual studio. If I use ifort compiler, for small N (N=3) I can read the binary file but for the large N (N=900) I can not read. The error is:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;forrtl: severe (24): end-of-file during read, unit 1, file /home/hieu/Downloads/testbin/A.bin
Image              PC                Routine            Line        Source             
Console1           0000000000440A49  Unknown               Unknown  Unknown
Console1           00000000004150FC  Unknown               Unknown  Unknown
Console1           000000000041258E  Unknown               Unknown  Unknown
Console1           0000000000404F27  Unknown               Unknown  Unknown
Console1           0000000000404D62  Unknown               Unknown  Unknown
libc-2.17.so       00007F9CD0DFE555  __libc_start_main     Unknown  Unknown
Console1           0000000000404C69  Unknown               Unknown  Unknown&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Is there any option of ifort command I am missing or any mistake I made?&lt;/P&gt;
&lt;P&gt;I attach the binary file and the Fortran code. Please help me!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 12:53:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413029#M33623</guid>
      <dc:creator>nvh10</dc:creator>
      <dc:date>2022-09-06T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can not read .bin file | ifort on Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413069#M33626</link>
      <description>&lt;P&gt;The .bin file contains N X N four-byte integers (4 N X N = 3240000 bytes). In contradiction to this assumption, you specify the -i8 compiler option, which tells the compiler that eight-byte integers are to be used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are mistaken in your conclusion that for small N the program runs well. You may not see any error messages during such a run, but the values read will definitely be wrong, as you can verify by printing out a few values.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:09:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413069#M33626</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2022-09-06T16:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can not read .bin file | ifort on Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413158#M33628</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;By changing -i8 to -i4 I can run my program.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 02:44:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413158#M33628</guid>
      <dc:creator>nvh10</dc:creator>
      <dc:date>2022-09-07T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re:Can not read .bin file | ifort on Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413194#M33630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Sep 2022 06:47:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-not-read-bin-file-ifort-on-Linux/m-p/1413194#M33630</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-09-07T06:47:22Z</dc:date>
    </item>
  </channel>
</rss>

