SST/macro
compute_api.h
Go to the documentation of this file.
1 #ifndef sstmac_software_libraries_compute_compute_api_h
2 #define sstmac_software_libraries_compute_compute_api_h
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 int
9 sstmac_sleep(unsigned int secs);
10 
11 int
12 sstmac_usleep(unsigned int usecs);
13 
14 void
15 sstmac_compute(double secs);
16 
17 void
18 sstmac_memread(long bytes);
19 
20 void
21 sstmac_memwrite(long bytes);
22 
23 void
24 sstmac_memcpy(long bytes);
25 
26 void
27 sstmac_compute_detailed(long nflops, long nintops, long bytes);
28 
29 void
30 sstmac_compute_loop(long num_loops,
31  int nflops_per_loop,
32  int nintops_per_loop,
33  int bytes_per_loop);
34 
35 void
36 sstmac_compute_loop2(long isize, long jsize,
37  int nflops_per_loop,
38  int nintops_per_loop,
39  int bytes_per_loop);
40 
41 void
42 sstmac_compute_loop3(long isize, long jsize,
43  long ksize,
44  int nflops_per_loop,
45  int nintops_per_loop,
46  int bytes_per_loop);
47 
48 void
49 sstmac_compute_loop4(long isize, long jsize,
50  long ksize, long lsize,
51  int nflops_per_loop,
52  int nintops_per_loop,
53  int bytes_per_loop);
54 
55 #define SSTMAC_sleep(...) sstmac_sleep(__VA_ARGS__)
56 #define SSTMAC_usleep(...) sstmac_usleep(__VA_ARGS__)
57 #define SSTMAC_compute(...) sstmac_compute(__VA_ARGS__)
58 #define SSTMAC_memread(...) sstmac_memread(__VA_ARGS__)
59 #define SSTMAC_memwrite(...) sstmac_memwrite(__VA_ARGS__)
60 #define SSTMAC_memcpy(...) sstmac_memcpy(__VA_ARGS__)
61 #define SSTMAC_compute_detailed(...) sstmac_compute_detailed(__VA_ARGS__)
62 #define SSTMAC_compute_loop(...) sstmac_compute_loop(__VA_ARGS__)
63 #define SSTMAC_compute_loop2(...) sstmac_compute_loop2(__VA_ARGS__)
64 #define SSTMAC_compute_loop3(...) sstmac_compute_loop3(__VA_ARGS__)
65 #define SSTMAC_compute_loop4(...) sstmac_compute_loop4(__VA_ARGS__)
66 
67 #ifdef __cplusplus
68 } //end extern c
69 #endif
70 
71 #endif
void sstmac_memcpy(long bytes)
void sstmac_compute_detailed(long nflops, long nintops, long bytes)
void sstmac_compute_loop(long num_loops, int nflops_per_loop, int nintops_per_loop, int bytes_per_loop)
void sstmac_memwrite(long bytes)
void sstmac_compute_loop4(long isize, long jsize, long ksize, long lsize, int nflops_per_loop, int nintops_per_loop, int bytes_per_loop)
int sstmac_usleep(unsigned int usecs)
void sstmac_compute_loop3(long isize, long jsize, long ksize, int nflops_per_loop, int nintops_per_loop, int bytes_per_loop)
int sstmac_sleep(unsigned int secs)
void sstmac_compute_loop2(long isize, long jsize, int nflops_per_loop, int nintops_per_loop, int bytes_per_loop)
void sstmac_compute(double secs)
void sstmac_memread(long bytes)