Skip to content

Commit

Permalink
refactor: rename *.hip to *.cpp
Browse files Browse the repository at this point in the history
Building XSBench with HIP using the CUDA backend does not recognize
the file type .hip. Need to change to .cpp to compile.
  • Loading branch information
pranav-sivaraman committed Aug 15, 2023
1 parent 4e1fd33 commit f9b4f99
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions hip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f9b4f99

Please sign in to comment.