X-Git-Url: https://git.auder.net/doc/screen_players.png?a=blobdiff_plain;f=old_C_code%2Fstage1%2Fsrc%2FUtil%2Ftypes.h;fp=old_C_code%2Fstage1%2Fsrc%2FUtil%2Ftypes.h;h=0000000000000000000000000000000000000000;hb=62deb4244895a20a35397dfb062f0b9fe94c5012;hp=6b6da6f47c9a76a3cb8ff06d64e43c646abbfa8f;hpb=3eef8d3df59ded9a281cff51f79fe824198a7427;p=epclust.git diff --git a/old_C_code/stage1/src/Util/types.h b/old_C_code/stage1/src/Util/types.h deleted file mode 100644 index 6b6da6f..0000000 --- a/old_C_code/stage1/src/Util/types.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef PPAM_TYPES_H -#define PPAM_TYPES_H - -#include - -// types of work given to a slave -#define WORKTAG 1 -#define DIETAG 2 - -// 256 characters for file name should be enough -#define NCHAR_FNAME 256 - -typedef unsigned char Byte; - -// Type to describe a job to be done in a node -//TODO: merge with packed version to avoid extra copy by MPI -typedef struct Work_t { - // "structural" parameters: - char* inputFileName; - uint32_t nbSeries; - uint32_t* ranks; - // clustering parameters [to be completed]: - uint32_t nbClusters; - uint32_t clustOnMedoids; //a boolean, but 1 byte storage would be inefficient - uint32_t p_for_dissims; -} Work_t; - -// Type returned by a worker (clusters labels and medoids) -//TODO: merge with packed version to avoid extra copy by MPI -typedef struct Result_t { - // parameters describing sizes - uint32_t nbClusters; - // informative parameters: - uint32_t* medoids_ID; - uint32_t* medoids_ranks; -} Result_t; - -// data structure to store a customer ID + [time-]serie -typedef struct PowerCurve { - uint32_t ID; - float* values; -} PowerCurve; - -#endif