From 77565add6e648575f6b1adb5228a4c11048320bf Mon Sep 17 00:00:00 2001 From: Nick Curtis Date: Thu, 7 Apr 2022 17:54:20 -0400 Subject: [PATCH] Add C++14 to Makefile build system Change-Id: I24f72b4aaca93a49877775c3d181507c83cd7f82 --- lib/gpu/Makefile.hip | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/gpu/Makefile.hip b/lib/gpu/Makefile.hip index d5391f7d6b..9b6087bcc3 100644 --- a/lib/gpu/Makefile.hip +++ b/lib/gpu/Makefile.hip @@ -28,6 +28,11 @@ HIP_HOST_INCLUDE += -I./ # path to hipcub HIP_HOST_INCLUDE += -I$(HIP_PATH)/../include +ifeq (amd,$(HIP_PLATFORM)) + # newer version of ROCm (5.1+) require c++14 for rocprim + HIP_OPTS += -std=c++14 +endif + # use mpi HIP_HOST_OPTS += -DMPI_GERYON -DUCL_NO_EXIT # this settings should match LAMMPS Makefile