From 8401c970ece366592dcbfaa0affe1a1a1bc18ac8 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 18 Jan 2026 19:54:32 +0000 Subject: CUDA Interop, baby. --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index edc3723..2b7dcf0 100644 --- a/src/main.c +++ b/src/main.c @@ -48,6 +48,7 @@ void print_usage() printf(" -q, --quiet Quiet output\n"); printf(" -c Compile only (produce .o)\n"); printf(" --cpp Use C++ mode.\n"); + printf(" --cuda Use CUDA mode (requires nvcc).\n"); } int main(int argc, char **argv) @@ -147,6 +148,12 @@ int main(int argc, char **argv) strcpy(g_config.cc, "g++"); g_config.use_cpp = 1; } + else if (strcmp(arg, "--cuda") == 0) + { + strcpy(g_config.cc, "nvcc"); + g_config.use_cuda = 1; + g_config.use_cpp = 1; // CUDA implies C++ mode + } else if (strcmp(arg, "--check") == 0) { g_config.mode_check = 1; -- cgit v1.2.3