File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ if(NOT ENABLE_CUDA)
1616 set (ENABLE_CUDA NO )
1717endif ()
1818
19+ #CONDITIONAL FLAG to turn on the performance metrics
20+ if (NOT PERFORMANCE_METRICS)
21+ set (PERFORMANCE_METRICS NO )
22+ endif ()
1923
2024############################################################################################
2125#CONDITIONAL FLAG to change target architecture for the GPU simulator from the default
@@ -37,6 +41,8 @@ endif()
3741if (ENABLE_CUDA)
3842 message ("\n ----Generating Makefile for Graphitti GPU version----" )
3943 project (Graphitti LANGUAGES CXX CUDA C)
44+ #Verify CUDA package is present
45+ find_Package (CUDA REQUIRED)
4046#Set the USE_GPU preprocessor macro so that GPU code will be compiled.
4147 add_compile_definitions (USE_GPU)
4248#Specify the CUDA architecture / gencode that will be targeted
@@ -80,7 +86,7 @@ endif()
8086# If you don't want to pass in the build type flag, you can edit this file and add...
8187# set(CMAKE_BUILD_TYPE "Debug") or whichever build type you want
8288# -----------------------------------------------------------------------------
83- set (CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRel; Profiling" CACHE STRING "Supported build types" FORCE)
89+ set (CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;Profiling" CACHE STRING "Supported build types" FORCE)
8490
8591# Ensure single-config generators use a valid default
8692if (NOT CMAKE_BUILD_TYPE )
You can’t perform that action at this time.
0 commit comments