-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcilktool.h
33 lines (28 loc) · 985 Bytes
/
cilktool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef INCLUDED_CILKTOOL_DOT_H
#define INCLUDED_CILKTOOL_DOT_H
#include <inttypes.h>
typedef struct __cilkrts_stack_frame __cilkrts_stack_frame;
#ifdef __cplusplus
#define EXTERN_C extern "C" {
#define EXTERN_C_END }
#else
#define EXTERN_C
#define EXTERN_C_END
#endif
EXTERN_C
void cv_start();
void cv_stop();
void print_total();
void cilk_enter_begin (uint32_t prop, __cilkrts_stack_frame* sf, void* this_fn, void* rip);
void cilk_enter_helper_begin(__cilkrts_stack_frame* sf, void* this_fn, void* rip);
void cilk_enter_end (__cilkrts_stack_frame* sf, void* rsp);
void cilk_spawn_prepare (__cilkrts_stack_frame* sf);
void cilk_spawn_or_continue (int in_continuation);
void cilk_detach_begin (__cilkrts_stack_frame* parent);
void cilk_detach_end (void);
void cilk_sync_begin (__cilkrts_stack_frame* sf);
void cilk_sync_end (__cilkrts_stack_frame* sf);
void cilk_leave_begin (__cilkrts_stack_frame *sf);
void cilk_leave_end (void);
EXTERN_C_END
#endif // INCLUDED_CILKTOOL_DOT_H