Debian Codegraph @

hmmer/src/hmmpgmd_shard.h

raw symbols SCIP
1 #ifndef P7_HMMPGMD_SHARD_INCLUDED
2 #define P7_HMMPGMD_SHARD_INCLUDED
3
4 extern void worker_process_shard(ESL_GETOPTS *go);
5 extern void master_process_shard(ESL_GETOPTS *go);
6
7 /* HMMD_CMD_INIT */
8 typedef struct {
9 char sid[MAX_INIT_DESC]; /* unique id for sequence database */
10 char hid[MAX_INIT_DESC]; /* unique id for hmm database */
11 uint32_t seqdb_off; /* offset to seq database name, 0 if none */
12 uint32_t hmmdb_off; /* offset to hmm database name, 0 if none */
13 uint32_t db_cnt; /* total number of sequence databases */
14 uint32_t seq_cnt; /* sequences in database */
15 uint32_t hmm_cnt; /* total number hmm databases */
16 uint32_t model_cnt; /* models in hmm database */
17 uint32_t num_shards; /* Number of shards the DB will be divided into */
18 uint32_t my_shard; /* which shard is this thread responsible for? */
19 char data[]; /* string data */
20 } HMMD_INIT_CMD_SHARD;
21
22 typedef struct {
23 HMMD_HEADER hdr; /* length and type of message */
24 union {
25 HMMD_INIT_CMD_SHARD init;
26 HMMD_SEARCH_CMD srch;
27 HMMD_INIT_RESET reset;
28 };
29 } HMMD_COMMAND_SHARD;
30
31 typedef struct queue_data_shard_s {
32 uint32_t cmd_type; /* type of command to perform */
33 uint32_t query_type; /* type of the query */
34 P7_HMM *hmm; /* query HMM */
35 ESL_SQ *seq; /* query sequence */
36 ESL_ALPHABET *abc; /* digital alphabet */
37 ESL_GETOPTS *opts; /* search specific options */
38 HMMD_COMMAND_SHARD *cmd; /* workers search command */
39
40 int sock; /* socket descriptor of client */
41 char ip_addr[64];
42
43 int dbx; /* database index to search */
44 int inx; /* sequence index to start search */
45 int cnt; /* number of sequences to search */
46
47 } QUEUE_DATA_SHARD;
48
49 #endif /*P7_HMMPGMD_SHARD_INCLUDED*/