| 1 | /* -*- Mode: C; c-basic-offset:4 ; -*- */ |
|---|
| 2 | /* |
|---|
| 3 | * (C) 2008 by Argonne National Laboratory. |
|---|
| 4 | * See COPYRIGHT in top-level directory. |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef BSCI_H_INCLUDED |
|---|
| 8 | #define BSCI_H_INCLUDED |
|---|
| 9 | |
|---|
| 10 | struct HYD_BSCI_info { |
|---|
| 11 | char *bootstrap_exec; |
|---|
| 12 | int enablex; |
|---|
| 13 | int debug; |
|---|
| 14 | }; |
|---|
| 15 | |
|---|
| 16 | struct HYD_BSCI_fns { |
|---|
| 17 | HYD_Status(*launch_procs) (char **global_args, const char *partition_id_str, |
|---|
| 18 | struct HYD_Partition *partition_list); |
|---|
| 19 | HYD_Status(*finalize) (void); |
|---|
| 20 | HYD_Status(*wait_for_completion) (struct HYD_Partition *partition_list); |
|---|
| 21 | HYD_Status(*query_node_list) (int num_nodes, struct HYD_Partition **partition_list); |
|---|
| 22 | HYD_Status(*query_usize) (int *size); |
|---|
| 23 | HYD_Status(*query_partition_id) (int *partition_id); |
|---|
| 24 | }; |
|---|
| 25 | |
|---|
| 26 | extern struct HYD_BSCI_fns HYD_BSCI_fns; |
|---|
| 27 | |
|---|
| 28 | HYD_Status HYD_BSCI_init(char *bootstrap, char *bootstrap_exec, int enablex, int debug); |
|---|
| 29 | HYD_Status HYD_BSCI_launch_procs(char **global_args, const char *partition_id_str, |
|---|
| 30 | struct HYD_Partition *partition_list); |
|---|
| 31 | HYD_Status HYD_BSCI_finalize(void); |
|---|
| 32 | HYD_Status HYD_BSCI_wait_for_completion(struct HYD_Partition *partition_list); |
|---|
| 33 | HYD_Status HYD_BSCI_query_node_list(int num_nodes, struct HYD_Partition **partition_list); |
|---|
| 34 | HYD_Status HYD_BSCI_query_usize(int *size); |
|---|
| 35 | HYD_Status HYD_BSCI_query_partition_id(int *partition_id); |
|---|
| 36 | |
|---|
| 37 | /* Each bootstrap server has to expose an initialization function */ |
|---|
| 38 | @hydra_bss_init_decl@ |
|---|
| 39 | |
|---|
| 40 | extern struct HYD_BSCI_info HYD_BSCI_info; |
|---|
| 41 | |
|---|
| 42 | #endif /* BSCI_H_INCLUDED */ |
|---|