<?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 Problems using pipes between C# and IFORT 11.1 (rev 65) in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834503#M54177</link>
    <description>I manage pipes in Fortran just as files.&lt;BR /&gt;&lt;BR /&gt;There is just a trick with the EOF detection.&lt;BR /&gt;&lt;BR /&gt;Sincerely yours,&lt;BR /&gt;&lt;BR /&gt;F-Xavier</description>
    <pubDate>Wed, 25 Aug 2010 13:57:32 GMT</pubDate>
    <dc:creator>François-Xavier</dc:creator>
    <dc:date>2010-08-25T13:57:32Z</dc:date>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834501#M54175</link>
      <description>&lt;P&gt;Hello Intel Fortran users,&lt;BR /&gt;&lt;BR /&gt;I come today with a really strange issue with IFORT &lt;STRONG&gt;11.1.065&lt;/STRONG&gt;. &lt;BR /&gt;&lt;BR /&gt;I am used to work with Visual Studio 2008 (C# language)and Intel Fortran &lt;STRONG&gt;10&lt;/STRONG&gt;using pipes. I always found it is a very simple way (and quite robust) to make them communicate without coding wrappers from managed to unmanaged code. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sectionHeading"&gt;Principle is as following (&lt;STRONG&gt;working this Ifort 10&lt;/STRONG&gt;):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;1: C# open pipes using "NamedPipeServerStream" type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;public NamedPipes(string pipeName, PipeDirection dir)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;this.pipeStream = new NamedPipeServerStream(pipeName, dir, 254,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PipeTransmissionMode.Byte, PipeOptions.None,1000000000,1000000000);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;this.pipeName = pipeName;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;2: C# launch Fortran executable and gives arguments to open C# pipe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;3: Fortran Executable open pipe&lt;/SPAN&gt; (I must connect pipe both way before i can write in it)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C OPEN INPUT MASTER PIPE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OPEN(XPIP1,FILE=ARGV(2),STATUS='UNKNOWN',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;* FORM='FORMATTED',ACTION='READ', ERR=998)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;4: Fortran Executable proceed a blocking read, waiting C# writing in pipe&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;READ(XPIP1,'(A100)') YORDER&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;5: I proceed with a write in C# and the blocking read in Fortran react once pipe contains something&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;public void FillPipe(string aMessage)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;StreamWriter sw = new StreamWriter(this.pipeStream);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sw.AutoFlush = true;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sw.WriteLine(aMessage);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;... and so on.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sectionHeading"&gt;Problem description&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I compiled Fortran 10code with the &lt;STRONG&gt;IFORT 11.1.065&lt;/STRONG&gt; and step &lt;STRONG&gt;4 &lt;/STRONG&gt;in above procedure don't work anymore. When i fill pipe using a C# streamWriter, fortran READ doesn't react.&lt;BR /&gt;&lt;BR /&gt;I tried the same principle using a C++ "writefile". In that case, there is no problem.&lt;BR /&gt;&lt;BR /&gt;Could you help me understand this behaviour?&lt;BR /&gt;&lt;BR /&gt;Thank you for your precious help.&lt;BR /&gt;&lt;BR /&gt;Franois-Xavier Bouchez&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:06:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834501#M54175</guid>
      <dc:creator>François-Xavier</dc:creator>
      <dc:date>2010-08-25T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834502#M54176</link>
      <description>Never having seen usage of named pipes in Windows Fortran, I'd guess you would have to access the pipe through WinAPI function such as CallNamedPipe().</description>
      <pubDate>Wed, 25 Aug 2010 12:53:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834502#M54176</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-08-25T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834503#M54177</link>
      <description>I manage pipes in Fortran just as files.&lt;BR /&gt;&lt;BR /&gt;There is just a trick with the EOF detection.&lt;BR /&gt;&lt;BR /&gt;Sincerely yours,&lt;BR /&gt;&lt;BR /&gt;F-Xavier</description>
      <pubDate>Wed, 25 Aug 2010 13:57:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834503#M54177</guid>
      <dc:creator>François-Xavier</dc:creator>
      <dc:date>2010-08-25T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834504#M54178</link>
      <description>Dear Intel Forum, i feel that this problem does not seem to inspire you.&lt;BR /&gt;&lt;BR /&gt;I will report a bug to the support and I will post the solution.&lt;BR /&gt;&lt;BR /&gt;Sincerely yours,&lt;BR /&gt;&lt;BR /&gt;F-Xavier</description>
      <pubDate>Fri, 17 Sep 2010 11:13:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834504#M54178</guid>
      <dc:creator>François-Xavier</dc:creator>
      <dc:date>2010-09-17T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834505#M54179</link>
      <description>If your solution works with C++ but not with C#, could it be that there is something on the C#-side&lt;BR /&gt;that is working differently than you expect? &lt;BR /&gt;&lt;BR /&gt;I have little experience with C#, but I would suspect something is going wrong with flushing. What &lt;BR /&gt;happens if you explicitly flsuh the pipe, instead of relying on "auto-flush"?&lt;BR /&gt;&lt;BR /&gt;(I recently had a very similar problem, but that was with a Fortran program, compiled with gfortran sending &lt;BR /&gt;data over TCP/IP - by sending CRLF things were send to the other side. I still have to figure out what behaviour is to be expected)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Fri, 17 Sep 2010 12:12:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834505#M54179</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-09-17T12:12:09Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834506#M54180</link>
      <description>F-Xavier,&lt;BR /&gt;&lt;BR /&gt;No need to report a seperate bug report to premier.intel.com. I can this this thread private and you can add the test case along with details how to build it here. Its fine if you have already reported it to premier.intel.com.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2010 23:09:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834506#M54180</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2010-09-20T23:09:57Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834507#M54181</link>
      <description>Hi Wendy and Xavier&lt;BR /&gt;&lt;BR /&gt;Instead of limited the solution to be "private", I would like to request you to consider posting a part of the solution that can be shared with others as well. A "general procedure" may be useful for everyone.&lt;BR /&gt;&lt;BR /&gt;Abhi</description>
      <pubDate>Mon, 20 Sep 2010 23:47:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834507#M54181</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2010-09-20T23:47:05Z</dc:date>
    </item>
    <item>
      <title>Problems using pipes between C# and IFORT 11.1 (rev 65)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834508#M54182</link>
      <description>Once we get this isolated to a small test case, I would be happy to post it along with the root cause. So far, still waiting for a test case though.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2010 22:03:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834508#M54182</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2010-09-21T22:03:51Z</dc:date>
    </item>
    <item>
      <title>Dear Intel Fortran forum,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834509#M54183</link>
      <description>&lt;P&gt;Dear Intel Fortran forum,&lt;/P&gt;
&lt;P&gt;Sorry for reopening this topic but we have kept the 10.1 compiler for this executable for 3 years due to priorities. Now that we have time, we would like to upgrade to Intel XE 2011 compiler. Problem with Intel XE2011 is the same as with 11.1. As a reminder, my code works with Intel 10.&lt;/P&gt;
&lt;P&gt;THis time, I have made a lots of experiments and found that, if I add caracters in the pipe (&amp;gt; 1000), the READ statement (100 caracters) unblocks. I remind that the pipe is written by C# executable with a streamwriter and that there is an autoflush.&lt;/P&gt;
&lt;P&gt;So, clearly, there is a Intel Fortran compiler behaviour which is different since Intel 11.1.&lt;/P&gt;
&lt;P&gt;If my feeling is good, maybe the problem C# - Fortran could also be with Fortran - Fortran, but have not tried.&lt;/P&gt;
&lt;P&gt;Are these information sufficient, or do I need to reproduce on a dummy case?&lt;/P&gt;
&lt;P&gt;Sincerely yours and thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2013 06:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834509#M54183</guid>
      <dc:creator>François-Xavier</dc:creator>
      <dc:date>2013-05-31T06:47:00Z</dc:date>
    </item>
    <item>
      <title>We will need a test case -</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834510#M54184</link>
      <description>We will need a test case - thanks.</description>
      <pubDate>Fri, 31 May 2013 13:21:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834510#M54184</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-05-31T13:21:47Z</dc:date>
    </item>
    <item>
      <title>What happens when you try to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834511#M54185</link>
      <description>&lt;P&gt;What happens when you try to read the C# data through the pipe....&lt;BR /&gt;using a C# program?&lt;/P&gt;
&lt;P&gt;What happens if (or should I ask are) you supply what would ordinarily be a record terminator for FORTRAN console input (i.e. the RETURN character)?&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2013 20:14:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834511#M54185</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-05-31T20:14:19Z</dc:date>
    </item>
    <item>
      <title>What happens when you try to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834512#M54186</link>
      <description>&lt;P&gt;What happens when you try to read the C# data through the pipe....&lt;BR /&gt;using a C# program?&lt;/P&gt;
&lt;P&gt;What happens if (or should I ask are) you supply what would ordinarily be a record terminator for FORTRAN console input (i.e. the RETURN character)?&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2013 20:14:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-using-pipes-between-C-and-IFORT-11-1-rev-65/m-p/834512#M54186</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-05-31T20:14:19Z</dc:date>
    </item>
  </channel>
</rss>

