PARALUTION  1.0.0
PARALUTION
ocl_utils.hpp File Reference
#include "../backend_manager.hpp"
#include "../../utils/log.hpp"
#include "backend_ocl.hpp"
#include <CL/cl.h>

Go to the source code of this file.

Macros

#define OCL_HANDLE(handle)   static_cast<oclHandle_t*>(handle)
 
#define CHECK_OCL_ERROR(err_t, file, line)
 

Variables

static const char * OCL_ERROR []
 

Macro Definition Documentation

#define CHECK_OCL_ERROR (   err_t,
  file,
  line 
)
Value:
{ \
if ( err_t != CL_SUCCESS ) { \
LOG_INFO("OPENCL ERROR: " <<OCL_ERROR[-err_t]); \
LOG_INFO("File: " << file << "; line: " << line); \
exit(1); \
} \
}
void paralution_stop_ocl(void)
Release the OpenCL resources.
Definition: backend_ocl.cpp:495
if(interval_end2 > num_nonzeros) interval_end2
static const char * OCL_ERROR[]
Definition: ocl_utils.hpp:16
#define LOG_INFO(stream)
Definition: log.hpp:38

Referenced by paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalar(), paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalarDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalarOffDiagonal(), paralution::OCLAcceleratorVector< ValueType >::AddScale(), paralution::allocate_ocl(), paralution::OCLAcceleratorVector< ValueType >::Amax(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::Apply(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::Apply(), paralution::OCLAcceleratorMatrixBCSR< ValueType >::Apply(), paralution::OCLAcceleratorMatrixDIA< ValueType >::Apply(), paralution::OCLAcceleratorMatrixELL< ValueType >::Apply(), paralution::OCLAcceleratorMatrixCOO< ValueType >::Apply(), paralution::OCLAcceleratorMatrixHYB< ValueType >::Apply(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Apply(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixDIA< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixELL< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixCOO< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixHYB< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ApplyAdd(), paralution::OCLAcceleratorVector< ValueType >::Asum(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Compress(), paralution::OCLAcceleratorMatrixELL< ValueType >::ConvertFrom(), paralution::OCLAcceleratorVector< ValueType >::CopyFrom(), paralution::OCLAcceleratorVector< ValueType >::CopyFromDouble(), paralution::OCLAcceleratorVector< ValueType >::CopyFromFloat(), paralution::OCLAcceleratorVector< ValueType >::CopyFromPermute(), paralution::OCLAcceleratorVector< ValueType >::CopyFromPermuteBackward(), paralution::OCLAcceleratorMatrixCSR< ValueType >::DiagonalMatrixMultL(), paralution::OCLAcceleratorMatrixCSR< ValueType >::DiagonalMatrixMultR(), paralution::OCLAcceleratorVector< ValueType >::Dot(), paralution::OCLAcceleratorVector< ValueType >::DotNonConj(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ExtractColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractInverseDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractL(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractLDiagonal(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ExtractRowVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractSubMatrix(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractU(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractUDiagonal(), paralution::free_ocl(), paralution::OCLAcceleratorMatrixCSR< ValueType >::MatrixAdd(), paralution::OCLAcceleratorVector< ValueType >::Norm(), paralution::ocl_dev2dev(), paralution::ocl_dev2host(), paralution::ocl_host2dev(), paralution::ocl_set_to(), paralution::paralution_info_ocl(), paralution::paralution_set_kernels_ocl(), paralution::paralution_stop_ocl(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Permute(), paralution::OCLAcceleratorVector< ValueType >::Permute(), paralution::OCLAcceleratorVector< ValueType >::PermuteBackward(), paralution::OCLAcceleratorVector< ValueType >::PointWiseMult(), paralution::OCLAcceleratorVector< ValueType >::Power(), paralution::OCLAcceleratorVector< ValueType >::Reduce(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ReplaceColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ReplaceColumnVector(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ReplaceRowVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Scale(), paralution::OCLAcceleratorVector< ValueType >::Scale(), paralution::OCLAcceleratorVector< ValueType >::ScaleAdd(), paralution::OCLAcceleratorVector< ValueType >::ScaleAdd2(), paralution::OCLAcceleratorVector< ValueType >::ScaleAddScale(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ScaleDiagonal(), and paralution::OCLAcceleratorMatrixCSR< ValueType >::ScaleOffDiagonal().

#define OCL_HANDLE (   handle)    static_cast<oclHandle_t*>(handle)

Referenced by paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalar(), paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalarDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::AddScalarOffDiagonal(), paralution::OCLAcceleratorVector< ValueType >::AddScale(), paralution::OCLAcceleratorVector< ValueType >::Allocate(), paralution::OCLAcceleratorMatrixCOO< ValueType >::AllocateCOO(), paralution::OCLAcceleratorMatrixCSR< ValueType >::AllocateCSR(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::AllocateDENSE(), paralution::OCLAcceleratorMatrixDIA< ValueType >::AllocateDIA(), paralution::OCLAcceleratorMatrixELL< ValueType >::AllocateELL(), paralution::OCLAcceleratorMatrixHYB< ValueType >::AllocateHYB(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::AllocateMCSR(), paralution::OCLAcceleratorVector< ValueType >::Amax(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::Apply(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::Apply(), paralution::OCLAcceleratorMatrixELL< ValueType >::Apply(), paralution::OCLAcceleratorMatrixCOO< ValueType >::Apply(), paralution::OCLAcceleratorMatrixDIA< ValueType >::Apply(), paralution::OCLAcceleratorMatrixHYB< ValueType >::Apply(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Apply(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixELL< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixCOO< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixDIA< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixHYB< ValueType >::ApplyAdd(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ApplyAdd(), paralution::OCLAcceleratorVector< ValueType >::Asum(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Compress(), paralution::OCLAcceleratorMatrixELL< ValueType >::ConvertFrom(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixCSR< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixELL< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixCOO< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixDIA< ValueType >::CopyFrom(), paralution::OCLAcceleratorVector< ValueType >::CopyFrom(), paralution::OCLAcceleratorMatrixHYB< ValueType >::CopyFrom(), paralution::OCLAcceleratorVector< ValueType >::CopyFromDouble(), paralution::OCLAcceleratorVector< ValueType >::CopyFromFloat(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixCSR< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixCOO< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixDIA< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixELL< ValueType >::CopyFromHost(), paralution::OCLAcceleratorMatrixHYB< ValueType >::CopyFromHost(), paralution::OCLAcceleratorVector< ValueType >::CopyFromHost(), paralution::OCLAcceleratorVector< ValueType >::CopyFromPermute(), paralution::OCLAcceleratorVector< ValueType >::CopyFromPermuteBackward(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixCSR< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixELL< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixCOO< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixDIA< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixHYB< ValueType >::CopyTo(), paralution::OCLAcceleratorVector< ValueType >::CopyTo(), paralution::OCLAcceleratorMatrixMCSR< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixCSR< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixELL< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixCOO< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixDIA< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixHYB< ValueType >::CopyToHost(), paralution::OCLAcceleratorVector< ValueType >::CopyToHost(), paralution::OCLAcceleratorMatrixCSR< ValueType >::DiagonalMatrixMultL(), paralution::OCLAcceleratorMatrixCSR< ValueType >::DiagonalMatrixMultR(), paralution::OCLAcceleratorVector< ValueType >::Dot(), paralution::OCLAcceleratorVector< ValueType >::DotNonConj(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ExtractColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractInverseDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractL(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractLDiagonal(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ExtractRowVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractSubMatrix(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractU(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ExtractUDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::MatrixAdd(), paralution::OCLAcceleratorMatrixCSR< ValueType >::MaximalIndependentSet(), paralution::OCLAcceleratorMatrixCSR< ValueType >::MultiColoring(), paralution::OCLAcceleratorVector< ValueType >::Norm(), paralution::OCLAcceleratorVector< ValueType >::Ones(), paralution::paralution_get_kernel_ocl< double >(), paralution::paralution_get_kernel_ocl< float >(), paralution::paralution_get_kernel_ocl< int >(), paralution::paralution_info_ocl(), paralution::paralution_init_ocl(), paralution::paralution_set_kernels_ocl(), paralution::paralution_stop_ocl(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Permute(), paralution::OCLAcceleratorVector< ValueType >::Permute(), paralution::OCLAcceleratorVector< ValueType >::PermuteBackward(), paralution::OCLAcceleratorVector< ValueType >::PointWiseMult(), paralution::OCLAcceleratorVector< ValueType >::Power(), paralution::OCLAcceleratorVector< ValueType >::Reduce(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ReplaceColumnVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ReplaceColumnVector(), paralution::OCLAcceleratorMatrixDENSE< ValueType >::ReplaceRowVector(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Scale(), paralution::OCLAcceleratorVector< ValueType >::Scale(), paralution::OCLAcceleratorVector< ValueType >::ScaleAdd(), paralution::OCLAcceleratorVector< ValueType >::ScaleAdd2(), paralution::OCLAcceleratorVector< ValueType >::ScaleAddScale(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ScaleDiagonal(), paralution::OCLAcceleratorMatrixCSR< ValueType >::ScaleOffDiagonal(), paralution::OCLAcceleratorVector< ValueType >::SetValues(), paralution::OCLAcceleratorMatrixCSR< ValueType >::Zeros(), and paralution::OCLAcceleratorVector< ValueType >::Zeros().

Variable Documentation

const char* OCL_ERROR[]
static