1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Dont stream as poor perf in some cases

This commit is contained in:
Peter Boyle 2019-07-01 07:30:25 +01:00
parent 7b7c470917
commit b8f7bfbb26

View File

@ -35,7 +35,8 @@ NAMESPACE_BEGIN(Grid);
accelerator_inline void synchronise(void)
{
#ifdef __CUDA_ARCH__
__syncthreads();
// __syncthreads();
__syncwarp();
#endif
return;
}
@ -65,7 +66,8 @@ vobj coalescedReadPermute(const vobj & __restrict__ vec,int ptype,int doperm,int
template<class vobj> accelerator_inline
void coalescedWrite(vobj & __restrict__ vec,const vobj & __restrict__ extracted,int lane=0)
{
vstream(vec, extracted);
// vstream(vec, extracted);
vec = extracted;
}
#else
accelerator_inline int SIMTlane(int Nsimd) { return threadIdx.y; } // CUDA specific