Load the ParticlesOCL.cl from memory, using the MSTRINGIFY macro, instead of loading it from disk.

Small cleanup of cmake build for NVIDIA and AMD OpenCL

For AMD Stream SDK use:
INCLUDE_DIRECTORIES( ${AMD_OPENCL_INCLUDES} )
LINK_LIBRARIES( ${CMAKE_ATISTREAMSDK_LIBPATH}/OpenCL.lib )

For NVIDIA CUDA SDK:
INCLUDE_DIRECTORIES( ${NVIDIA_OPENCL_INCLUDES} )
LINK_LIBRARIES( ${NVIDIA_OPENCL_LIBRARIES})
This commit is contained in:
erwin.coumans
2010-09-09 23:07:23 +00:00
parent cb2de12243
commit 5b34356c43
12 changed files with 89 additions and 153 deletions

View File

@@ -16,6 +16,9 @@ subject to the following restrictions:
#include <MiniCL/cl_MiniCL_Defs.h>
#define MSTRINGIFY(A) A
#define LOCAL_SIZE_MAX 1024U
#include "../ParticlesOCL.cl"
MINICL_REGISTER(kComputeCellId)