Ask Your Question

giu's profile - activity

2012-10-06 11:22:40 -0600 answered a question NVIDIA CUDA Toolkit 5.0 Visual Profiler “Enable concurrent kernels profiling” application requirements

Well, trying to solve my problem, I experimented that it was not a problem of CUDA Context: applications written using both CUDA and OpenCV are traced well by the Profiler. Instead, it was a problem of memory: simply, in the application that contains both the CUDA version and the OpenCV version of my algorithm, I use a number of streams that is twice the size of that I use in the applications with only one version of the algorithm, and this exceeds the memory capacity of the Profiler. I thought that it was a problem of the Profiler besause the application with the two methods runs correctly, and it only stops when I run it from the Profiler in the "Enable concurrent kernels execution" modality to trace the timeline. This must be explained by the fact that the Profiler uses much more memory to trace the timeline in this modality, so the limit of the number of streams is lower than in the synchronous modalitiy. However, I am a beginner, so I'd better not advance hypotheses riskly. I solved it out using fewer streams. I apologize for the misleading question.

2012-10-05 09:10:17 -0600 received badge  Editor (source)
2012-10-02 16:10:14 -0600 commented answer Using OpenCV 2.4.2 with CUDA Toolkit 5.0

Thank you! I installed with success OpenCV following that tutorial and the application executes correctly. I still have a problem using the NVIDIA Visual Profiler to analyze this code, but I just posted another question about it.

2012-10-02 16:05:51 -0600 asked a question NVIDIA CUDA Toolkit 5.0 Visual Profiler “Enable concurrent kernels profiling” application requirements

I'm using CUDA Toolkit 5.0 because I need to use the new feature of the NVIDIA Visual Profiler of this Toolkit that allows to view in the timeline concurrent kernels executed asynchronously (this is not possible with the CUDA Toolkit 4.2). For this reason, I built (succesfully) the source code of OpenCV 2.4.2 with this Toolkit (5.0) installed on my pc, and I'm able to compile and execute correctly my application with concurrent kernels: some of them are invoked by functions of the module OpenCV_GPU and others are kernels I directly wrote in CUDA. Unfortunately, CUDA 5.0 NVIDIA Visual Profiler can't trace the timeline of my application if I enable the feature: "Enable concurrent kernels profiling". It creates the timeline correctly both for code written using ONLY OpenCV functions and for code written using ONLY CUDA functions. Indeed, it stops working when I mix the two in the same application . I think this may be caused by the fact that OpenCV calls should use the same CUDA Context as the rest of the CUDA code. How can I manage the CUDA Context in order to allow the Profiler to trace the timeline?

OS: Windows 7 64 bit; Compiler: Visual Studio 2010 Professional; Driver: 306.23; Device: GeForce GTX 680 or GeForce GT 650M

Thank you for your attention!

2012-10-01 03:34:39 -0600 received badge  Supporter (source)
2012-10-01 00:44:46 -0600 received badge  Student (source)
2012-09-30 14:28:57 -0600 commented answer Using OpenCV 2.4.2 with CUDA Toolkit 5.0

Thank you very much!! I'm going to try! ..Can you tell me where can I find the source code of OpenCV (it seems an easy thing but I can't really find it) and can you suggest a 'tutorial' on how to build the library in Windows? I've been looking for a clear explanation about it all day long, even among the answers on this blog, but I could not find it..

2012-09-30 09:45:01 -0600 asked a question Using OpenCV 2.4.2 with CUDA Toolkit 5.0

Hi, I'm writing an application with both CUDA Runtime API calls and OpenCV GPU module function calls. I need to use the new CUDA Toolkit 5.0, but OpenCV 2.4.2 is available on line in the compiled form for Windows only for the CUDA Toolkit 4.2. If I download the source code of OpenCV 2.4.2 and compile it with the CUDA Toolkit 5.0 installed, is there any possibilty that it will actually work? Or is it better to install both the Toolkit 4.2 together with the 5.0 to allow OpenCV to work? I read that when installing the CUDA 5.0 the previous version should be uninstalled... Thank you for your attention!