From f9b4f99d8e178c4c062a6996241c3e6d57357726 Mon Sep 17 00:00:00 2001 From: Pranav Sivaraman <14294205+pranav-sivaraman@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:59:41 +0530 Subject: [PATCH] refactor: rename *.hip to *.cpp Building XSBench with HIP using the CUDA backend does not recognize the file type .hip. Need to change to .cpp to compile. --- hip/{GridInit.hip => GridInit.cpp} | 0 hip/{Main.hip => Main.cpp} | 0 hip/Makefile | 16 ++++++++-------- hip/{Materials.hip => Materials.cpp} | 0 hip/{Simulation.hip => Simulation.cpp} | 0 hip/{XSutils.hip => XSutils.cpp} | 0 hip/{io.hip => io.cpp} | 0 7 files changed, 8 insertions(+), 8 deletions(-) rename hip/{GridInit.hip => GridInit.cpp} (100%) rename hip/{Main.hip => Main.cpp} (100%) rename hip/{Materials.hip => Materials.cpp} (100%) rename hip/{Simulation.hip => Simulation.cpp} (100%) rename hip/{XSutils.hip => XSutils.cpp} (100%) rename hip/{io.hip => io.cpp} (100%) diff --git a/hip/GridInit.hip b/hip/GridInit.cpp similarity index 100% rename from hip/GridInit.hip rename to hip/GridInit.cpp diff --git a/hip/Main.hip b/hip/Main.cpp similarity index 100% rename from hip/Main.hip rename to hip/Main.cpp diff --git a/hip/Makefile b/hip/Makefile index 49d373ba..ec68c6c4 100644 --- a/hip/Makefile +++ b/hip/Makefile @@ -14,14 +14,14 @@ PROFILE = no program = XSBench source = \ -Main.hip \ -io.hip \ -Simulation.hip \ -GridInit.hip \ -XSutils.hip \ -Materials.hip +Main.cpp \ +io.cpp \ +Simulation.cpp \ +GridInit.cpp \ +XSutils.cpp \ +Materials.cpp -obj = $(source:.hip=.o) +obj = $(source:.cpp=.o) #=============================================================================== # Sets Flags @@ -62,7 +62,7 @@ endif $(program): $(obj) XSbench_header.h Makefile $(CC) $(CFLAGS) $(obj) -o $@ $(LDFLAGS) -%.o: %.hip XSbench_header.h Makefile +%.o: %.cpp XSbench_header.h Makefile $(CC) $(CFLAGS) -c $< -o $@ clean: diff --git a/hip/Materials.hip b/hip/Materials.cpp similarity index 100% rename from hip/Materials.hip rename to hip/Materials.cpp diff --git a/hip/Simulation.hip b/hip/Simulation.cpp similarity index 100% rename from hip/Simulation.hip rename to hip/Simulation.cpp diff --git a/hip/XSutils.hip b/hip/XSutils.cpp similarity index 100% rename from hip/XSutils.hip rename to hip/XSutils.cpp diff --git a/hip/io.hip b/hip/io.cpp similarity index 100% rename from hip/io.hip rename to hip/io.cpp