mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 14:40:46 +01:00
NAMESPACE
This commit is contained in:
parent
e564d11687
commit
70e689900b
@ -1,26 +1,26 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
// L1p optimisation
|
// L1p optimisation
|
||||||
inline void bgq_l1p_optimisation(int mode)
|
inline void bgq_l1p_optimisation(int mode)
|
||||||
{
|
{
|
||||||
#ifdef QPX
|
#ifdef QPX
|
||||||
#undef L1P_CFG_PF_USR
|
#undef L1P_CFG_PF_USR
|
||||||
#define L1P_CFG_PF_USR (0x3fde8000108ll) /* (64 bit reg, 23 bits wide, user/unpriv) */
|
#define L1P_CFG_PF_USR (0x3fde8000108ll) /* (64 bit reg, 23 bits wide, user/unpriv) */
|
||||||
|
|
||||||
uint64_t cfg_pf_usr;
|
uint64_t cfg_pf_usr;
|
||||||
if ( mode ) {
|
if ( mode ) {
|
||||||
cfg_pf_usr =
|
cfg_pf_usr =
|
||||||
L1P_CFG_PF_USR_ifetch_depth(0)
|
L1P_CFG_PF_USR_ifetch_depth(0)
|
||||||
| L1P_CFG_PF_USR_ifetch_max_footprint(1)
|
| L1P_CFG_PF_USR_ifetch_max_footprint(1)
|
||||||
| L1P_CFG_PF_USR_pf_stream_est_on_dcbt
|
| L1P_CFG_PF_USR_pf_stream_est_on_dcbt
|
||||||
| L1P_CFG_PF_USR_pf_stream_establish_enable
|
| L1P_CFG_PF_USR_pf_stream_establish_enable
|
||||||
| L1P_CFG_PF_USR_pf_stream_optimistic
|
| L1P_CFG_PF_USR_pf_stream_optimistic
|
||||||
| L1P_CFG_PF_USR_pf_adaptive_throttle(0xF) ;
|
| L1P_CFG_PF_USR_pf_adaptive_throttle(0xF) ;
|
||||||
// if ( sizeof(Float) == sizeof(double) ) {
|
// if ( sizeof(Float) == sizeof(double) ) {
|
||||||
cfg_pf_usr |= L1P_CFG_PF_USR_dfetch_depth(2)| L1P_CFG_PF_USR_dfetch_max_footprint(3) ;
|
cfg_pf_usr |= L1P_CFG_PF_USR_dfetch_depth(2)| L1P_CFG_PF_USR_dfetch_max_footprint(3) ;
|
||||||
// } else {
|
// } else {
|
||||||
// cfg_pf_usr |= L1P_CFG_PF_USR_dfetch_depth(1)| L1P_CFG_PF_USR_dfetch_max_footprint(2) ;
|
// cfg_pf_usr |= L1P_CFG_PF_USR_dfetch_depth(1)| L1P_CFG_PF_USR_dfetch_max_footprint(2) ;
|
||||||
// }
|
// }
|
||||||
} else {
|
} else {
|
||||||
cfg_pf_usr = L1P_CFG_PF_USR_dfetch_depth(1)
|
cfg_pf_usr = L1P_CFG_PF_USR_dfetch_depth(1)
|
||||||
| L1P_CFG_PF_USR_dfetch_max_footprint(2)
|
| L1P_CFG_PF_USR_dfetch_max_footprint(2)
|
||||||
@ -34,4 +34,4 @@ inline void bgq_l1p_optimisation(int mode)
|
|||||||
*((uint64_t *)L1P_CFG_PF_USR) = cfg_pf_usr;
|
*((uint64_t *)L1P_CFG_PF_USR) = cfg_pf_usr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
NAMESPACE_END(Grid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user