mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Fixing a compilation error for generic SIMD
This commit is contained in:
parent
0ffc235741
commit
15e801af3f
@ -281,8 +281,8 @@ namespace Optimization {
|
|||||||
|
|
||||||
struct PrecisionChange {
|
struct PrecisionChange {
|
||||||
static inline vech StoH (const vecf &a,const vecf &b) {
|
static inline vech StoH (const vecf &a,const vecf &b) {
|
||||||
#ifdef USE_FP16
|
|
||||||
vech ret;
|
vech ret;
|
||||||
|
#ifdef USE_FP16
|
||||||
vech *ha = (vech *)&a;
|
vech *ha = (vech *)&a;
|
||||||
vech *hb = (vech *)&b;
|
vech *hb = (vech *)&b;
|
||||||
const int nf = W<float>::r;
|
const int nf = W<float>::r;
|
||||||
@ -493,6 +493,8 @@ namespace Optimization {
|
|||||||
|
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef acc // EIGEN compatibility
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user