<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Zaak,<br>
<br>
Based on the test for fortran compilers, couldn't you do something
similar?<br>
<br>
As I am no fortran expert I am not really sure which types you are
looking for, but I would suspect you could get what you want based
on the attached example?<br>
<br>
Cheers,<br>
Yngve<br>
<br>
Den 19. sep. 2013 22:03, skrev Zaak Beekman:<br>
</div>
<blockquote
cite="mid:CAAbnBwbgCRWJc7Zwx+hhW_U5XM2dWVEywGNDudKidJiubYP1Mw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Caveat: I am somewhat new to CMake. <br>
<br>
I am programming a library to compute diagnostic statistics
on VERY large data sets. (Possibly in parallel too.) The
algorithm is numerically stable and online/streaming. The
Fortran standard makes no guarantee of what (signed) integer
types are available on a given system, but provides a means
of requesting integers of different sizes and will let you
know at run time whether or not they exist. However, kind
(type) specification of variables must occur at compile
time. (This isn't strictly true in F03/F08 but compiler
support is limited ATM.) Since the algorithm is designed for
extremely large data sets (9TB!) and the number of elements
visited in the set so far appears in the algorithm, I would
like to use the largest available integer kind to keep track
of this quantity so that it doesn't overflow.<br>
<br>
</div>
I think what I need to do is create a test program and use
try_run() and then configure_file(), which leads me to my
questions:<br>
</div>
<ol>
<li>Can I have a multiple source file program and pass it to
try_run()? It seems like the answer is no.</li>
<li>Since Fortran has no concept of a return value (not
formally as far as the standard is concerned) it looks like
I need to pass the information about available kind types in
the RUN_OUTPUT_VARIABLE back to CMake and manipulate it
there. Does this variable just get populated with a string
which is whatever your code (that you try_ran) outputs to
stdout?</li>
<li>Has someone written a module to diagnose available Fortran
kind types? That they're willing to share?</li>
<li>If not, where do I look for advice and best practices to
write one myself?<br>
</li>
</ol>
<div>
<div>
<div>
TIA,<br clear="all">
</div>
<div>
<div>Izaak Beekman<br>
===================================<br>
(301)244-9367<br>
Princeton University Doctoral Candidate<br>
Mechanical and Aerospace Engineering<br>
<a moz-do-not-send="true"
href="mailto:ibeekman@princeton.edu" target="_blank">ibeekman@princeton.edu</a><br>
<br>
UMD-CP Visiting Graduate Student<br>
Aerospace Engineering<br>
<a moz-do-not-send="true"
href="mailto:ibeekman@umiacs.umd.edu" target="_blank">ibeekman@umiacs.umd.edu</a><br>
<a moz-do-not-send="true" href="mailto:ibeekman@umd.edu"
target="_blank">ibeekman@umd.edu</a></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:
CMake Support: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a>
CMake Consulting: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a>
CMake Training Courses: <a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>