Neko 1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
local_interpolation.c File Reference
#include <CL/cl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <device/device_config.h>
#include <device/opencl/jit.h>
#include <device/opencl/prgm_lib.h>
#include <device/opencl/check.h>
#include <common/neko_log.h>
#include "local_interpolation_kernel.cl.h"
Include dependency graph for local_interpolation.c:

Go to the source code of this file.

Macros

#define STR(X)   #X
 
#define CASE(LX)
 

Functions

void opencl_find_rst_legendre (void *rst, void *pt_x, void *pt_y, void *pt_z, void *x_hat, void *y_hat, void *z_hat, void *resx, void *resy, void *resz, int *lx, void *el_ids, int *n_pt, real *tol, void *conv_pts)
 

Macro Definition Documentation

◆ CASE

#define CASE (   LX)
Value:
case LX: \
{ \
CL_CHECK(clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *) &rst)); \
CL_CHECK(clSetKernelArg(kernel, 1, sizeof(cl_mem), (void *) &pt_x)); \
CL_CHECK(clSetKernelArg(kernel, 2, sizeof(cl_mem), (void *) &pt_y)); \
CL_CHECK(clSetKernelArg(kernel, 3, sizeof(cl_mem), (void *) &pt_z)); \
CL_CHECK(clSetKernelArg(kernel, 4, sizeof(cl_mem), (void *) &x_hat)); \
CL_CHECK(clSetKernelArg(kernel, 5, sizeof(cl_mem), (void *) &y_hat)); \
CL_CHECK(clSetKernelArg(kernel, 6, sizeof(cl_mem), (void *) &z_hat)); \
CL_CHECK(clSetKernelArg(kernel, 7, sizeof(cl_mem), (void *) &resx)); \
CL_CHECK(clSetKernelArg(kernel, 8, sizeof(cl_mem), (void *) &resy)); \
CL_CHECK(clSetKernelArg(kernel, 9, sizeof(cl_mem), (void *) &resz)); \
CL_CHECK(clSetKernelArg(kernel, 10, sizeof(cl_mem), (void *) &el_ids)); \
CL_CHECK(clSetKernelArg(kernel, 11, sizeof(int), n_pt)); \
CL_CHECK(clSetKernelArg(kernel, 12, sizeof(real), tol)); \
CL_CHECK(clSetKernelArg(kernel, 13, sizeof(cl_mem), (void *) &conv_pts));\
local_kstep, 0, NULL, NULL)); \
\
} \
break
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
double real
#define STR(X)
void * find_rst_legendre_program

◆ STR

#define STR (   X)    #X

Function Documentation

◆ opencl_find_rst_legendre()

void opencl_find_rst_legendre ( void rst,
void pt_x,
void pt_y,
void pt_z,
void x_hat,
void y_hat,
void z_hat,
void resx,
void resy,
void resz,
int lx,
void el_ids,
int n_pt,
real tol,
void conv_pts 
)

Fortran wrapper for local interpolation

Definition at line 55 of file local_interpolation.c.

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