mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-07 16:28:06 +01:00
Use accelerator_for2d and DeviceSegmentedRecude to avoid kernel launch latencies
This commit is contained in:
1 parent
caa5f97723
commit
79a6ed32d8
3 files changed
+50
-26
No files matched your search
@@ -44,8 +44,9 @@ int main (int argc, char ** argv) {
|
||||
std::cout <<" sliceSumGpu took "<<tgpu<<" usecs"<<std::endl;
|
||||
|
||||
for(int t=0;t<reduction_reference.size();t++){
|
||||
|
||||
auto diff = reduction_reference[t]-reduction_result[t];
|
||||
// std::cout << "Difference = " << diff <<std::endl;
|
||||
|
||||
assert(abs(TensorRemove(diff)) < 1e-8 );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user