Neko  0.9.0
A portable framework for high-order spectral element flow simulations
mathops.c File Reference
#include <CL/cl.h>
#include <stdio.h>
#include <device/device_config.h>
#include <device/opencl/jit.h>
#include <device/opencl/prgm_lib.h>
#include <device/opencl/check.h>
#include "mathops_kernel.cl.h"
Include dependency graph for mathops.c:

Go to the source code of this file.

Functions

void opencl_opchsign (void *a1, void *a2, void *a3, int *gdim, int *n)
 
void opencl_opcolv (void *a1, void *a2, void *a3, void *c, int *gdim, int *n)
 
void opencl_opcolv3c (void *a1, void *a2, void *a3, void *b1, void *b2, void *b3, void *c, real *d, int *gdim, int *n)
 
void opencl_opadd2cm (void *a1, void *a2, void *a3, void *b1, void *b2, void *b3, real *c, int *gdim, int *n)
 
void opencl_opadd2col (void *a1, void *a2, void *a3, void *b1, void *b2, void *b3, void *c, int *gdim, int *n)
 

Function Documentation

◆ opencl_opadd2cm()

void opencl_opadd2cm ( void *  a1,
void *  a2,
void *  a3,
void *  b1,
void *  b2,
void *  b3,
real c,
int *  gdim,
int *  n 
)

Fortran wrapper for opadd2cm \( a(i) = a + b(i) * c \)

Definition at line 133 of file mathops.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ opencl_opadd2col()

void opencl_opadd2col ( void *  a1,
void *  a2,
void *  a3,
void *  b1,
void *  b2,
void *  b3,
void *  c,
int *  gdim,
int *  n 
)

Fortran wrapper for opadd2col \( a(i) = a + b(i) * c(i) \)

Definition at line 164 of file mathops.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ opencl_opchsign()

void opencl_opchsign ( void *  a1,
void *  a2,
void *  a3,
int *  gdim,
int *  n 
)

Fortran wrapper for opchsign \( a = -a \)

Definition at line 50 of file mathops.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ opencl_opcolv()

void opencl_opcolv ( void *  a1,
void *  a2,
void *  a3,
void *  c,
int *  gdim,
int *  n 
)

Fortran wrapper for opcolv \( a = a * c \)

Definition at line 75 of file mathops.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ opencl_opcolv3c()

void opencl_opcolv3c ( void *  a1,
void *  a2,
void *  a3,
void *  b1,
void *  b2,
void *  b3,
void *  c,
real d,
int *  gdim,
int *  n 
)

Fortran wrapper for opcolv3c \( a(i) = b(i) * c(i) * d \)

Definition at line 101 of file mathops.c.

Here is the call graph for this function:
Here is the caller graph for this function: