tBuild type now set in root CMakeLists.txt - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit bfa63efbda90b8d4ae3d19bbb6c1e5fff2dbf9ee
 (DIR) parent 2d36d70bf1e5d751356dbb2ac30991303e1b4430
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       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(-)
       ---
 (DIR) 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)
 (DIR) 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 systems
        LINK_LIBRARIES("-L${CUDA_SDK_ROOT_DIR}/lib -lcutil_x86_64") # For 64 bit systems
       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,compute_20\"")  # without debug flags
       -#SET(CUDA_NVCC_FLAGS "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\"-g;-G")   # with debug flags
       -
       -
       +SET(CUDA_NVCC_FLAGS "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\"")
        
        # Rule to build executable program 
        CUDA_ADD_EXECUTABLE(../sphere main.cpp file_io.cpp sphere.cpp device.cu utility.cu)