From c8be8496c8a15d0ede8338939a7512109b8e5e46 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Wed, 27 Nov 2024 13:41:09 -0800 Subject: Initial commit. --- vector_sum/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vector_sum/CMakeLists.txt (limited to 'vector_sum/CMakeLists.txt') diff --git a/vector_sum/CMakeLists.txt b/vector_sum/CMakeLists.txt new file mode 100644 index 0000000..1eea51b --- /dev/null +++ b/vector_sum/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.28) + +project(vector_sum LANGUAGES CUDA CXX) + +add_executable(vector_sum + main.cu) + +# -Wpedantic causes warnings due to nvcc emitting non-standard (gcc-specific) +# host code. +# https://stackoverflow.com/questions/31000996/warning-when-compiling-cu-with-wpedantic-style-of-line-directive-is-a-gcc-ex +target_compile_options(vector_sum PRIVATE -Wall -Wextra -Wno-pedantic) -- cgit v1.2.3