Files
perfect/examples/CMakeLists.txt
Carl Pearson 714f7c3dcd Squashed commit of the following:
commit 2ac5b61d544fb46a7f74e62729882ba15100bf1f
Author: Carl Pearson <pearson@illinois.edu>
Date:   Fri Sep 20 14:53:10 2019 -0500

    changelog in readme

commit 1072efa135c840753892d350985129d6ebc88e7e
Author: Carl Pearson <pearson@illinois.edu>
Date:   Fri Sep 20 14:50:09 2019 -0500

    clean up gpu_monitor example

commit a8b111a84e61d466d1eb3f4ed9133b428f775714
Author: Carl Pearson <pearson@illinois.edu>
Date:   Fri Sep 20 14:47:52 2019 -0500

    add examples/gpu_monitor

commit b0a46680c666c06119d74d462acb2e9a69bf7d85
Author: Carl Pearson <pearson@illinois.edu>
Date:   Fri Sep 20 14:46:12 2019 -0500

    update readme

commit b8d29e4d89b5ca0e7fffe71dc969e44cbbd53ab9
Author: Carl Pearson <pearson@illinois.edu>
Date:   Fri Sep 20 14:41:27 2019 -0500

    add GPU monitor
2019-09-20 14:53:27 -05:00

59 lines
1.3 KiB
CMake

# removed -Wredundant-decls for cuda 10.1
# removed -Wundef for cuda 10.0
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} \
-Xcompiler=-Wall\
-Xcompiler=-Wextra\
-Xcompiler=-Wcast-qual \
-Xcompiler=-Wcast-align \
-Xcompiler=-Wstrict-aliasing \
-Xcompiler=-Wpointer-arith \
-Xcompiler=-Winit-self \
-Xcompiler=-Wshadow \
-Xcompiler=-Wswitch-enum \
-Xcompiler=-Wfloat-equal \
-Xcompiler=-Wvla\
-Xcompiler=-fmax-errors=1 \
-Xcompiler=-Wfatal-errors\
")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-Wredundant-decls \
-Wundef \
-Wall\
-Wextra\
-Wcast-qual \
-Wcast-align \
-Wstrict-aliasing \
-Wpointer-arith \
-Winit-self \
-Wshadow \
-Wswitch-enum \
-Wfloat-equal \
-Wvla\
-fmax-errors=1 \
-Wfatal-errors\
")
add_executable(cpu-cache cpu_cache.cpp)
target_link_libraries(cpu-cache perfect)
add_executable(cpu-turbo cpu_turbo.cpp)
target_link_libraries(cpu-turbo perfect)
add_executable(os-perf os_perf.cpp)
target_link_libraries(os-perf perfect)
if(CMAKE_CUDA_COMPILER)
add_executable(gpu-clocks gpu_clocks.cu)
target_link_libraries(gpu-clocks perfect)
endif()
if(CMAKE_CUDA_COMPILER)
add_executable(gpu-turbo gpu_turbo.cu)
target_link_libraries(gpu-turbo perfect)
endif()
if(CMAKE_CUDA_COMPILER)
add_executable(gpu-power gpu_power.cu)
target_link_libraries(gpu-power perfect)
endif()