${POLLY_BINARY_DIR}/include/polly/Config/config.h )
# Add target to check formatting of polly files
-file( GLOB_RECURSE files *.h *.cpp)
+file( GLOB_RECURSE files *.h *.cpp *.c)
+file( GLOB_RECURSE wwwfiles www/*)
file( GLOB_RECURSE jsonfiles lib/JSON/*.h lib/JSON/*.cpp)
file( GLOB_RECURSE islfiles lib/External/isl/*.h lib/External/isl/*.c
lib/External/isl/include/isl/*.h lib/External/isl/imath/*.h
lib/External/isl/imath/*.c)
-list( REMOVE_ITEM files ${jsonfiles} ${islfiles})
+list( REMOVE_ITEM files ${jsonfiles} ${islfiles} ${wwwfiles})
set(check_format_depends)
set(update_format_depends)
typedef CUresult CUDAAPI CuFuncSetBlockShapeFcnTy(CUfunction, int, int, int);
static CuFuncSetBlockShapeFcnTy *CuFuncSetBlockShapeFcnPtr;
-typedef CUresult CUDAAPI
-CuParamSetvFcnTy(CUfunction, int, void *, unsigned int);
+typedef CUresult CUDAAPI CuParamSetvFcnTy(CUfunction, int, void *,
+ unsigned int);
static CuParamSetvFcnTy *CuParamSetvFcnPtr;
typedef CUresult CUDAAPI CuParamSetSizeFcnTy(CUfunction, unsigned int);
typedef CUresult CUDAAPI CuDeviceGetFcnTy(CUdevice *, int);
static CuDeviceGetFcnTy *CuDeviceGetFcnPtr;
-typedef CUresult CUDAAPI CuModuleLoadDataExFcnTy(
- CUmodule *, const void *, unsigned int, CUjit_option *, void **);
+typedef CUresult CUDAAPI CuModuleLoadDataExFcnTy(CUmodule *, const void *,
+ unsigned int, CUjit_option *,
+ void **);
static CuModuleLoadDataExFcnTy *CuModuleLoadDataExFcnPtr;
-typedef CUresult CUDAAPI
-CuModuleGetFunctionFcnTy(CUfunction *, CUmodule, const char *);
+typedef CUresult CUDAAPI CuModuleGetFunctionFcnTy(CUfunction *, CUmodule,
+ const char *);
static CuModuleGetFunctionFcnTy *CuModuleGetFunctionFcnPtr;
typedef CUresult CUDAAPI CuDeviceComputeCapabilityFcnTy(int *, int *, CUdevice);
typedef cudaError_t CUDARTAPI CudaEventSynchronizeFcnTy(cudaEvent_t);
static CudaEventSynchronizeFcnTy *CudaEventSynchronizeFcnPtr;
-typedef cudaError_t CUDARTAPI
-CudaEventElapsedTimeFcnTy(float *, cudaEvent_t, cudaEvent_t);
+typedef cudaError_t CUDARTAPI CudaEventElapsedTimeFcnTy(float *, cudaEvent_t,
+ cudaEvent_t);
static CudaEventElapsedTimeFcnTy *CudaEventElapsedTimeFcnPtr;
typedef cudaError_t CUDARTAPI CudaEventDestroyFcnTy(cudaEvent_t);
}
if (CuModuleLoadDataExFcnPtr(&((*Module)->Cuda), PTXBuffer, 0, 0, 0) !=
- CUDA_SUCCESS) {
+ CUDA_SUCCESS) {
fprintf(stdout, "Loading ptx assembly text failed.\n");
exit(-1);
}
/* Locate the kernel entry point. */
if (CuModuleGetFunctionFcnPtr(&((*Kernel)->Cuda), Module->Cuda, KernelName) !=
- CUDA_SUCCESS) {
+ CUDA_SUCCESS) {
fprintf(stdout, "Loading kernel function failed.\n");
exit(-1);
}
free(Stop);
}
-void polly_allocateMemoryForHostAndDevice(
- void **HostData, PollyGPUDevicePtr **DevData, int MemSize) {
+void polly_allocateMemoryForHostAndDevice(void **HostData,
+ PollyGPUDevicePtr **DevData,
+ int MemSize) {
if ((*HostData = (int *)malloc(MemSize)) == 0) {
fprintf(stdout, "Could not allocate host memory.\n");
exit(-1);
fprintf(stdout, "CUDA kernel launched.\n");
}
-void polly_cleanupGPGPUResources(
- void *HostData, PollyGPUDevicePtr *DevData, PollyGPUModule *Module,
- PollyGPUContext *Context, PollyGPUFunction *Kernel) {
+void polly_cleanupGPGPUResources(void *HostData, PollyGPUDevicePtr *DevData,
+ PollyGPUModule *Module,
+ PollyGPUContext *Context,
+ PollyGPUFunction *Kernel) {
if (HostData) {
free(HostData);
HostData = 0;