Skip to content

OpenMP task can't be instrumented #126

@zz4391632

Description

@zz4391632

When i use #pragram omp parallel for , it can be instrumented. But core dumped when I use openmp task.
this is my test code
`
int main()
{
cout << endl
<< "num_threads = " << omp_get_max_threads() << endl;

#pragma omp parallel
{
#pragma omp task
cout <<"thread id ="<<omp_get_thread_num()<< endl;
}
return 0;
}here is output
Welcome to Extrae 4.2.3
Extrae: Detected GOMP version is 4.5
Extrae: Detected and hooked OpenMP runtime: [GNU GOMP]
Extrae: OMP_NUM_THREADS set to 24
Extrae: Generating intermediate files for Paraver traces.
Extrae: Intermediate files will be stored in /vol8/home/xuchuanfu/zhouzheng/test/task_test
Extrae: Tracing buffer can hold 500000 events
Extrae: Tracing mode is set to: Detail.
Extrae: Successfully initiated with 1 tasks and 24 threads

num_threads = 24
thread id =0
/tmp/slurmd/job1213046/slurm_script: line 12: 465673 Segmentation fault (core dumped) numactl --cpunodebind=0 --membind=0 ./test`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions