วันอังคารที่ 15 กันยายน พ.ศ. 2552

Set up CUDA Project #4 : Can't Connect With Dll

I try using Dll import in both Cuda project and C++ project.
Lastly , It FAIL.
Because it doesn't use the same compiler.
Next , I will try to use .lib instead.

If anyone has suggestion please comment that to help me.

another way I wish is waiting for NVIDIA NEXUS after NVIDIA conference.

ByeBye See you Tomorrow.

วันจันทร์ที่ 14 กันยายน พ.ศ. 2552

Set up CUDA Project #3 : LNK1181 again

I encounter LNK1181 again but not error that occur is
(fatal error LNK1181 : cannot open input file 'cudart.lib')

the solution is the same only delete double quote in
project > properties > Configuration Properties > Linker > General > Additional Library Directories

Set up CUDA Project #2 : Try to Build Example Project

I should say it before you read that I install Cuda winapp add-in before do this operation.

when you first build cuda project that you got from SDK
you will get this error (fatal error LNK1181:cannot open input file '.\Debug\bandwidthTest.cu.obj')


even you try search clue in log file. it help you not much



Compiling with CUDA Build Rule...
"C:\CUDA\bin\nvcc.exe" -arch sm_10 -ccbin "C:\Program Files\Microsoft Visual Studio 8\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I""C:\CUDA\include;C:\ProgramFilesSummer4\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc;"" -I"../../common/inc" -maxrregcount=32 --compile -o "Debug\bandwidthTest.cu.obj" bandwidthTest.cu
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
Linking...
LINK : fatal error LNK1181: cannot open input file '.\Debug\bandwidthTest.cu.obj'

the right answer for me is come from this url.
http://www.cs.ucf.edu/~janaka/gpu/issues.htm

follow his advice Remove quotations from the nvcc include directories list

from this picture it changed to $(CUDA_INC_PATH);../../common/inc

Set up CUDA Project #1

After Install Cuda WinApp for Visual Studio 2005.
I try start first project and encounter
"This application has failed to start because cutil32D.dll was not found. Re-installing the application may fix this problem."

It solved by copy cutil32D.dll from SDK to CUDA\bin directory

Add Reference in Visual C++

After long time to code to add library to use in C++.
I found that there has some other way to add reference.
Just like bottom picture
right click at project then select properties then common properties > references

Yeah that right!

วันอาทิตย์ที่ 13 กันยายน พ.ศ. 2552

Free Space Better

2 Day ago, I encounter Computer slow problem.
I do many things to make it faster.
one thing it may concern is Drive C that installed windows is roughly little left (12 GB).
But I think 12 GB is very big for me.
After I move some files to other drive the computer speed is come back to usually it has.
I think it may concern with the fraction of file that let's 12 GB is not enough ?(I defrag before move those files too. )
or something else I don't know HaHa!@!?

Describe About Loop

from my experience
To describe expert programmer you may describe only structure of blocks.
To describe little familiar with programming user you should describe about 2 loop.
To describe user who not familiar with programming you should describe appoximate 5-6 loop.