<?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 How to write an array into a file in idb in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748825#M5906</link>
    <description>In another word, there is no easy way? In that case, I will work on your suggestion, andhopefullyI can make it into an handy tool.&lt;DIV&gt;Thanks for the suggestion.&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Aug 2010 12:46:53 GMT</pubDate>
    <dc:creator>afellow</dc:creator>
    <dc:date>2010-08-30T12:46:53Z</dc:date>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748821#M5902</link>
      <description>I am dealing with very large arrays, and it would be very helpful to plot them whendebugging. DDD seems to do such things but it is too buggy and very slow for large arrays. I would like to write it into a file (ASCII/Binary) and plot with gnuplot or matlab. Is there any way to do so in idb?&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;If I can use "print" command and redirected the result into a file, that would be also cool. But I don't know how to make it either.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I know in gbd, there is a command called&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;"dump value filename arrayname",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;which write an array into a binary file,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;but it is not supported in idb.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Any ideas would be welcome. It has bothered me for a very long time.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Aug 2010 03:05:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748821#M5902</guid>
      <dc:creator>afellow</dc:creator>
      <dc:date>2010-08-27T03:05:08Z</dc:date>
    </item>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748822#M5903</link>
      <description>afellow,&lt;BR /&gt;&lt;BR /&gt;Have you thought of using the preprocessor and some macros?&lt;BR /&gt;&lt;BR /&gt;#ifdef _DEBUG&lt;BR /&gt;#define DEBUG_REFRESH if(Debug_Refresh) call doDebug_Refresh()&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Then insert into your&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt; ...&lt;BR /&gt; DEBUG_REFRESH&lt;BR /&gt; ...&lt;BR /&gt; ...&lt;BR /&gt; DEBUG_REFRESH&lt;BR /&gt;&lt;BR /&gt;The refresh code goes away in Releas Build.&lt;BR /&gt;If you make the logical variable Debug_Refresh SAVE per routine using DEBUG_REFRESH then you can enable/disable the refreshing per module.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Fri, 27 Aug 2010 15:42:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748822#M5903</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-08-27T15:42:00Z</dc:date>
    </item>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748823#M5904</link>
      <description>&lt;DIV&gt;I think maybe you misunderstand my problem. I am using &lt;B&gt;idb&lt;/B&gt; to debug my code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Your way is helpful but not convenient.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Since that Idefinedlot of arrays, when I following the code and stop somewhere in idb, suddenly I want to have a look at an array to see if it is what I expected. For small arrays, I can print them out to have a look, but for large arrays, this is not helpful.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Aug 2010 16:44:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748823#M5904</guid>
      <dc:creator>afellow</dc:creator>
      <dc:date>2010-08-27T16:44:25Z</dc:date>
    </item>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748824#M5905</link>
      <description>I do understand your problem.&lt;BR /&gt;&lt;BR /&gt;You want an ad-hoc means (after the fact means) of examining large array data. Intel on Windows used to have an add-on that did this: Array Visualizer. Which is no longer supported and never made it into Linux.&lt;BR /&gt;&lt;BR /&gt;Often, when you have a problem you setup a debug session, and go to work debugging. I suggested that (for a limited number of circumstances) you can insert debug helper statements into your code, similar to inserting conditional "write(*,*) x,y,x" diagnostic statements but where these diagnostic statements update data that can be viewed by a different process. &lt;BR /&gt;&lt;BR /&gt;In the Array Visualizer, which you do not have, but which you could implement a subset thereof, you launch the viewer that runs as a seperater process but has access to your process's data (e.g. memory mapped file or other shared memory technique).Running as a different process, it can do so independent of your application which may also be in the process of runningin the debugger. The debugger attachesto your process in a similar way. You would attach your viewer in a similar way. Your application though would have to publish the items you want to watch. TheArray Visualizer did this by way of a sharedHTML file initialized at program start or reused from last run. Although to implement this yourself would be a lot of work, you might do some Google-ingto see if there is a Linux Array Visualizer-like app out there that you can use for debugging (although this would be an overlooked feature not listed in their list of features).&lt;BR /&gt;&lt;BR /&gt;Start your internet search here: &lt;A href="http://www.hdfgroup.org/tools.html" target="_blank"&gt;http://www.hdfgroup.org/tools.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Fri, 27 Aug 2010 19:41:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748824#M5905</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-08-27T19:41:58Z</dc:date>
    </item>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748825#M5906</link>
      <description>In another word, there is no easy way? In that case, I will work on your suggestion, andhopefullyI can make it into an handy tool.&lt;DIV&gt;Thanks for the suggestion.&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2010 12:46:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748825#M5906</guid>
      <dc:creator>afellow</dc:creator>
      <dc:date>2010-08-30T12:46:53Z</dc:date>
    </item>
    <item>
      <title>How to write an array into a file in idb</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748826#M5907</link>
      <description>I try to work on this, but find no way to grab anything information outside from idb. It is like a blackbox and does not communicate a single information with anyone else.&lt;DIV&gt;For example, I want to get someinformationlike the shape of an array and theinitialaddress of it, so that I can use the external program to work on this piece of memory. But I find it hard to send the information outside.&lt;SPAN style="font-size: 11.1111px;"&gt;I can use:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 11.1111px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 11.1111px;"&gt;record output filename&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 11.1111px;"&gt;some command for information&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 11.1111px;"&gt;unrecord output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;but it only works in dbx mode, which I am not familiar. Besides, I don't like this method of logging very much, because it feels odd.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;So the question is:&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;Is there any way to communicate with idb through file, pipe, anything? In another word, is there any way to let the other program know what is the current output of idb?&lt;/B&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2010 15:34:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-an-array-into-a-file-in-idb/m-p/748826#M5907</guid>
      <dc:creator>afellow</dc:creator>
      <dc:date>2010-08-31T15:34:38Z</dc:date>
    </item>
  </channel>
</rss>

