mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
disable comments
This commit is contained in:
parent
04863f8f38
commit
6b64727161
@ -116,7 +116,7 @@ public:
|
|||||||
int target;
|
int target;
|
||||||
cudaGetDevice(&target);
|
cudaGetDevice(&target);
|
||||||
cudaMemPrefetchAsync(_odata,_odata_size*sizeof(vobj),target);
|
cudaMemPrefetchAsync(_odata,_odata_size*sizeof(vobj),target);
|
||||||
std::cout<< GridLogMessage << "To Device " << target << std::endl;
|
//std::cout<< GridLogMessage << "To Device " << target << std::endl;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -125,7 +125,7 @@ public:
|
|||||||
#ifdef GRID_NVCC
|
#ifdef GRID_NVCC
|
||||||
#ifndef __CUDA_ARCH__ // only on host
|
#ifndef __CUDA_ARCH__ // only on host
|
||||||
cudaMemPrefetchAsync(_odata,_odata_size*sizeof(vobj),cudaCpuDeviceId);
|
cudaMemPrefetchAsync(_odata,_odata_size*sizeof(vobj),cudaCpuDeviceId);
|
||||||
std::cout<< GridLogMessage << "To Host" << std::endl;
|
//std::cout<< GridLogMessage << "To Host" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -448,7 +448,7 @@ public:
|
|||||||
typename std::enable_if<!std::is_same<robj,vobj>::value,int>::type i=0;
|
typename std::enable_if<!std::is_same<robj,vobj>::value,int>::type i=0;
|
||||||
conformable(*this,r);
|
conformable(*this,r);
|
||||||
this->checkerboard = r.Checkerboard();
|
this->checkerboard = r.Checkerboard();
|
||||||
std::cout << GridLogMessage << "Copy other" << std::endl;
|
//std::cout << GridLogMessage << "Copy other" << std::endl;
|
||||||
auto me = AcceleratorView(ViewWrite);
|
auto me = AcceleratorView(ViewWrite);
|
||||||
auto him= r.AcceleratorView(ViewRead);
|
auto him= r.AcceleratorView(ViewRead);
|
||||||
accelerator_for(ss,me.size(),vobj::Nsimd(),{
|
accelerator_for(ss,me.size(),vobj::Nsimd(),{
|
||||||
@ -463,7 +463,7 @@ public:
|
|||||||
inline Lattice<vobj> & operator = (const Lattice<vobj> & r){
|
inline Lattice<vobj> & operator = (const Lattice<vobj> & r){
|
||||||
this->checkerboard = r.Checkerboard();
|
this->checkerboard = r.Checkerboard();
|
||||||
conformable(*this,r);
|
conformable(*this,r);
|
||||||
std::cout << GridLogMessage << "Copy same" << std::endl;
|
//std::cout << GridLogMessage << "Copy same" << std::endl;
|
||||||
auto me = AcceleratorView(ViewWrite);
|
auto me = AcceleratorView(ViewWrite);
|
||||||
auto him= r.AcceleratorView(ViewRead);
|
auto him= r.AcceleratorView(ViewRead);
|
||||||
accelerator_for(ss,me.size(),vobj::Nsimd(),{
|
accelerator_for(ss,me.size(),vobj::Nsimd(),{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user