cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
cudacomp.c File Reference

CUDA functions wrapper. More...

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <malloc.h>
#include <string.h>
#include <sched.h>
#include <signal.h>
#include <semaphore.h>
#include <time.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/mman.h>
#include "CommandLineInterface/CLIcore.h"
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "COREMOD_arith/COREMOD_arith.h"
#include "info/info.h"
#include "cudacomp/cudacomp.h"
#include "linopt_imtools/linopt_imtools.h"
Include dependency graph for cudacomp.c:

Macros

#define MODULE_SHORTNAME_DEFAULT   ""
 
#define MODULE_DESCRIPTION   "CUDA wrapper"
 
#define MODULE_APPLICATION   "milk"
 
#define _POSIX_C_SOURCE   200809L
 
#define max(a, b)   ((a) > (b) ? (a) : (b))
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 

Functions

static int r32up (int x)
 
static void __attribute__ ((constructor))
 
CLI bindings
errno_t CUDACOMP_test_cli ()
 
Module initialization
static errno_t init_module_CLI ()
 

Variables

int FORCESEMINIT = 1
 
pid_t CLIPID
 important directories and info More...
 
static struct timespec tnow
 
static struct timespec tdiff
 
static double tdiffv
 
static int IDtimerinit = 0
 
static long IDtiming = -1
 

Detailed Description

CUDA functions wrapper.

Also uses MAGMA library

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200809L

◆ max

#define max (   a,
 
)    ((a) > (b) ? (a) : (b))

◆ min

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

◆ MODULE_APPLICATION

#define MODULE_APPLICATION   "milk"

◆ MODULE_DESCRIPTION

#define MODULE_DESCRIPTION   "CUDA wrapper"

◆ MODULE_SHORTNAME_DEFAULT

#define MODULE_SHORTNAME_DEFAULT   ""

Function Documentation

◆ __attribute__()

static void __attribute__ ( (constructor)  )
static

◆ CUDACOMP_test_cli()

errno_t CUDACOMP_test_cli ( )

◆ init_module_CLI()

static errno_t init_module_CLI ( )
static

◆ r32up()

static int r32up ( int  x)
inlinestatic

Variable Documentation

◆ CLIPID

pid_t CLIPID

important directories and info

◆ FORCESEMINIT

int FORCESEMINIT = 1

◆ IDtimerinit

int IDtimerinit = 0
static

◆ IDtiming

long IDtiming = -1
static

◆ tdiff

struct timespec tdiff
static

◆ tdiffv

double tdiffv
static

◆ tnow

struct timespec tnow
static