#include <iostream>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include "viennacl/vector.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/linalg/prod.hpp"
#include "viennacl/linalg/reduce.hpp"
#include "viennacl/device_specific/code_generator.hpp"
#include "viennacl/scheduler/io.hpp"
Go to the source code of this file.
#define CHECK_RESULT |
( |
|
cpu, |
|
|
|
gpu, |
|
|
|
op |
|
) |
| |
Value:if (
double 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 44 of file generator_blas2.cpp.
#define VIENNACL_WITH_UBLAS 1 |
template<typename ScalarType , typename VCLMatrixType >
template<typename ScalarType , unsigned int Alignment>
template<typename NumericT , class Layout , typename Epsilon >
int test |
( |
Epsilon const & |
epsilon | ) |
|