mmizzle9 / cudpp

Automatically exported from code.google.com/p/cudpp
Other
0 stars 0 forks source link

Build (linker) error with CUDA 3.2 on Windows (Visual Studio 2008) #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Build cudpp_vc90.sln with CUDA 3.2.

What is the expected output? What do you see instead?
Compilation fails in linking stage with the error:
LINK : fatal error LNK1181: cannot open input file 'cudart.lib'

What version of the product are you using? On what operating system?
CUDPP 1.1.1, CUDA 3.2, Visual Studio 2008, Windows 7 64-bit

Please provide any additional information below.

$(CUDA_LIB_PATH) on CUDA 3.2 seems to be a bit different from earlier versions. 
On my computer $(CUDA_LIB_PATH) is:
C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32

cudart.lib and other CUDA lib files are found to be in $(CUDA_LIB_PATH).

So, the fix is simple. Change the "Additional library dependencies" in the 
Visual Studio solution from "$(CUDA_LIB_PATH)/../lib" to "$(CUDA_LIB_PATH)".

Build succeeds with these changes.

cudpp_vc90.vcproj with the above changes is attached to this report.

Original issue reported on code.google.com by ashwin.n on 14 Feb 2011 at 3:29

Attachments:

GoogleCodeExporter commented 8 years ago
The "Additional library dependencies" in the Visual Studio project properties 
has been changed from "$(CUDA_LIB_PATH)/../lib" to "$(CUDA_LIB_PATH)"

Original comment by rites...@gmail.com on 15 Feb 2011 at 12:48