mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Add the comment line to tell the existance of copied data/buffer
This commit is contained in:
parent
6616d5d090
commit
6283d11d50
@ -571,6 +571,7 @@ public:
|
|||||||
}
|
}
|
||||||
void AddCopy(void *from,void * to, Integer bytes)
|
void AddCopy(void *from,void * to, Integer bytes)
|
||||||
{
|
{
|
||||||
|
std::cout << "Adding CopyReceiveBuffer "<<std::hex<<from<<" "<<to<<std::dec<<" "<<bytes<<std::endl;
|
||||||
CopyReceiveBuffer obj;
|
CopyReceiveBuffer obj;
|
||||||
obj.from_p = from;
|
obj.from_p = from;
|
||||||
obj.to_p = to;
|
obj.to_p = to;
|
||||||
@ -584,6 +585,7 @@ public:
|
|||||||
cobj *from=(cobj *)CopyReceiveBuffers[i].from_p;
|
cobj *from=(cobj *)CopyReceiveBuffers[i].from_p;
|
||||||
cobj *to =(cobj *)CopyReceiveBuffers[i].to_p;
|
cobj *to =(cobj *)CopyReceiveBuffers[i].to_p;
|
||||||
Integer words = CopyReceiveBuffers[i].bytes/sizeof(cobj);
|
Integer words = CopyReceiveBuffers[i].bytes/sizeof(cobj);
|
||||||
|
std::cout << "CopyReceiveBuffer "<<std::hex<<from<<" "<<to<<std::dec<<" "<<words*sizeof(cobj)<<std::endl;
|
||||||
accelerator_forNB(j, words, cobj::Nsimd(), {
|
accelerator_forNB(j, words, cobj::Nsimd(), {
|
||||||
to[j] = from [j]; // Start with a debug check that these give the same data.
|
to[j] = from [j]; // Start with a debug check that these give the same data.
|
||||||
});
|
});
|
||||||
@ -610,6 +612,7 @@ public:
|
|||||||
AddCopy(CachedTransfers[i].recv_buf,recv_buf,bytes);
|
AddCopy(CachedTransfers[i].recv_buf,recv_buf,bytes);
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
std::cout << "No duplicate plane dir "<<direction<<" plane "<< OrthogPlane<< " simd "<<lane << " relproc "<<DestProc<<std::endl;
|
||||||
CachedTransfers.push_back(obj);
|
CachedTransfers.push_back(obj);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user