<br>I have overcome the issues with MSVCR90D.dll and MSVCP90d.dll by installing Visual Studio 9 SP1.  Which seems to fix references to amd64 dlls.  Why this is not in the web update is anyone&#39;s guess.  Just more MS super spectacular awesomeness.<br>
<br>Now on to my latest (CMAKE) problem.  I can build and run the executable, but the particles do not appear in the window.  Other graphics do like the graphics bars and the text, for those that are familiar with this demo app.  So I begin to look at the compiler settings.<br>
<br>Nvidia:<br><br>&quot;C:\CUDA_2.2\bin\nvcc.exe&quot;   <br>-arch sm_10<br>-ccbin &quot;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin&quot;    <br>-Xcompiler &quot;/EHsc /W3 /nologo /Od /Zi   /MTd  &quot; <br>
-I&quot;C:\CUDA_2.2\include&quot;<br>-I&quot;./&quot; <br>-I&quot;../../common/inc&quot; <br>-maxrregcount=32  <br>--compile <br>-o &quot;x64\Debug\bodysystemcuda.cu.obj&quot; <br>&quot;c:\CUDA_SDK_2.2\NVIDIA Corporation\NVIDIA CUDA SDK\projects\nbody\<a href="http://bodysystemcuda.cu">bodysystemcuda.cu</a>&quot; <br>
<br>
In my attempt using CMAKE (if I let cmake do it&#39;s thing):<br>
<br>using (note commented out lines):<br>
<br>
SET_TARGET_PROPERTIES(<br>    nbody<br>    PROPERTIES<br>    COMPILE_DEFINITIONS _HOWZ_ABOUT_THIS_DEF <br>#    COMPILE_FLAGS_DEBUG &quot;-arch sm_10 -maxrregcount=32&quot; <br>#    CUDA_NVCC_FLAGS_DEBUG &quot;/EHsc /W3 /nologo /Od /Zi&quot;<br>

    <br>)<br><br>2&gt;C:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/bin/nvcc.exe <br>C:/projects/NIH2009/source/branches/trunk/source/cpp/app/testing/cudaTests/nbody/src/<a href="http://bodysystemcuda.cu">bodysystemcuda.cu</a><br>
-m64 <br>-ccbin &quot;c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin&quot; <br>-Xcompiler ,\&quot;/DWIN32\&quot;,\&quot;/D_WINDOWS\&quot;,\&quot;/W3\&quot;,\&quot;/Zm1000\&quot;,\&quot;/EHsc\&quot;,\&quot;/GR\&quot;,\&quot;/D_DEBUG\&quot;,\&quot;/MTd\&quot;,\&quot;/Zi\&quot;,\&quot;/Ob0\&quot;,\&quot;/Od\&quot;,\&quot;/RTC1\&quot;,\&quot;/Gm\&quot; <br>
-DNVCC -M -o C:/projects/NIH2009/source/branches/trunk/build/dvip4-Win64/cpp_source/app/nbody/CMakeFiles/nbody_generated_bodysystemcuda.cu.obj.NVCC-depend <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include <br>
-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/NVIDIA_GPU_Computing_SDK_2.2/common/inc <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include<br><br>
<br>First off note the additions of:<br>-m64<br>and -Xcompiler flags of <br>/DWIN32\&quot;,\&quot;/D_WINDOWS\&quot;,\&quot;/W3\&quot;,\&quot;/Zm1000\&quot;,\&quot;/GR\&quot;,\&quot;/D_DEBUG\&quot;, &quot;,\&quot;/Ob0\&quot;,\&quot;/RTC1\&quot;,\&quot;/Gm\<br>
<br>And the missing bits:<br>-maxrregcount=32<br>-arch sm_10<br><br>So I then try:<br><br>SET_TARGET_PROPERTIES(<br>    nbody<br>    PROPERTIES<br>    COMPILE_DEFINITIONS _HOWZ_ABOUT_THIS_DEF <br>    COMPILE_FLAGS_DEBUG &quot;-arch sm_10 -maxrregcount=32&quot; <br>
#    CUDA_NVCC_FLAGS_DEBUG &quot;/EHsc /W3 /nologo /Od /Zi&quot;<br>
    <br>)<br><br>or<br><br>SET_TARGET_PROPERTIES(<br>
    nbody<br>
    PROPERTIES<br>
    COMPILE_DEFINITIONS _HOWZ_ABOUT_THIS_DEF <br>
    COMPILE_FLAGS &quot;-arch sm_10 -maxrregcount=32&quot; <br>
#    CUDA_NVCC_FLAGS_DEBUG &quot;/EHsc /W3 /nologo /Od /Zi&quot;<br>

    <br>
)<br>
<br>Which has no effect (well it does, just not the desired effect)<br><br><br>I also try in vain:<br><br>SET_TARGET_PROPERTIES(<br>

    nbody<br>

    PROPERTIES<br>

    COMPILE_DEFINITIONS _HOWZ_ABOUT_THIS_DEF <br>

#    COMPILE_FLAGS &quot;-arch sm_10 -maxrregcount=32&quot; <br>

    CUDA_NVCC_FLAGS_DEBUG &quot;/EHsc /W3 /nologo /Od /Zi&quot;<br>


    <br>

)<br>

<br>
Which also has no effect.<br><br>So I try (Which I feel is heavy handed):<br><br><br>SET( CUDA_NVCC_FLAGS_DEBUG -arch sm_10 -maxrregcount=32 CACHE STRING &quot;&quot; FORCE ) <br><br><br>Which gives me:<br><br>2&gt;C:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/bin/nvcc.exe <br>
C:/projects/NIH2009/source/branches/trunk/source/cpp/app/testing/cudaTests/nbody/src/<a href="http://bodysystemcuda.cu">bodysystemcuda.cu</a> <br>-arch sm_10 <br>-maxrregcount=32 <br>-m64 <br>-ccbin &quot;c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin&quot; <br>
-Xcompiler ,\&quot;/DWIN32\&quot;,\&quot;/D_WINDOWS\&quot;,\&quot;/W3\&quot;,\&quot;/Zm1000\&quot;,\&quot;/EHsc\&quot;,\&quot;/GR\&quot;,\&quot;/D_DEBUG\&quot;,\&quot;/MTd\&quot;,\&quot;/Zi\&quot;,\&quot;/Ob0\&quot;,\&quot;/Od\&quot;,\&quot;/RTC1\&quot;,\&quot;/Gm\&quot; <br>
-DNVCC <br>-c <br>-o C:/projects/NIH2009/source/branches/trunk/build/dvip4-Win64/cpp_source/app/nbody/Debug/nbody_generated_bodysystemcuda.cu.obj <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include <br>
-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/NVIDIA_GPU_Computing_SDK_2.2/common/inc <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include<br><br><br>
Which gives me:<br>-arch sm_10<br>_maxrrcount=32<br><br>but there is still the pesky <br>-m64<br><br>How do I remove this?<br><br>I then try:<br><br>SET( CUDA_NVCC_FLAGS_DEBUG -arch sm_10 -maxrregcount=32 -Xcompiler &quot;/EHsc /W3 /nologo /Od /Zi&quot; CACHE STRING &quot;&quot; FORCE ) <br>
<br>2&gt;C:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/bin/nvcc.exe <br>C:/projects/NIH2009/source/branches/trunk/source/cpp/app/testing/cudaTests/nbody/src/<a href="http://nbody_kernel.cu">nbody_kernel.cu</a><br>
-arch sm_10 -maxrregcount=32 <br>-Xcompiler &quot;/EHsc /W3 /nologo /Od /Zi&quot; <br>-m64 <br>-ccbin &quot;c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin&quot; <br>-Xcompiler ,\&quot;/DWIN32\&quot;,\&quot;/D_WINDOWS\&quot;,\&quot;/W3\&quot;,\&quot;/Zm1000\&quot;,\&quot;/EHsc\&quot;,\&quot;/GR\&quot;,\&quot;/D_DEBUG\&quot;,\&quot;/MTd\&quot;,\&quot;/Zi\&quot;,\&quot;/Ob0\&quot;,\&quot;/Od\&quot;,\&quot;/RTC1\&quot;,\&quot;/Gm\&quot; <br>
-DNVCC <br>-M <br>-o C:/projects/NIH2009/source/branches/trunk/build/dvip4-Win64/cpp_source/app/nbody/CMakeFiles/nbody_generated_nbody_kernel.cu.obj.NVCC-depend <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include<br>
-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/NVIDIA_GPU_Computing_SDK_2.2/common/inc <br>-IC:/projects/NIH2009/source/branches/trunk/source/cpp/lib/3rdParty/Win/CUDA_Toolkit_2.2/include<br><br><br>
Which of course adds -Xcompiler flags, but does not override the existing. How do I do this?  And what is the least heavy handed way of doing it?<br><br><br><br>-- <br>Brian J. Davis<br>