Clover Git
OpenCL 1.1 software implementation
Functions

kernel.cpp File Reference

CPU kernel. More...

#include "kernel.h"
#include "device.h"
#include "buffer.h"
#include "program.h"
#include "builtins.h"
#include "../kernel.h"
#include "../memobject.h"
#include "../events.h"
#include "../program.h"
#include <llvm/Function.h>
#include <llvm/Constants.h>
#include <llvm/Instructions.h>
#include <llvm/LLVMContext.h>
#include <llvm/Module.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sys/mman.h>
Include dependency graph for cpu/kernel.cpp:

Go to the source code of this file.

Functions

template<typename T >
k_exp (T base, unsigned int e)
template<class T >
next_power_of_two (T k)

Detailed Description

CPU kernel.

Definition in file cpu/kernel.cpp.


Function Documentation

template<typename T >
T k_exp ( base,
unsigned int  e 
)

Definition at line 94 of file cpu/kernel.cpp.

Referenced by Coal::CPUKernel::guessWorkGroupSize().

template<class T >
T next_power_of_two ( k)

Definition at line 153 of file cpu/kernel.cpp.

Referenced by Coal::CPUKernel::typeOffset().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines