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. --- hello/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hello/CMakeLists.txt (limited to 'hello/CMakeLists.txt') diff --git a/hello/CMakeLists.txt b/hello/CMakeLists.txt new file mode 100644 index 0000000..e4b4acc --- /dev/null +++ b/hello/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.28) + +project(cuda_hello LANGUAGES CUDA CXX) + +add_executable(cuda_hello + hello.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(cuda_hello PRIVATE -Wall -Wextra -Wno-pedantic) -- cgit v1.2.3