I’m having one issue with this version and I was hoping you could perhaps help me out.
I have a full VS2008 CUDA project from the CUDA Toolkit 2.3 aided by your previous CUDA VS Wizard 2.0.
Now, I have, on a fresh machine, installed the CUDA Toolkit 3.0 and your CUDA VS Wizard 2.2 Beta 2. I loaded up the solution for the previously mentioned project and attempted to build it. I receive this error:
error PRJ0019: A tool returned an error code from “Compiling with CUDA Build Rule…”
Is there anything I can do to resolve this besides creating a brand new project and moving the code into it?
Thanks :)
–Edit–
Of course, as soon as I posed this I managed to solve the issue! For those curious, the project was referencing cutil.h but, apparently, it couldn’t find the header (although it didn’t show up as an error). Adding the path to cutil.h in the additional includes solved the issue.
<I also have the cutil32D.lib problem. Where and how to change the cutil32D.lib into cutil64D.lib (FYI System details: cuda driver version 3.0, VS 2008 and Windows Server (X64) )
Now, when I build a program, it gets build successfully with no error. But during running the program, I get this error: “The application could not be started because no cutil64D.dll was found. Reinstalling the application may fix the problem.” And, It already shows cuda64D.dll in project properties → Linker → Input → Additional dependencies. When I replace cuda64D.dll by cuda32D.dll it gives error on building “Cannot find cuda32D.dll” Please indicate what should be done.
My configuration again: Visual Studio 2008, Cuda 3.0 (X64), Windows Server (X64)
I am trying to run a simple open cv code using CUDA
The code is a sample program
#include<stdio.h>
#include<math.h> #include <cv.h> #include <highgui.h>
/This will pop up a small box with “Welcome to OpenCV” as the text.@author: Amir hossein khalili a_khalili@ce.sharif.eduimitated from Gavin Page, gsp8334@cs.rit.edu@date: 1 March 2007/
int main( int argc, char** argv )
{//declare for the height and width of the imageint
int height = 620;
int i=10;
int width = 440;//specify the point to place the text
CvPoint pt = cvPoint( height/4, width/2 );//Create an 8 bit, 3 plane image
IplImage* hw = cvCreateImage(cvSize(height, width), 8, 3);//Clearing the Image
cvSet(hw,cvScalar(0,0,0));//initialize the font
CvFont font;cvInitFont( &font, CV_FONT_HERSHEY_COMPLEX,1.0, 1.0, 0, 1, CV_AA);//place the text on the image using the font
cvPutText(hw, “Welcome To OpenCV”, pt, &font, CV_RGB(150, 0, 150) );//create the window container
cvNamedWindow(“Hello World”, 0);//display the image in the container
cvShowImage(“Hello World”, hw);//hold the output windows
cvWaitKey(0);
return 0;
}
I have configured CUDA VS Wizard 2.2 (http://forums.nvidia.com/index.php?showtopic=155412&st=0) and it works perfectly to cmpile and run small cuda codes and also all the sample cuda codes. But when I build this code in a cpp file inside a cuda project created using the wizard installed in VS 2008, it says “unresolved external symbol” for all cv functions!! Another thing to wonder is when I only compile the cpp file containing this code in the cuda project it gets compiled successfully!
Another problem: If I make a cuda kernel (the file containing the kernel has definition to include cuda.h) and call it from within the cpp file, it says unable to open cuda.h!! But, when I only run a cuda code in this project it is able to find the cuda.h and gets executed.
Cuda file containing the cuda kernel: #include"cuda.h"
int cuda_kernel(int i)
{
i=i+10;
return(i);
}
While including this file in project I add these lines in the cpp file to check whether it is able to call cuda kernel or not:
int i = cuda_kernel(i);
printf(“%d”,i);
I am cuda Beginner .I am trying to execute the simple cuda program.I am trying program execute without the hardware.I installed the SDK3.2 and toolkit3.2 in windows XP 32 bit and i am using intel Pentium 4 3.00GHz processor RAM 1GB.
I am getting error:
cudaSafeCall() Runtime API error:CUDA driver version is insufficent for CUDA runtime version.
I have in seen that cuda program can be executed without hardware for emulation purpose.so please help me .
I’ve recently moved from working in Xcode in to working in VS 2008. I am using VS Wizard 2.2 beta2 and its working great.
However, I got a 2.1 capability device. I can’t seem to be able to select sm_21 in GPU Architecture under CUDA Build Rule v3.0.0. Is there a workaround to be able to select this option?
You need to update you CUDA toolkit. I don’t recall if 2.1 is supported already in CUDA 3.2 or only in 4.0, but it’s a late addition, definitely later than 2.0