16 int __kmpc_start_record_task(
ident_t *,
int,
int,
int);
17 void __kmpc_end_record_task(
ident_t *,
int,
int ,
int);
28" subgraph cluster {\n"
44 setenv(
"KMP_TDG_DOT",
"TRUE",1);
51 int res = __kmpc_start_record_task(
nullptr, gtid, 0, 0);
53 #pragma omp task depend(out : x)
55 #pragma omp task depend(in : x) depend(out : y)
57 #pragma omp task depend(in : y)
59 #pragma omp task depend(in : y)
63 __kmpc_end_record_task(
nullptr, gtid, 0, 0);
66 assert(num_exec == 4);
68 std::ifstream tdg_file(
"tdg_0.dot");
69 assert(tdg_file.is_open());
71 std::stringstream tdg_file_stream;
72 tdg_file_stream << tdg_file.rdbuf();
73 int equal =
tdg_string.compare(tdg_file_stream.str());
77 std::cout <<
"Passed" << std::endl;
KMP_EXPORT kmp_int32 __kmpc_global_thread_num(ident_t *)
The ident structure that describes a source location.