Skip to content

Commit 1a8ee40

Browse files
authored
Merge pull request #150 from AutoModality/NO-GPU-MONITORING
feat: gpu monitoring is removed
2 parents b9bc34c + d0094e3 commit 1a8ee40

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

CMakeLists.txt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ find_package(catkin REQUIRED
1818
am_rostest
1919
)
2020

21-
find_package(CUDA)
21+
#find_package(CUDA)
2222

23-
if(CUDA_FOUND)
24-
add_definitions(-DCUDA_FLAG)
25-
message([STATUS] "CUDA FOUND, am_super will be built with GPU monitoring")
26-
SET(CUDA_NVCC_FLAGS "-arch=sm_62" CACHE STRING "nvcc flags" FORCE)
27-
SET(CUDA_VERBOSE_BUILD ON CACHE BOOL "nvcc verbose" FORCE)
28-
CUDA_ADD_LIBRARY(cuda_utility ${LIB_TYPE} src/cuda/cuda_utility.cu)
29-
endif(CUDA_FOUND)
23+
#if(CUDA_FOUND)
24+
# add_definitions(-DCUDA_FLAG)
25+
# message([STATUS] "CUDA FOUND, am_super will be built with GPU monitoring")
26+
# SET(CUDA_NVCC_FLAGS "-arch=sm_62" CACHE STRING "nvcc flags" FORCE)
27+
# SET(CUDA_VERBOSE_BUILD ON CACHE BOOL "nvcc verbose" FORCE)
28+
# CUDA_ADD_LIBRARY(cuda_utility ${LIB_TYPE} src/cuda/cuda_utility.cu)
29+
#endif(CUDA_FOUND)
3030

3131

3232
## System dependencies are found with CMake's conventions
@@ -134,13 +134,16 @@ add_library(super_lib
134134
target_link_libraries(super_lib ${catkin_LIBRARIES})
135135
add_dependencies(super_lib ${catkin_EXPORTED_TARGETS})
136136

137-
if(CUDA_FOUND)
138-
add_executable(am_super ${am_super_cpp_files} ${cuda_cpp_files} )
139-
target_link_libraries(am_super ${catkin_LIBRARIES} super_lib cuda_utility)
140-
else()
141-
add_executable(am_super ${am_super_cpp_files})
142-
target_link_libraries(am_super ${catkin_LIBRARIES} super_lib)
143-
endif(CUDA_FOUND)
137+
#if(CUDA_FOUND)
138+
# add_executable(am_super ${am_super_cpp_files} ${cuda_cpp_files} )
139+
# target_link_libraries(am_super ${catkin_LIBRARIES} super_lib cuda_utility)
140+
#else()
141+
# add_executable(am_super ${am_super_cpp_files})
142+
# target_link_libraries(am_super ${catkin_LIBRARIES} super_lib)
143+
#endif(CUDA_FOUND)
144+
145+
add_executable(am_super ${am_super_cpp_files})
146+
target_link_libraries(am_super ${catkin_LIBRARIES} super_lib)
144147
add_dependencies(am_super ${catkin_EXPORTED_TARGETS})
145148

146149
#############

0 commit comments

Comments
 (0)