Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
fdm.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 "fdm_kernel.cl.h"
Include dependency graph for fdm.c:

Go to the source code of this file.

Macros

#define STR(X)   #X
 
#define CASE(NL)
 

Functions

void opencl_fdm_do_fast (void *e, void *r, void *s, void *d, int *nl, int *nel, cl_command_queue cmd_queue)
 

Macro Definition Documentation

◆ CASE

#define CASE (   NL)
Value:
case NL: \
{ \
CL_CHECK(clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *) &e)); \
CL_CHECK(clSetKernelArg(kernel, 1, sizeof(cl_mem), (void *) &r)); \
CL_CHECK(clSetKernelArg(kernel, 2, sizeof(cl_mem), (void *) &s)); \
CL_CHECK(clSetKernelArg(kernel, 3, sizeof(cl_mem), (void *) &d)); \
} \
break
const int e
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
#define STR(X)
void * fdm_program

◆ STR

#define STR (   X)    #X

Function Documentation

◆ opencl_fdm_do_fast()

void opencl_fdm_do_fast ( void e,
void r,
void s,
void d,
int nl,
int nel,
cl_command_queue  cmd_queue 
)

Definition at line 49 of file fdm.c.

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