From 50a774eddcee2dfc40308820b788cae5d721e18c Mon Sep 17 00:00:00 2001
From: Prateek Chawla
Date: Thu, 26 Mar 2026 17:25:56 +0100
Subject: [PATCH] updates to work with cuda 13
Signed-off-by: Prateek Chawla
---
.../.master/Makefile.in | 6 +++---
.../.master/jacobi.cpp | 2 +-
.../solutions/Makefile | 6 +++---
.../solutions/jacobi.cpp | 2 +-
.../tasks/Makefile | 6 +++---
.../tasks/jacobi.cpp | 2 +-
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/.master/Makefile.in b/06-H_Overlap_Communication_and_Computation_MPI/.master/Makefile.in
index b7ce7a5..271d5f7 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/.master/Makefile.in
+++ b/06-H_Overlap_Communication_and_Computation_MPI/.master/Makefile.in
@@ -22,9 +22,9 @@ ifdef DISABLE_CUB
else
NVCC_FLAGS = -DHAVE_CUB
endif
-NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++14
-MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++14
-LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart -lnvToolsExt
+NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++17 -I$(CUDA_HOME)/include
+MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++17
+LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart
jacobi: Makefile jacobi.cpp jacobi_kernels.o
$(MPICXX) $(MPICXX_FLAGS) jacobi.cpp jacobi_kernels.o $(LD_FLAGS) -o jacobi
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/.master/jacobi.cpp b/06-H_Overlap_Communication_and_Computation_MPI/.master/jacobi.cpp
index f2fc1e6..9200097 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/.master/jacobi.cpp
+++ b/06-H_Overlap_Communication_and_Computation_MPI/.master/jacobi.cpp
@@ -56,7 +56,7 @@
#include
#ifdef USE_NVTX
-#include
+#include
const uint32_t colors[] = {0x0000ff00, 0x000000ff, 0x00ffff00, 0x00ff00ff,
0x0000ffff, 0x00ff0000, 0x00ffffff};
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/solutions/Makefile b/06-H_Overlap_Communication_and_Computation_MPI/solutions/Makefile
index a8ee71a..e2a83e3 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/solutions/Makefile
+++ b/06-H_Overlap_Communication_and_Computation_MPI/solutions/Makefile
@@ -22,9 +22,9 @@ ifdef DISABLE_CUB
else
NVCC_FLAGS = -DHAVE_CUB
endif
-NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++14
-MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++14
-LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart -lnvToolsExt
+NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++17 -I$(CUDA_HOME)/include
+MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++17
+LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart
jacobi: Makefile jacobi.cpp jacobi_kernels.o
$(MPICXX) $(MPICXX_FLAGS) jacobi.cpp jacobi_kernels.o $(LD_FLAGS) -o jacobi
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/solutions/jacobi.cpp b/06-H_Overlap_Communication_and_Computation_MPI/solutions/jacobi.cpp
index 4a20af1..961171e 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/solutions/jacobi.cpp
+++ b/06-H_Overlap_Communication_and_Computation_MPI/solutions/jacobi.cpp
@@ -56,7 +56,7 @@
#include
#ifdef USE_NVTX
-#include
+#include
const uint32_t colors[] = {0x0000ff00, 0x000000ff, 0x00ffff00, 0x00ff00ff,
0x0000ffff, 0x00ff0000, 0x00ffffff};
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/tasks/Makefile b/06-H_Overlap_Communication_and_Computation_MPI/tasks/Makefile
index 36da1bf..cf4eab5 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/tasks/Makefile
+++ b/06-H_Overlap_Communication_and_Computation_MPI/tasks/Makefile
@@ -22,9 +22,9 @@ ifdef DISABLE_CUB
else
NVCC_FLAGS = -DHAVE_CUB
endif
-NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++14
-MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++14
-LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart -lnvToolsExt
+NVCC_FLAGS += -lineinfo $(GENCODE_FLAGS) -std=c++17 -I$(CUDA_HOME)/include
+MPICXX_FLAGS = -DUSE_NVTX -I$(CUDA_HOME)/include -std=c++17
+LD_FLAGS = -L$(CUDA_HOME)/lib64 -lcudart
jacobi: Makefile jacobi.cpp jacobi_kernels.o
$(MPICXX) $(MPICXX_FLAGS) jacobi.cpp jacobi_kernels.o $(LD_FLAGS) -o jacobi
diff --git a/06-H_Overlap_Communication_and_Computation_MPI/tasks/jacobi.cpp b/06-H_Overlap_Communication_and_Computation_MPI/tasks/jacobi.cpp
index 4f9026b..9298be5 100644
--- a/06-H_Overlap_Communication_and_Computation_MPI/tasks/jacobi.cpp
+++ b/06-H_Overlap_Communication_and_Computation_MPI/tasks/jacobi.cpp
@@ -56,7 +56,7 @@
#include
#ifdef USE_NVTX
-#include
+#include
const uint32_t colors[] = {0x0000ff00, 0x000000ff, 0x00ffff00, 0x00ff00ff,
0x0000ffff, 0x00ff0000, 0x00ffffff};