SUNphi  1.0
SIMD.hpp File Reference

Header file for Same Instruction Different Data instructions and types. More...

#include <cstdlib>
#include <utility/Unused.hpp>

Go to the source code of this file.

Functions

Conditional< 0, decltype(maybeUnused(NCOMPL)), void > SUNphi::maybeUnusedFD ()
 
template<typename F >
constexpr bool SUNphi::canBeSizeOfSIMDVector (const int size)
 Check if a certain number can be the size of a SIMD vector. More...
 
template<typename F >
constexpr bool SUNphi::canBeFactorOfSIMDVector (const int size)
 Check if a certain number can be a factor of the size of a SIMD vector. More...
 

Variables

static constexpr size_t SUNphi::ALIGNMENT
 Basic alignement for AVX-512, to be generalized. More...
 
template<typename F >
constexpr int SUNphi::NSIMD_COMPONENTS
 Number of components of a SIMD vector of type F. More...
 

Detailed Description

Header file for Same Instruction Different Data instructions and types.

Definition in file SIMD.hpp.

Function Documentation

template<typename F >
constexpr bool SUNphi::canBeFactorOfSIMDVector ( const int  size)

Check if a certain number can be a factor of the size of a SIMD vector.

Parameters
sizeSize to be checked

Definition at line 34 of file SIMD.hpp.

template<typename F >
constexpr bool SUNphi::canBeSizeOfSIMDVector ( const int  size)

Check if a certain number can be the size of a SIMD vector.

Parameters
sizeSize to be checked

Definition at line 27 of file SIMD.hpp.

Conditional< 0, decltype(maybeUnused(hasTwin< CnCol >)), void > SUNphi::maybeUnusedFD ( )

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOMPL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of ALIGNMENT

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDIR

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDUMMY_VOLUME

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NSPIN

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwCol >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnCol >

Variable Documentation

constexpr size_t SUNphi::ALIGNMENT
static
Initial value:
=
64

Basic alignement for AVX-512, to be generalized.

Definition at line 15 of file SIMD.hpp.

template<typename F >
constexpr int SUNphi::NSIMD_COMPONENTS
Initial value:
=
ALIGNMENT/sizeof(F)
static constexpr size_t ALIGNMENT
Basic alignement for AVX-512, to be generalized.
Definition: SIMD.hpp:15

Number of components of a SIMD vector of type F.

Definition at line 22 of file SIMD.hpp.