On Mon, May 7, 2012 at 4:04 PM, Ming <span dir="ltr"><<a href="mailto:ymyang@wisc.edu" target="_blank">ymyang@wisc.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"><div class="im">
<div class="gmail_quote">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY:'Arial';FONT-SIZE:10pt">
<div><span><font color="#888888"><i></i></font></span></div></div></div></div></blockquote></div>
<div><i>By design, CMake should detect configuration changes and reconfigure
before the build starts. The VS plugin was designed to provide a single
dialog box that would allow for reloading of the entire solution with a single
click rather than having to click "reload" for each project one at a time.
This plugin doesn't work properly in VS 2010, because MS broke
something.<br><br>To run the configuration manually, you would need to configure
your build from the CMake-GUI instead of relying on VS to run the configuration
during the build. You would use the same build and source directory.
This should work fine.<br></i></div>
</div><div>Hello again James and thank you helpful replies, I have managed to
perform iterative configure-build steps until I’ve reached an equilibrium in my
number of failures. Unfortunately, there are still errors (attached in
files) that I am having much difficulties with, they seem to fall under the
following categories:</div>
<ul>
<li>Syntax errors? I am not sure why, but the c++ compiler is now taking issue
with identical code that it did not before. Examples include:
<ul>
<div style="LIST-STYLE-TYPE:disc"><i>compiler limit: blocks nested too
deeply</i></div>
<div style="LIST-STYLE-TYPE:disc"><i>syntax error: missing ‘;’ before
‘<’</i></div>
<div style="LIST-STYLE-TYPE:disc"><i>: is not a class or namespace name...
etc</i></div></ul>
</li><li>Command line errors (These two are due to a “command line too long” issue
that I have searched for resolutions on. I noticed Mr. Bigler, that you had
posted regarding this issue for other people having issues with a program
called ITK? It seems to be persisting and unresolved?)
</li><li>Linker errors (these seem to be due to lack of objects to link to due to
issues 1 and 2.)</li></ul>
<div>One of my questions is now, is it possible that cmake with findcuda is
pointing MSVS to a different compiler than cmake itself would have
specified? </div>
<div> </div>
<div>Thanks,</div>
<div>Ming</div>
<div> </div>
<div>p.s. outputs are attached. apologies for so much text, it is a large
toolkit.</div></div></div></div></div></blockquote><div><br>1. You probably shouldn't rename all your files .cu instead of .cpp. I would advise that you separate as much as possible the CUDA code and your host code. CUDA can deal with a lot of template code, but you've obviously reached some limit of CUDA.<br>
2. Yes the long command line is still a problem. I haven't had the occasion to fix this. Probably the best thing you could do to work around it is to place all your device code into a separate directory (new CMake scope) and set the include paths to only the paths you absolutely need. Read the documentation for CMake then ask the mailing list how to do this if you can't figure out how to do this, as I don't have the time to go into setting this. See the documentation for include_directories and the directory property called INCLUDE_DIRECTORIES (get_directory_proprty/set_directory_properties).<br>
<br>James<br><br>James<br><br><br><br></div></div>