Error 0x4000001e in Intel Advisor XE: Can not load raw collector data

1

I'm using Intel Advisor XE, part of Parallel Studio XE 2013 with Ubuntu 2014. Program for Prime number is as:

#include "stdio.h"
#include "stdlib.h"

int isPrime(long unsigned int x)
{
    long unsigned int i;
    for (i = 2; i < x; i += 1)
    {
        if(x%i==0)
            return 0;
    }
    if(i==x)
        return i;
}

int main (int argc, char *argv[])
{
    double tic=omp_get_wtime();
    long unsigned int i,num;
    num=999999;
    for (i = 1; i <= num; i += 1)
    {
        if(isPrime(i)) printf("\t%lu",i);
    }
    return 0;
}

I run this program with both icc and gcc and tested it on Intel Parallel Studio XE Advisor XE 2013. It went well with resulting hotspots and resultant tree like res1. Now when I added Annotation code something like

#include "stdio.h"
#include "stdlib.h"
#include "/opt/intel/advisor_xe_2013/include/advisor-annotate.h" 

int isPrime(long unsigned int x)
{
    long unsigned int i;
    for (i = 2; i < x; i += 1)
    {
        if(x%i==0)
            return 0;
    }
    if(i==x)
        return i;
}

int main (int argc, char *argv[])
{
    long unsigned int i,num;
    num=999999;
    ANNOTATE_SITE_BEGIN( MySite1 );  //Loop control statement to begin a parallel code region (parallel site).
    for (i = 1; i <= num; i += 1)
    {
        ANNOTATE_ITERATION_TASK( MyTask1 );  // This annotation identifies an entire body as a task. 
        if(isPrime(i)) printf("\t%lu",i);
    }
    ANNOTATE_SITE_END();  // End the parallel code region, after task execution completes
    return 0;
}

It gave me error like "Can not load row collector data." I'm uploading images for the result.Seems like no error which seems like no errors but at last it shows like Error

Note 1 /proc/sys/kernel/yama/ptrace_scope has been updated to 0.
Note 2 I have set up LibPath LD_LIBRARY_PATH:/opt/intel/advisor_xe_2013/include

PS I tried for fibonacci of 6 digit number, and got the same result saying NO DATA

intel-parallel-studio
asked on Stack Overflow Sep 15, 2014 by kAmol • edited Sep 16, 2014 by zam

1 Answer

1

The problem was with compilation, I played around various options and tried using -I option with GCC and ICC to include library path, which I mentioned for header file, i.e. /opt/intel/advisor_xe_2013/include/ and also linked libraries using -ldl option which solved problem.

answered on Stack Overflow Sep 16, 2014 by kAmol • edited Sep 16, 2014 by kAmol

User contributions licensed under CC BY-SA 3.0