tBuild type now set in root CMakeLists.txt - sphere - GPU-based 3D discrete ele… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit bfa63efbda90b8d4ae3d19bbb6c1e5fff2dbf9ee | |
parent 2d36d70bf1e5d751356dbb2ac30991303e1b4430 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 19 Dec 2012 13:32:57 +0100 | |
Build type now set in root CMakeLists.txt | |
Diffstat: | |
M CMakeLists.txt | 2 ++ | |
M src/CMakeLists.txt | 10 +--------- | |
2 files changed, 3 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
t@@ -15,6 +15,8 @@ FIND_PACKAGE(CUDA) | |
# Find OpenMP | |
FIND_PACKAGE(OpenMP) | |
+#SET(CMAKE_BUILD_TYPE Debug) | |
+SET(CMAKE_BUILD_TYPE Release) | |
#Add source directory to project. | |
ADD_SUBDIRECTORY(src) | |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |
t@@ -1,8 +1,3 @@ | |
-# Create input/output folders | |
-FILE(MAKE_DIRECTORY input) | |
-FILE(MAKE_DIRECTORY output) | |
-FILE(MAKE_DIRECTORY img_out) | |
- | |
# Link with libcutil (expected to be in ${CUDA_SDK_ROOT_DIR}/C/lib) | |
#LINK_LIBRARIES("-L${CUDA_SDK_ROOT_DIR}/lib -lcutil") # For 32 bit syst… | |
LINK_LIBRARIES("-L${CUDA_SDK_ROOT_DIR}/lib -lcutil_x86_64") # For 64 bit syste… | |
t@@ -16,10 +11,7 @@ INCLUDE(FindCUDA) | |
# Additional NVCC command line arguments | |
# NOTE: Multiple arguments must be semi-colon selimited | |
-SET(CUDA_NVCC_FLAGS "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20… | |
-#SET(CUDA_NVCC_FLAGS "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_2… | |
- | |
- | |
+SET(CUDA_NVCC_FLAGS "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20… | |
# Rule to build executable program | |
CUDA_ADD_EXECUTABLE(../sphere main.cpp file_io.cpp sphere.cpp device.cu utilit… |