modules.hpp 744 B

1234567891011121314151617181920212223
  1. #ifndef myMODULES_H
  2. #define myMODULES_H
  3. #include <iostream>
  4. #include <sys/types.h>
  5. #define MODS_DEF \
  6. MOD_DEF( dummyModule, 0xf218e0a2, "Dummy 4", 4, 4 ), \
  7. MOD_DEF( conv2D_2x11_Module, 0x9323eb24, "2D Konvolution 2x11", 224*224, 224*224 ), \
  8. MOD_DEF( neuronModule, 0x03b30000, "Neuron", 21, 1 ), \
  9. MOD_DEF( dummyBigModule, 0x2cb31e7c, "Dummy 1024", 1024, 1024), \
  10. MOD_DEF( conv2D_5x5_Module, 0x4cd2e19c, "2D Konvolution 5x5", 224*224, 224*224)
  11. #define MOD_DEF( identifier, id, name, sendLen, recvLen ) identifier
  12. enum Module { MODS_DEF };
  13. #undef MOD_DEF
  14. extern const uint32_t moduleIds[];
  15. extern const char *moduleNames[];
  16. extern const size_t moduleSendPayloadLength[];
  17. extern const size_t moduleRecvPayloadLength[];
  18. #endif