Adding code to a custom APEX2 kernel

Prior to programming your APEX2 kernel, you need to emit the ACF source files in the related graph project. This procedure is described in topic Emitting the source code.

To program logic of your APEX2 kernel:
  1. In the Project Explorer, expand the project folder and go to APU_kernels > <KernelName>_user_kernels > src.
    APU_kernels > user_kernels > src
  2. The src folder includes the following generated source code files:
    • <kernel_name>_user_kernel_acf.cpp and <kernel_name>_user_kernel_acf.h - contain the kernel ACF wrappers.
    • <kernel_name>_user_kernel_apu.cpp and <kernel_name>_user_kernel_apu.h - contain the kernel code to be executed on APEX2;

    You can add code to all these files, but three of them have special space between the //Start of user code and //End of user code lines.

    add code

    Note: For more information about programming ACF kernels, refer to the ACF user documentation.