SkePU  1.2
 All Classes Namespaces Files Functions Variables Enumerations Friends Macros Groups Pages
Namespaces | Functions
environment.inl File Reference

Contains member function definitions for the Environment class. More...

#include <cstdlib>
#include <cstring>
#include <cassert>
#include "bandwidthMeasure.h"
#include "mapoverlap_convol_kernels.h"
Include dependency graph for environment.inl:
This graph shows which files directly or indirectly include this file:

Namespaces

 skepu
 The main namespace for SkePU library.
 

Functions

template<typename T >
std::string skepu::getDataTypeCL ()
 
template<>
std::string skepu::getDataTypeCL< int > ()
 
template<>
std::string skepu::getDataTypeCL< unsigned int > ()
 
template<>
std::string skepu::getDataTypeCL< long > ()
 
template<>
std::string skepu::getDataTypeCL< float > ()
 
template<>
std::string skepu::getDataTypeCL< double > ()
 
bool skepu::cudaPeerToPeerMemAccess (int gpuId1, int gpuId2)
 
static std::string skepu::TransposeKernelNoBankConflicts_CL ("__kernel void transposeNoBankConflicts(__global TYPE* odata, __global TYPE* idata, int width, int height, __local TYPE* sdata)\n""{\n"" int xIndex = get_group_id(0) * TILEDIM + get_local_id(0);\n"" int yIndex = get_group_id(1) * TILEDIM + get_local_id(1);\n"" int index_in = xIndex + (yIndex)*width;\n"" if(xIndex<width && yIndex<height)\n"" sdata[get_local_id(1)*TILEDIM+get_local_id(0)] = idata[index_in];\n"" xIndex = get_group_id(1) * TILEDIM + get_local_id(0);\n"" yIndex = get_group_id(0) * TILEDIM + get_local_id(1);\n"" int index_out = xIndex + (yIndex)*height;\n"" \n"" barrier(CLK_LOCAL_MEM_FENCE);\n"" if(xIndex<height && yIndex<width)\n"" odata[index_out] = sdata[get_local_id(0)*TILEDIM+get_local_id(1)];\n""}\n")
 

Detailed Description

Contains member function definitions for the Environment class.