Neko 1.99.11
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 <stdlib.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)
#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_kernel kernel = clCreateKernel(fdm_program, \
STR(fdm_do_fast_kernel_nl##NL), &err); \
CL_CHECK(err); \
\
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)); \
\
CL_CHECK(clEnqueueNDRangeKernel(cmd_queue, kernel, \
1, NULL, &global_item_size, \
&local_item_size, 0, NULL, NULL)); \
CL_CHECK(clReleaseKernel(kernel)); \
} \
break
const int e
#define STR(X)
void * fdm_program

◆ STR

#define STR ( X)
Value:
#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 50 of file fdm.c.

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