11 #include "../globals.h"
55 enum skepu_container_type
88 std::vector<Device_CL*> m_devices_CL;
91 unsigned int m_numDevices;
94 unsigned int bestCUDADevID;
96 int m_peerAccessEnabled;
101 std::vector<Device_CU*> m_devices_CU;
106 DevTimingStruct bwDataStruct;
109 bool getGroupMapping(
int groupId,
BackEnd &type)
111 if(m_cacheGroupResult.first == groupId)
113 type = m_cacheGroupResult.second;
121 type = m_cacheGroupResult.second;
129 void addGroupMapping(
int groupId,
BackEnd type)
131 m_cacheGroupResult = std::make_pair(groupId, type);
135 void clearGroupMapping()
145 std::pair<int, BackEnd> m_cacheGroupResult;
159 std::vector<std::pair<cl_kernel, Device_CL*> > m_transposeKernels_CL;
184 template <
typename T>
200 template <
typename T>
215 template <
typename T>
216 EnvironmentDestroyer<T>::EnvironmentDestroyer(Environment<T>* s)
221 template <
typename T>
222 EnvironmentDestroyer<T>::~EnvironmentDestroyer ()
227 template <
typename T>
228 void EnvironmentDestroyer<T>::SetEnvironment (Environment<T>* s)
void finishAll_CL()
Definition: environment.inl:562
Contains a class declaration for an object which represents an OpenCL device memory allocation for co...
Contains a class declaration for an object which represents an CUDA device memory allocation for Vect...
virtual ~Environment()
Definition: environment.inl:145
void createOpenCLProgramForMatrixTranspose()
Definition: environment.inl:636
void finishAll()
Definition: environment.inl:575
Contains member function definitions for the Environment class.
BackEnd
Can be used to specify which backend to use.
Definition: environment.h:34
Contains a class declaration for the object that represents an OpenCL device.
A class that is used to properly deallocate singelton object of Environment class.
Definition: environment.h:68
Contains a class declaration for the object that represents a CUDA device.
Environment()
Definition: environment.inl:104
A class representing a execution environment.
Definition: environment.h:80
std::vector< std::pair< int, BackEnd > > m_groupMapping
Definition: environment.h:144
static Environment * getInstance()
Definition: environment.inl:90
std::vector< std::pair< int, int > > m_peerCopyGpuIDsVector
Definition: environment.h:97
void finishAll_CU(int lowID=-1, int highID=-1)
Definition: environment.inl:412