From a6f3e96f2cafc183ab29e53007a86bb968d654b8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 May 2016 06:35:59 +0200 Subject: Support bigger writes --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3