Set structure & protocol of producer-consumer

This commit is contained in:
2023-12-22 12:47:13 +01:00
parent 9b9e91e856
commit e0b7b2d316
2 changed files with 202 additions and 78 deletions

View File

@@ -30,6 +30,15 @@ namespace platform {
int n_procs;
int manager;
};
typedef struct {
uint idx_dataset;
uint idx_combination;
double score;
} Task_Result;
const TAG_QUERY = 1;
const TAG_RESULT = 2;
const TAG_TASK = 3;
const TAG_END = 4;
class GridSearch {
public:
explicit GridSearch(struct ConfigGrid& config);