We have installed winxp64 + nvidia driver19 *. * + VS2008 (sp1), and we feel very stuck, so we have been using cuda2.2.
I installed win7 recently and found that the driver compatibility for Versions later than 190 is very good. I installed cuda2.3. I wanted to try VS2010 beta2,
However, I learned from Microsoft's staff that MSBuild still has some bugs, so I cannot use cuda normally and cannot patch me for the moment.
Switch back to VS2008.
When using cuda2.3, you may switch between win32 and x64. I will list several common problems as follows:
1. How to set the file path in VS2008?
A: Tools, options, Projects and Solutions, VC ++ Directories, and add
Win32 x64
Executable files C:/Cuda/bin c:/Cuda/bin64
Include files C:/Cuda/include
Library files C:/Cuda/lib C:/Cuda/lib64
2. The error fatal error lnk1112 is displayed: module Machine Type 'x64 'conflicts with target machine type 'x86'
A: This is because I am using a 64-bit toolkit and compiled into a 64-bit OBJ file by default. This error is displayed in Win32 mode.
Open the property pages of the project, and go to Cuda build rules v2.3.0 (because Cuda. Rules has been selected).
In Extra Options of General, enter -- machine 32, which means to generate a 32-bit obj file. For specific parameters, see
Nvcc instructions.
3. Although my win32 mode is compiled successfully, an error message indicating the application was unable to start correctly (oxc000007b) will appear during running.
A: I do not know where the path is set incorrectly because the cudart. dll version found at startup is incorrect.
Copy cudart. dll to the project folder to run it correctly. For the moment, the system environment variable is run (to be verified ).
4. errors or warnings: defaultlib 'libcmt' conflicts with use of other libs; use/NODEFAULTLIB: library
A: This is because the version of the Runtime Library is inconsistent. The solution is also very simple, that is, all the databases you reference must use the same version,
For example,/MT, or/MTd. In project property pages, C/C ++, Code Generation, Runtime
The settings in library and Cuda build rules v2.3.0, hybird Cuda/C ++, and Runtime Library must be consistent.