Skip to content

Commit

Permalink
Add Kokkos Makefile for CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdeakin committed Nov 22, 2016
1 parent b3cf999 commit edd65da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions KokkosCPUMakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

default: gpu-stream-kokkos

include $(KOKKOS_PATH)/Makefile.kokkos

gpu-stream-kokkos: main.o KOKKOSStream.o
$(CXX) $(KOKKOS_LDFLAGS) $^ $(KOKKOS_LIBS) -o $@ -DKOKKOS -DKOKKOS_TARGET_CPU -O3

%.o:%.cpp $(KOKKOS_CPP_DEPENDS)
$(CXX) $(KOKKOS_CPPFLAGS) $(KOKKOS_CXXFLAGS) -c $< -DKOKKOS -DKOKKOS_TARGET_CPU -O3

0 comments on commit edd65da

Please sign in to comment.