Loading src/core/tnlFile_impl.h +1 −5 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define TNLFILE_IMPL_H #include "tnlFile.h" #include <core/tnlMIC.h> template< typename Type, typename Device > Loading @@ -33,11 +34,6 @@ bool tnlFile :: write( const Type* buffer ) return write< Type, Device, int >( buffer, 1 ); }; template< typename Type > struct satanHider{ Type *pointer; }; template< typename Type, typename Device, typename Index > bool tnlFile :: read( Type* buffer, const Index& elements ) Loading src/core/tnlMIC.h +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ class tnlMIC } }; template< typename Type > struct satanHider{ Type *pointer; }; #endif /* TNLMIC_H */ src/core/vectors/tnlVectorOperations.h +6 −4 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ class tnlVectorOperations< tnlCuda > const typename Vector::IndexType end ); }; /* #ifdef HAVE_MIC template<> class tnlVectorOperations< tnlMIC > { Loading Loading @@ -351,10 +351,12 @@ class tnlVectorOperations< tnlMIC > static void computeExclusivePrefixSum( Vector& v, const typename Vector::IndexType begin, const typename Vector::IndexType end ); };*/ }; #endif #include <core/vectors/tnlVectorOperationsHost_impl.h> #include <core/vectors/tnlVectorOperationsCuda_impl.h> //#include <core/vectors/tnlVectorOperationsMIC_impl.h> #ifdef HAVE_MIC #include <core/vectors/tnlVectorOperationsMIC_impl.h> #endif #endif /* TNLVECTOROPERATIONS_H_ */ src/core/vectors/tnlVectorOperationsHost_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -452,7 +452,7 @@ addVectors( Vector1& v, #pragma omp parallel for if( tnlHost::isOMPEnabled() && n > OpenMPVectorOperationsThreshold ) // TODO: check this threshold #endif for( Index i = 0; i < n; i ++ ) v[ i ] = thisMultiplicator * v[ i ] * multiplicator1 * v1[ i ] + multiplicator2 * v2[ i ]; v[ i ] = thisMultiplicator * v[ i ] + multiplicator1 * v1[ i ] + multiplicator2 * v2[ i ]; //BUG? } template< typename Vector > Loading src/core/vectors/tnlVectorOperationsMIC_impl.h +274 −144 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
src/core/tnlFile_impl.h +1 −5 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #define TNLFILE_IMPL_H #include "tnlFile.h" #include <core/tnlMIC.h> template< typename Type, typename Device > Loading @@ -33,11 +34,6 @@ bool tnlFile :: write( const Type* buffer ) return write< Type, Device, int >( buffer, 1 ); }; template< typename Type > struct satanHider{ Type *pointer; }; template< typename Type, typename Device, typename Index > bool tnlFile :: read( Type* buffer, const Index& elements ) Loading
src/core/tnlMIC.h +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ class tnlMIC } }; template< typename Type > struct satanHider{ Type *pointer; }; #endif /* TNLMIC_H */
src/core/vectors/tnlVectorOperations.h +6 −4 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ class tnlVectorOperations< tnlCuda > const typename Vector::IndexType end ); }; /* #ifdef HAVE_MIC template<> class tnlVectorOperations< tnlMIC > { Loading Loading @@ -351,10 +351,12 @@ class tnlVectorOperations< tnlMIC > static void computeExclusivePrefixSum( Vector& v, const typename Vector::IndexType begin, const typename Vector::IndexType end ); };*/ }; #endif #include <core/vectors/tnlVectorOperationsHost_impl.h> #include <core/vectors/tnlVectorOperationsCuda_impl.h> //#include <core/vectors/tnlVectorOperationsMIC_impl.h> #ifdef HAVE_MIC #include <core/vectors/tnlVectorOperationsMIC_impl.h> #endif #endif /* TNLVECTOROPERATIONS_H_ */
src/core/vectors/tnlVectorOperationsHost_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -452,7 +452,7 @@ addVectors( Vector1& v, #pragma omp parallel for if( tnlHost::isOMPEnabled() && n > OpenMPVectorOperationsThreshold ) // TODO: check this threshold #endif for( Index i = 0; i < n; i ++ ) v[ i ] = thisMultiplicator * v[ i ] * multiplicator1 * v1[ i ] + multiplicator2 * v2[ i ]; v[ i ] = thisMultiplicator * v[ i ] + multiplicator1 * v1[ i ] + multiplicator2 * v2[ i ]; //BUG? } template< typename Vector > Loading
src/core/vectors/tnlVectorOperationsMIC_impl.h +274 −144 File changed.Preview size limit exceeded, changes collapsed. Show changes