Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Dwojak <t.dwojak@amu.edu.pl>2016-10-10 12:10:50 +0300
committerTomasz Dwojak <t.dwojak@amu.edu.pl>2016-10-10 12:10:50 +0300
commit34f9c5b9eea4c39f5ad357e12fe428206254ca9b (patch)
tree4ee995e80012bf86185033ec281bdb8049feea47 /CMakeLists.txt
parent739c2ba335c01175983716f7eb3fabb8f1fa61e5 (diff)
[issue 13] Change -DNOCUDA to -DCUDA
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5201d1b7..95d13e6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,12 +8,12 @@ SET(CMAKE_CXX_FLAGS " -std=c++14 -m64 -flto -march=native -fPIC -g -O3 -Ofast -f
include_directories(${amunmt_SOURCE_DIR})
-set(NOCUDA OFF CACHE BOOL "Compile without CUDA")
+set(CUDA ON CACHE BOOL "Compile without CUDA")
-if(NOCUDA)
+if(NOT CUDA)
message("-- Forcing compilation without CUDA.")
add_definitions(-DNO_CUDA)
-else(NOCUDA)
+else(NOT CUDA)
find_package(CUDA)
if(CUDA_FOUND)
LIST(APPEND CUDA_NVCC_FLAGS --default-stream per-thread; -std=c++11; -g; -O3; -arch=sm_35; -lineinfo; --use_fast_math;)
@@ -24,7 +24,7 @@ else(CUDA_FOUND)
add_definitions(-DNO_CUDA)
message("Cannot find CUDA libraries. Compiling without them." )
endif(CUDA_FOUND)
-endif(NOCUDA)
+endif(NOT CUDA)
find_package(Boost COMPONENTS system filesystem program_options timer iostreams python thread)
if(Boost_FOUND)