I hope my post is not too trivial, but I’m quite new to the CUDA community and I cannot solve a very basic issue.
The problem is the following: I want to profile some MATLAB code using the Visual Profiler tool, but I am not able to obtain any result.
- Graphic Card: GeForce GTX 460
- Operating System: Ubuntu 11.04
- NVIDIA drivers: 295.49
- NVCC v4.2, V0.2.1221 (same for NVVP)
I successfully installed the SDK toolkit and I successfully made some tests with the Visual Profiler using Python scripts (PyCUDA). I was able to create a timeline and collect statistics and other information about running times.
I then switched to some MATLAB code, but I cannot figure out how to run it using the Visual Profiler. I serched a lot around but nobody seems to have the same problem. I found that this should be the session configuration:
- File: /usr/local/matlab2011a/bin/matlab (MATLAB path)
- Working dir: /home/…/script_path (script path)
- Arguments: -nojvm -nosplash -r <script_name> (without ‘.m’)
The Profiler starts correctly and runs the script until the end. In the console window I can see the correct output of the program. Everything seems to work fine, but at the end of some runs (NVVP runs the program 24 times to collect statistics) the Profiler window is still empty. I can see the green “checks” next to the Analysis panel (“Timeline”, “Multiprocessor”, “Kernel Memory”, “Kernel Instruction”). Anyway, the Analysis Results panel reports the following:
“Application timeline is required for the analysis”.
What’s wrong with my configuration? I Googled a bit and i followed some advices, like putting the “exit;” or “quit;” command at the end of the script, but it didn’t work.
I’m not using MEX files, my script just uses some gpuArray() operations, even no kernels.
I read something about an additional package for using CUDA and MATLAB, but the NVIDIA website redirect me on wrong pages if I try to download
Any help would be very appreciated!