Clover Git
OpenCL 1.1 software implementation
|
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>
Go to the source code of this file.
Functions | |
template<typename T > | |
T | k_exp (T base, unsigned int e) |
template<class T > | |
T | next_power_of_two (T k) |
CPU kernel.
Definition in file cpu/kernel.cpp.
T k_exp | ( | T | base, |
unsigned int | e | ||
) |
Definition at line 94 of file cpu/kernel.cpp.
Referenced by Coal::CPUKernel::guessWorkGroupSize().
T next_power_of_two | ( | T | k | ) |
Definition at line 153 of file cpu/kernel.cpp.
Referenced by Coal::CPUKernel::typeOffset().