From 482a652b8b51512e20bcf2bd177b441066506608 Mon Sep 17 00:00:00 2001 From: Mike Kremer Date: Wed, 15 Jun 2011 16:28:11 +0000 Subject: [PATCH] Added optimizations for cuda compiler if in release mode. git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11814 383ad7c9-94d9-4d36-a494-682f7c89f535 --- cmake/plugin.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake index 05562552..91ed5344 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -479,7 +479,7 @@ function (_build_openflipper_plugin plugin) CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS} OPTIONS -g -G --device-emulation -Xcompiler) else() message("Compiling cuda sources in release mode") - CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS}) + CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS} OPTIONS -O2) endif() # Create the library containing all cuda files -- GitLab