#include <iostream>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/foreach.hpp>
#include "viennacl/matrix.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/linalg/inner_prod.hpp"
#include "viennacl/linalg/reduce.hpp"
#include "viennacl/linalg/vector_operations.hpp"
#include "viennacl/scheduler/io.hpp"
Go to the source code of this file.
|
template<typename ScalarType , typename VCLMatrixType > |
ScalarType | diff (ublas::matrix< ScalarType > &mat1, VCLMatrixType &mat2) |
|
template<typename ScalarType , unsigned int Alignment> |
ScalarType | diff (ublas::vector< ScalarType > &v1, viennacl::vector< ScalarType, Alignment > &v2) |
|
template<typename ScalarType > |
ScalarType | diff (ScalarType s, viennacl::scalar< ScalarType > &gs) |
|
template<typename NumericT , typename Epsilon > |
int | test_vector (Epsilon const &epsilon) |
|
template<typename NumericT , class Layout , typename Epsilon > |
int | test_matrix (Epsilon const &epsilon) |
|
int | main (int argc, char *argv[]) |
|
#define CHECK_RESULT |
( |
|
cpu, |
|
|
|
gpu, |
|
|
|
op |
|
) |
| |
Value:if (
float delta = fabs (
diff ( cpu, gpu) ) > epsilon ) {\
std::cout << "# Error at operation: " #op << std::endl;\
std::cout << " diff: " << delta << std::endl;\
retval = EXIT_FAILURE;\
}\
ScalarType diff(ublas::matrix< ScalarType > &mat1, VCLMatrixType &mat2)
Definition at line 51 of file generator_blas1.cpp.
#define VIENNACL_WITH_UBLAS |
template<typename ScalarType , typename VCLMatrixType >
template<typename ScalarType , unsigned int Alignment>
template<typename ScalarType >
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
template<typename NumericT , class Layout , typename Epsilon >
int test_matrix |
( |
Epsilon const & |
epsilon | ) |
|
template<typename NumericT , typename Epsilon >
int test_vector |
( |
Epsilon const & |
epsilon | ) |
|