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:
parent
7b7c470917
commit
b8f7bfbb26
@ -35,7 +35,8 @@ NAMESPACE_BEGIN(Grid);
|
|||||||
accelerator_inline void synchronise(void)
|
accelerator_inline void synchronise(void)
|
||||||
{
|
{
|
||||||
#ifdef __CUDA_ARCH__
|
#ifdef __CUDA_ARCH__
|
||||||
__syncthreads();
|
// __syncthreads();
|
||||||
|
__syncwarp();
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -65,7 +66,8 @@ vobj coalescedReadPermute(const vobj & __restrict__ vec,int ptype,int doperm,int
|
|||||||
template<class vobj> accelerator_inline
|
template<class vobj> accelerator_inline
|
||||||
void coalescedWrite(vobj & __restrict__ vec,const vobj & __restrict__ extracted,int lane=0)
|
void coalescedWrite(vobj & __restrict__ vec,const vobj & __restrict__ extracted,int lane=0)
|
||||||
{
|
{
|
||||||
vstream(vec, extracted);
|
// vstream(vec, extracted);
|
||||||
|
vec = extracted;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
accelerator_inline int SIMTlane(int Nsimd) { return threadIdx.y; } // CUDA specific
|
accelerator_inline int SIMTlane(int Nsimd) { return threadIdx.y; } // CUDA specific
|
||||||
|
Loading…
Reference in New Issue
Block a user