ASL  0.1.7
Advanced Simulation Library
Namespaces | Functions
aclUtilities.h File Reference
#include "aslUtilities.h"
#include "Kernels/aclKernelConfiguration.h"
#include "aclTypes.h"
Include dependency graph for aclUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cl
 The OpenCL C++ bindings are defined within this namespace.
 
 acl
 Advanced Computational Language.
 

Functions

bool acl::compatible (unsigned int size1, CommandQueue queue1, unsigned int size2, CommandQueue queue2)
 
bool acl::compatible (unsigned int size, CommandQueue queue, Element e)
 
bool acl::compatible (Element e1, Element e2)
 
bool acl::compatibleSizes (unsigned int s1, unsigned int s2)
 if s and size of e are the same or at least one of them is 0 More...
 
bool acl::compatibleSizes (Element e1, Element e2)
 if both elements have the same size or size of at least one of them is 0 More...
 
bool acl::compatibleSizes (unsigned int s, Element e)
 if s and size of e are the same or at least one of them is 0 More...
 
unsigned int acl::paddingBytes (unsigned int size, unsigned int typeSize, CommandQueue queue)
 Adds padding in bytes based on the device's alignment. More...
 
unsigned int acl::paddingElements (unsigned int size, const KernelConfiguration &kernelConfig)
 Adds padding in elements based on vector width. More...
 
bool acl::onSameDevice (CommandQueue queue1, CommandQueue queue2)
 checks whether both elements reside on the same device More...
 
bool acl::onSameDevice (CommandQueue queue, Element e)
 
bool acl::onSameDevice (Element e1, Element e2)
 
bool acl::isDeclarable (Element e)
 
bool acl::isArgument (Element e)
 
void acl::addElementToKernelSource (Element e, std::vector< Element > &arguments, std::vector< Element > &localDeclarations)
 adds e either to arguments or to localDeclarations More...
 
template<typename T >
const std::string & acl::typeToStr ()
 
template<typename T >
const std::string acl::typeToStr (unsigned int i)
 
template<typename T >
constexpr const TypeID acl::typeToTypeID ()
 
template<>
constexpr const TypeID acl::typeToTypeID< cl_double > ()
 
template<>
constexpr const TypeID acl::typeToTypeID< cl_float > ()
 
template<>
constexpr const TypeID acl::typeToTypeID< cl_int > ()
 
template<>
constexpr const TypeID acl::typeToTypeID< cl_uint > ()
 
template<>
constexpr const TypeID acl::typeToTypeID< cl_long > ()