Skip to content

Commit 424f6c2

Browse files
revert changes to support legacy cuda
1 parent 4beaaba commit 424f6c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if(NOT ENABLE_CUDA)
1616
set(ENABLE_CUDA NO)
1717
endif()
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()
3741
if(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
8692
if(NOT CMAKE_BUILD_TYPE)

0 commit comments

Comments
 (0)