Commit 29823d2cc2dd5da7870f1b9247f69364f2ec0c29

Authored by David Mayerich
0 parents

added source code

Showing 4 changed files with 52 additions and 0 deletions   Show diff stats
.gitmodules 0 โ†’ 100644
  1 +++ a/.gitmodules
  1 +[submodule "stim"]
  2 + path = stim
  3 + url = https://github.com/dmayerich/stim.git
... ...
CMakeLists.txt 0 โ†’ 100644
  1 +++ a/CMakeLists.txt
  1 +#Specify the version being used aswell as the language
  2 +cmake_minimum_required(VERSION 2.8)
  3 +
  4 +#Name your project here
  5 +project(volume-spider)
  6 +
  7 +#set the module directory
  8 +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
  9 +
  10 +#find OpenCV
  11 +find_package(OpenCV REQUIRED )
  12 +
  13 +#find cuda
  14 +find_package(CUDA REQUIRED)
  15 +
  16 +#find the pthreads package
  17 +find_package(Threads)
  18 +
  19 +#find the X11 package
  20 +find_package(X11)
  21 +
  22 +#include directories
  23 +#include_directories(${CUDA_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
  24 +
  25 +#Assign source files to the appropriate variables
  26 +file(GLOB SRC_CPP "*.cpp")
  27 +file(GLOB SRC_H "*.h")
  28 +file(GLOB SRC_CU "*.cu")
  29 +
  30 +#create an executable file
  31 +cuda_add_executable(volume-spider
  32 + ${SRC_H}
  33 + ${SRC_CPP}
  34 + ${SRC_CU})
  35 +
  36 +#set the link libraries
  37 +target_link_libraries(volume-spider ${OpenCV_LIBS}
  38 + ${CUDA_cublas_LIBRARY}
  39 + ${CMAKE_THREAD_LIBS_INIT}
  40 + ${X11_LIBRARIES})
0 41 \ No newline at end of file
... ...
main.cu 0 โ†’ 100644
  1 +++ a/main.cu
  1 +#include <iostream>
  2 +
  3 +int main(){
  4 +
  5 + std::cout<<"Hello world!"<<std::endl;
  6 +
  7 + return 0;
  8 +}
0 9 \ No newline at end of file
... ...
  1 +++ a/stim
  1 +Subproject commit 081f2c9ffd1bbbd8fc50efef8576f6df8fc1176f
... ...