Search code examples
cudagpugpgpuprofiler

visual profiler not working giving unable to profile application for non-zero return code


I wrote a multiple of code using CUDA and I profiled a lot before.

The code I am profiling now giving me a weird dialog box unable to profile application. "The application being profiled returned a non-zero return code"

The profiler is working fine for all the sample programs with the CUDA toolkit and my old programs. Also I tried an old program on the same file (by commenting my current code and copying one of the old files on the same source file) and surprisingly the profiler worked fine.

NB: The code is running fine with no errors while building or debugging.

It is difficult to attach the code here as it is 1200 line therefore I will attach the header files only

#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <cublas_v2.h>
#include "cusparse.h"

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "mkl_lapacke.h"
#include "mkl.h"
#include <string.h>
#include <time.h>

#include <cuda_profiler_api.h>

the code is built using x64 bit project


Solution

  • The problem is solved by commenting any command using the LAPACKE library. I don't know exact reason for that. But I preferred to tell you the reason