<?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: Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1336844#M8942</link>
    <description>&lt;P&gt;Kindly help me wrt above query, where CMake does not populate MPI liubraries automatically using find_package(MPI ..) command and also the behavior I see in using "-i8" flag.&lt;/P&gt;
&lt;P&gt;This behavior is especially observed in Windows CMake build.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 05:32:51 GMT</pubDate>
    <dc:creator>vishy</dc:creator>
    <dc:date>2021-11-17T05:32:51Z</dc:date>
    <item>
      <title>Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1325022#M8870</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;
&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="69684595"&gt;&lt;SPAN style="font-family: inherit;"&gt;I am trying to enable 64 bit integer size for a sample hello world kind of Fortran test code, in an MPI setup. &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="69684595"&gt;&lt;SPAN style="font-family: inherit;"&gt;OS: Windows 10 &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="69684595"&gt;&lt;SPAN style="font-family: inherit;"&gt;Compiler used: Intel OneAPI 2021.3.0 &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="69684595"&gt;&lt;SPAN style="font-family: inherit;"&gt;MPI: Intel MPI&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="s-prose js-post-body"&gt;
&lt;P&gt;There are 2 scenarios I tried to test,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;using a single line command to compile an executable directly, mpiifort -o test.exe -i8 test.f90&lt;/LI&gt;
&lt;LI&gt;using a CmakeLists file to compile the test with necessary Fortran 64 bit "-i8" option and find_package(MPI). I made sure MPI libraries are picked (impi.lib, libmpi_ilp64.lib) and MPI_Fortran_Compiler points to mpiifort&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I use a test of determining the size of MPI_INTEGER using an API MPI_Type_size( ) to check if 64 bit environment is enabled for Fortran/MPI setup.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;call MPI_Type_size(MPI_INTEGER, sz, ierrsiz)
print *, 'sizeof(MPI_INTEGER) ', sz
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Scenario 1 prints correct size of 8 bytes (64 bit) Scenario 2 prints incorrect size of 4 bytes ( 32 bit)&lt;/P&gt;
&lt;P&gt;I do use "-i8" option in Cmake build system to enable 64 bit environment. But MPI still seems to be 32 bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached files/build logs.&lt;/P&gt;
&lt;P&gt;Kindly help.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Oct 2021 05:47:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1325022#M8870</guid>
      <dc:creator>vishy</dc:creator>
      <dc:date>2021-10-27T05:47:12Z</dc:date>
    </item>
    <item>
      <title>Re:Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1325465#M8879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing all the information. We are working on this internally and will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1325465#M8879</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-28T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re:Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1326951#M8895</link>
      <description>&lt;P&gt;Firstly, your Cmake uses our NextGen Fortran compiler (ifx.exe) while mpiifort refers to Intel Fortran Compiler Classic (ifort.exe). Please, note that ifx.exe is still in Beta and we recommend using it for openMP offload ONLY. For any other cases, please, continue using ifort. Add -DCMAKE_Fortran_COMPILER="ifort" macro to your cmake command line.&lt;/P&gt;&lt;TABLE class="ql-table-blob"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="200"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Source files are not identical and this is the reason for different results: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;test.f90: &lt;/B&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;B&gt;integer &lt;/B&gt;i, size, &lt;B&gt;rank&lt;/B&gt;, namelen, ierr, &lt;B&gt;ISIZE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;character (len=MPI_MAX_PROCESSOR_NAME) :: name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer stat(MPI_STATUS_SIZE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INTEGER&amp;nbsp;&amp;nbsp;:: sz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INTEGER&amp;nbsp;&amp;nbsp;:: ierrsiz&amp;nbsp;&amp;nbsp;  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  &lt;B&gt;ISIZE &lt;/B&gt;= SIZEOF(&lt;B&gt;rank&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;  print *, 'sizeof(INTEGER) = ', &lt;B&gt;ISIZE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;output: &lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(INTEGER) =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hello world: rank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;of&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sizeof(integer) =&amp;nbsp;&amp;nbsp;&amp;nbsp;8 is expected for &lt;B&gt;&amp;nbsp;INTEGER&amp;nbsp;&lt;/B&gt;&amp;nbsp;:: &lt;B&gt;rank &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;-i8 option  &lt;/B&gt;changes &amp;nbsp;sizeof(INTEGER) to 8 and I see 4 without this option. (mpiifort test.f90 VS mpiifort -i8 test.f90)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;test_cmakelists_example.f90: &lt;/B&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer i, &lt;B&gt;ISIZE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;character (len=MPI_MAX_PROCESSOR_NAME) :: name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;integer stat(MPI_STATUS_SIZE)&lt;/P&gt;&lt;P&gt;    INTEGER(4)&amp;nbsp;&amp;nbsp;:: sz&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INTEGER(4)&amp;nbsp;&lt;/B&gt;&amp;nbsp;:: ierr, size, &lt;B&gt;rank&lt;/B&gt;, namelen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INTEGER(4)&amp;nbsp;&amp;nbsp;:: ierrsiz&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;  &lt;B&gt;ISIZE &lt;/B&gt;= SIZEOF(&lt;B&gt;rank&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;  print *, 'sizeof(integer) = ', &lt;B&gt;ISIZE &lt;/B&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;output &lt;/B&gt;for &lt;B&gt;test_cmakelists_example.exe: &lt;/B&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(integer) =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;sizeof(MPI_INTEGER8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hello world: rank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;running on&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;What I see here when building without Cmake: &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;mpiifort test_cmakelists_example.f90&lt;/P&gt;&lt;P&gt;mpifc.bat for the Intel(R) MPI Library 2021.4 for Windows*&lt;/P&gt;&lt;P&gt;Copyright Intel Corporation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2021 Intel Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Microsoft (R) Incremental Linker Version 14.29.30040.0&lt;/P&gt;&lt;P&gt;Copyright (C) Microsoft Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-out:test_cmakelists_example.exe&lt;/P&gt;&lt;P&gt;-subsystem:console&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib\release"&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib"&lt;/P&gt;&lt;P&gt;impi.lib&lt;/P&gt;&lt;P&gt;test_cmakelists_example.obj&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;And what I see when adding -i8:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;mpiifort test_cmakelists_example.f90&lt;/P&gt;&lt;P&gt;mpifc.bat for the Intel(R) MPI Library 2021.4 for Windows*&lt;/P&gt;&lt;P&gt;Copyright Intel Corporation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2021 Intel Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Microsoft (R) Incremental Linker Version 14.29.30040.0&lt;/P&gt;&lt;P&gt;Copyright (C) Microsoft Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-out:test_cmakelists_example.exe&lt;/P&gt;&lt;P&gt;-subsystem:console&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib\release"&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib"&lt;/P&gt;&lt;P&gt;impi.lib&lt;/P&gt;&lt;P&gt;test_cmakelists_example.obj&lt;/P&gt;&lt;P&gt;C:\Users\ashadrin\Downloads\OSC\c05255486_f&amp;gt;mpiifort test_cmakelists_example.f90 -i8&lt;/P&gt;&lt;P&gt;mpifc.bat for the Intel(R) MPI Library 2021.4 for Windows*&lt;/P&gt;&lt;P&gt;Copyright Intel Corporation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000&lt;/P&gt;&lt;P&gt;Copyright (C) 1985-2021 Intel Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(24): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_INIT (ierr)&lt;/P&gt;&lt;P&gt;-----------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(26): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[SIZE]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_COMM_SIZE (MPI_COMM_WORLD, size, ierr)&lt;/P&gt;&lt;P&gt;--------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(26): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_COMM_SIZE (MPI_COMM_WORLD, size, ierr)&lt;/P&gt;&lt;P&gt;--------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(27): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[RANK]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_COMM_RANK (MPI_COMM_WORLD, rank, ierr)&lt;/P&gt;&lt;P&gt;--------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(27): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_COMM_RANK (MPI_COMM_WORLD, rank, ierr)&lt;/P&gt;&lt;P&gt;--------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(28): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[NAMELEN]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_GET_PROCESSOR_NAME (name, namelen, ierr)&lt;/P&gt;&lt;P&gt;-------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(28): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_GET_PROCESSOR_NAME (name, namelen, ierr)&lt;/P&gt;&lt;P&gt;----------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(30): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[SZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(30): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERRSIZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;----------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(32): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[SZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER4, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;-------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(32): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERRSIZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER4, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;-----------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(34): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[SZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER8, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;-------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(34): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERRSIZ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_Type_size(MPI_INTEGER8, sz, ierrsiz)&lt;/P&gt;&lt;P&gt;-----------------------------------------------------^&lt;/P&gt;&lt;P&gt;test_cmakelists_example.f90(59): warning #6075: The data type of the actual argument does not match the definition.&amp;nbsp;&amp;nbsp;[IERR]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call MPI_FINALIZE (ierr)&lt;/P&gt;&lt;P&gt;---------------------------^&lt;/P&gt;&lt;P&gt;Microsoft (R) Incremental Linker Version 14.29.30040.0&lt;/P&gt;&lt;P&gt;Copyright (C) Microsoft Corporation.&amp;nbsp;All rights reserved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-out:test_cmakelists_example.exe&lt;/P&gt;&lt;P&gt;-subsystem:console&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib\release"&lt;/P&gt;&lt;P&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib"&lt;/P&gt;&lt;P&gt;libmpi_ilp64.lib&lt;/P&gt;&lt;P&gt;impi.lib&lt;/P&gt;&lt;P&gt;test_cmakelists_example.obj&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, 03 Nov 2021 17:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1326951#M8895</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2021-11-03T17:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1327122#M8897</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;I used the same test application for mpiifort and cmake based compilation. And configured "ifort.exe" for CMAKE_Fortran_COMPILER during CMake configuration in command line. The size of MPI_INTEGER when compiled using cmake results in 0 (Zero) instead of 8 bytes.&lt;/P&gt;
&lt;P&gt;Following are the outputs for 2 scenarios:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;output for mpiifort and i8 compilation on same test.f90:&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;cmd: mpiifort -o test.exe -i8 test.f90&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;---------------------------------------------------------------&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;sizeof(sz) = 8&lt;BR /&gt;sizeof(MPI_INTEGER) 8&lt;BR /&gt;sizeof(MPI_INTEGER4) 4&lt;BR /&gt;sizeof(MPI_INTEGER8) 8&lt;BR /&gt;Hello world: rank 0 of 1 running on&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;---------------------------------------------------------------&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;output for cmake based compilation on same test.f90:&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;cmd:&amp;nbsp;cmake -S . -B out -G "Ninja" -DCMAKE_Fortran_COMPILER="ifort.exe" &amp;amp; cmake --build out --verbose&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;lt;attached cmakelists file and test.f90&amp;gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;---------------------------------------------------------------&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;sizeof(sz) = 8&lt;BR /&gt;sizeof(MPI_INTEGER) 0&lt;BR /&gt;sizeof(MPI_INTEGER4) 0&lt;BR /&gt;sizeof(MPI_INTEGER8) 0&lt;BR /&gt;Hello world: rank 0 of 0 running on&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;---------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 06:26:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1327122#M8897</guid>
      <dc:creator>vishy</dc:creator>
      <dc:date>2021-11-04T06:26:03Z</dc:date>
    </item>
    <item>
      <title>Re:Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1328064#M8914</link>
      <description>&lt;P&gt;I've noticed that I recommended you using &amp;nbsp;&lt;B&gt;-DCMAKE_Fortran_COMPILER="ifort.exe". &lt;/B&gt;However, for MPI applications we are using mpiiforr wrapper, so the correct macro here should be&amp;nbsp;&lt;B&gt;-DCMAKE_Fortran_COMPILER="mpiifort.bat". &lt;/B&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It seems that &lt;B&gt;INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH}) &lt;/B&gt;in the CMakeLists.txt&lt;B&gt; &lt;/B&gt;is the reason for MPI_INTEGER  = 0. I've removed it and got the same result as for '&lt;SPAN style="font-family: courier;"&gt;mpiifort -i8 test.f90&lt;/SPAN&gt;':&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;mpiexec -n 1 out/test.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;sizeof(sz) =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;sizeof(MPI_INTEGER)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;sizeof(MPI_INTEGER4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;sizeof(MPI_INTEGER8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;Hello world: rank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;running on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can check it from cmd using &lt;SPAN style="font-family: courier;"&gt;'mpiifort -I\ -I"C:\Program Files (x86)\Intel\oneAPI\mpi\latest\include"&amp;nbsp;-i8 test.f90'&lt;/SPAN&gt;. It should give you 0 instead of 8 \ 4 for MPI_INTEGERs. Then remove &lt;SPAN style="font-family: courier;"&gt;-I\ -I"C:\Program Files (x86)\Intel\oneAPI\mpi\latest\include" &lt;/SPAN&gt;the result should be correct.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:22:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1328064#M8914</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2021-11-08T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1328670#M8921</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;I was able to reproduce the steps above and got 8 byte size for MPI_INTEGER using CMake build system. Instead of using&amp;nbsp;&lt;STRONG&gt;-DCMAKE_Fortran_COMPILER="mpiifort.bat" &lt;/STRONG&gt;in command line, I added a set command in CMakeLists.txt&lt;STRONG&gt;&amp;nbsp;: "set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER})"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I was able to observe 2 weird behaviors using CMake build system:&lt;/P&gt;
&lt;P&gt;1. "find_package(MPI COMPONENTS C Fortran REQUIRED)" does not automatically find the required Intel MPI's ILP64 library. By default, only impi.lib is populated under MPI_C_LIBRARIES. For MPI ILP64 (i.e., 8 byte printing of MPI_INTEGER), the libraries need to be linked in correct order as follows:&amp;nbsp;libmpi_ilp64.lib;impi.lib. This, I achieve by manually forcing the variable "MPI_C_LIBRARIES" as used in CMakeLists.txt. Why cant find_package() command do the necessary work?&lt;/P&gt;
&lt;P&gt;2. The line in&amp;nbsp;CMakeLists.txt &amp;lt; add_definitions("-DInt=__int64" "-DUInt=unsigned __int64" "-i8" "-i8") &amp;gt;,&amp;nbsp; has "-i8" twice and is used intentionally. For some unknown reason, if I remove the duplicate "i8" and have a single mention,&amp;nbsp; size of MPI_INTEGER drops to 0 (zero) from 8&lt;/P&gt;
&lt;P&gt;Attaching the CmakeLists.txt and build logs.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:13:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1328670#M8921</guid>
      <dc:creator>vishy</dc:creator>
      <dc:date>2021-11-10T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1336844#M8942</link>
      <description>&lt;P&gt;Kindly help me wrt above query, where CMake does not populate MPI liubraries automatically using find_package(MPI ..) command and also the behavior I see in using "-i8" flag.&lt;/P&gt;
&lt;P&gt;This behavior is especially observed in Windows CMake build.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 05:32:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1336844#M8942</guid>
      <dc:creator>vishy</dc:creator>
      <dc:date>2021-11-17T05:32:51Z</dc:date>
    </item>
    <item>
      <title>Re:Problem enabling 64 bit Fortran compilation on Windows using Intel OneAPI with Cmake on Windows</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1342114#M9005</link>
      <description>&lt;P&gt;Apologies for taking so long to respond to your request. The investigation took more time than we expected. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The issue with find_package is a known issue and it is on the Cmake side. Please, follow this thread to learn more and track the progress &lt;A href="https://gitlab.kitware.com/cmake/cmake/-/issues/19427" target="_blank"&gt;https://gitlab.kitware.com/cmake/cmake/-/issues/19427&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt; In your latest CmakeLists, you passed -i8 it to &lt;B&gt;add_definitions("-DInt=__int64" "-DUInt=unsigned __int64" "-i8" "-i8"). &lt;/B&gt;However, &lt;B&gt;add_definitions &lt;/B&gt;is for preprocessor definitions not for compiler options. Please, use &lt;B&gt;target_compile_options&lt;/B&gt;(test PUBLIC ${FORTRAN_FLAG_INT64} "-ilp64" "-i8") instead.&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2021 14:11:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-enabling-64-bit-Fortran-compilation-on-Windows-using/m-p/1342114#M9005</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2021-12-07T14:11:21Z</dc:date>
    </item>
  </channel>
</rss>

