GPU CUDA Header Files

The GPU CUDA Header files are not required to develop a CUDA API plugin, but can be used for a better editing experience including syntax highlighting and Intellisense. They also allow API users to quickly get the most recent versions of the various CUDA functions that have been added in between releases. The Header files for the EDEM CUDA API are now located at: INSTALL_DIRECTORY\EDEM\src\Api\Cuda.

To use these Header files:
  1. Copy the example file examplePlugin.cu to a location in your documents where you are developing the plugin.
  2. Rename the file based on the plugin that you are developing.
    Note: The name must match the name specified by the getGpuFileName function in the CPU part of the plugin.
  3. Open the file with your code editor and add it to the project if your code editor uses a project system.
  4. Add an include directory path in the code editor linking to the folder INSTALL_DIRECTORY\EDEM\src\Api\Cuda.
    This is required to resolve the #include directives in the example plugin file.
  5. Set the code editor options to interpret *.cu and *.cuh files as c++ files.
  6. Prototype a CUDA plugin with syntax highlighting and intellisense available.
    Note: Installation of the CUDA toolkit is not mandatory.