projects
/
epclust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: C code (double, float, ...) + wrapper (read/write data, get medoids)
[epclust.git]
/
code
/
stage1
/
src
/
MPI_Communication
/
pack.c
diff --git
a/code/stage1/src/MPI_Communication/pack.c
b/code/stage1/src/MPI_Communication/pack.c
index
a7570b9
..
8cb7b4f
100644
(file)
--- a/
code/stage1/src/MPI_Communication/pack.c
+++ b/
code/stage1/src/MPI_Communication/pack.c
@@
-16,26
+16,26
@@
void pack_work(Work_t* work, uint32_t nbSeriesInChunk, Byte* packedWork)
while (index < NCHAR_FNAME)
packedWork[index++] = 0;
while (index < NCHAR_FNAME)
packedWork[index++] = 0;
- write_int(work->nbSeries,
4,
packedWork + index);
+ write_int(work->nbSeries, packedWork + index);
index += 4;
for (uint32_t i = 0; i < work->nbSeries; i++)
{
index += 4;
for (uint32_t i = 0; i < work->nbSeries; i++)
{
- write_int(work->ranks[i],
4,
packedWork + index);
+ write_int(work->ranks[i], packedWork + index);
index += 4;
}
// complete with zeros
for (uint32_t i = 0; i < nbSeriesInChunk - work->nbSeries; i++)
{
index += 4;
}
// complete with zeros
for (uint32_t i = 0; i < nbSeriesInChunk - work->nbSeries; i++)
{
- write_int(0,
4,
packedWork + index);
+ write_int(0, packedWork + index);
index += 4;
}
index += 4;
}
- write_int(work->nbClusters,
4,
packedWork + index);
+ write_int(work->nbClusters, packedWork + index);
index += 4;
index += 4;
- write_int(work->clustOnMedoids,
4,
packedWork + index);
+ write_int(work->clustOnMedoids, packedWork + index);
index += 4;
index += 4;
- write_int(work->p_for_dissims,
4,
packedWork + index);
+ write_int(work->p_for_dissims, packedWork + index);
}
// serialize a Result_t object into a bytes string
}
// serialize a Result_t object into a bytes string
@@
-43,18
+43,18
@@
void pack_result(Result_t* result, Byte* packedResult)
{
uint32_t index = 0;
{
uint32_t index = 0;
- write_int(result->nbClusters,
4,
packedResult);
+ write_int(result->nbClusters, packedResult);
index += 4;
for (uint32_t i = 0; i < result->nbClusters; i++)
{
index += 4;
for (uint32_t i = 0; i < result->nbClusters; i++)
{
- write_int(result->medoids_ID[i],
4,
packedResult + index);
+ write_int(result->medoids_ID[i], packedResult + index);
index += 4;
}
for (uint32_t i = 0; i < result->nbClusters; i++)
{
index += 4;
}
for (uint32_t i = 0; i < result->nbClusters; i++)
{
- write_int(result->medoids_ranks[i],
4,
packedResult + index);
+ write_int(result->medoids_ranks[i], packedResult + index);
index += 4;
}
}
index += 4;
}
}