mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Minor GPU vector width changeÂ
This commit is contained in:
parent
4b04ae3611
commit
1bb456c0c5
@ -36,6 +36,7 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
|
|||||||
|
|
||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
|
||||||
|
#define COALESCE_GRANULARITY (32) // bytes for coalesce granularity of target: Pascal, Volta
|
||||||
|
|
||||||
template<class pair>
|
template<class pair>
|
||||||
class GpuComplex {
|
class GpuComplex {
|
||||||
@ -118,8 +119,6 @@ inline accelerator GpuVector<N,datum> operator/(const GpuVector<N,datum> l,const
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define COALESCE_GRANULARITY (64) // 512 bit coalesce size target
|
|
||||||
|
|
||||||
constexpr int NSIMD_RealH = COALESCE_GRANULARITY / sizeof(half);
|
constexpr int NSIMD_RealH = COALESCE_GRANULARITY / sizeof(half);
|
||||||
constexpr int NSIMD_ComplexH = COALESCE_GRANULARITY / sizeof(half2);
|
constexpr int NSIMD_ComplexH = COALESCE_GRANULARITY / sizeof(half2);
|
||||||
constexpr int NSIMD_RealF = COALESCE_GRANULARITY / sizeof(float);
|
constexpr int NSIMD_RealF = COALESCE_GRANULARITY / sizeof(float);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user