summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorroot <root@ipepdvdev1.ipe.kit.edu>2016-05-25 06:35:59 +0200
committerroot <root@ipepdvdev1.ipe.kit.edu>2016-05-25 06:35:59 +0200
commita6f3e96f2cafc183ab29e53007a86bb968d654b8 (patch)
tree5248f06934289d65e366507890ebac3c7a4816ab /CMakeLists.txt
parentca1b1cea796bcfaeb86f201cf35065a606921cc1 (diff)
downloadgdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.gz
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.bz2
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.xz
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.zip
Support bigger writes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f3369d9..1290255 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,10 +6,16 @@ set(IPECAMERA_ABI_VERSION "0")
cmake_minimum_required(VERSION 2.6)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-add_definitions("-fPIC --std=gnu99 -Wall -O2 -gdwarf-2 -g3 -fno-omit-frame-pointer")
+add_definitions("-fPIC --std=gnu99 -O2 -gdwarf-2 -g3 -fno-omit-frame-pointer")
find_package(CUDA REQUIRED)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_35,code=sm_35;-rdc=true)
+
+if (DEFINED SIZE)
+message(" * Setting size to ${SIZE}")
+set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-Xcompiler;-DSIZE=${SIZE})
+endif ()
+
set(CUDA_SEPARABLE_COMPILATION ON)