Permalink
Browse files

wrote the vector addition, linking problems with opencl lib

  • Loading branch information...
yglee committed Sep 4, 2012
1 parent 705cf0e commit 5f62acb9bb5a37535d5f703a3db4651eeb77fd24
Showing with 88 additions and 698 deletions.
  1. +12 −3 testcode/CMakeLists.txt
  2. +4 −546 testcode/openCLWrapper.cpp
  3. +4 −90 testcode/openCLWrapper.h
  4. +68 −59 testcode/test_main.cc
View
@@ -2,10 +2,19 @@ include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(${OPENCL_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
+add_library(OPENCLWRAPPER
+ openCLWrapper.cpp
+)
+
install(FILES
- vector_add_cpu.h
- DESTINATION include/fslam/test # core
+ openCLWrapper.h
+ DESTINATION include/fslam/test
)
-set(FSLAM_USED_LIBS ${OPENCL_LIBRARIES})
+install(TARGETS
+ OPENCLWRAPPER
+ DESTINATION lib
+)
+
+set(FSLAM_USED_LIBS ${OPENCL_LIBRARIES} OPENCLWRAPPER)
add_fslam_tool(fslam_gpu test_main.cc)
Oops, something went wrong.

0 comments on commit 5f62acb

Please sign in to comment.