Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ raja-stream
kokkos-stream
sycl-stream
hip-stream
poplar-stream

*.o
*.bc
*.sycl
*.gc
*.tar
*.gz

.DS_Store

Makefile

vars.capnp
graph.json
execution.json
*.csv
arhive.a
*.gp
popops-stream
39 changes: 39 additions & 0 deletions Poplar.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
ifndef COMPILER
define compiler_help
Set COMPILER to change flags (defaulting to GNU).
Available compilers are:
GNU

endef
$(info $(compiler_help))
COMPILER=GNU
endif

COMPILER_GNU = g++
CXX = $(COMPILER_$(COMPILER))

FLAGS_ = -O3 -std=c++17 -Wall
FLAGS_GNU = -O3 -std=c++17 -Wall
CXXFLAGS=$(FLAGS_$(COMPILER))

PLATFORM = $(shell uname -s)
LIBS = -lpoplar -lpopops -lpoputil


.PHONY: all
all: poplar-stream popops-stream poplar-stream-vectorised

.PHONY: clean
clean:
rm -f poplar-stream popops-stream poplar-stream-vectorised PoplarKernels.gc

poplar-stream: main.cpp PoplarStream.cpp
$(CXX) $(CXXFLAGS) -DPOPLAR $^ $(EXTRA_FLAGS) $(LIBS) -o $@

poplar-stream-vectorised: main.cpp PoplarStream.cpp
$(CXX) $(CXXFLAGS) -DPOPLAR -DVECTORISED=true $^ $(EXTRA_FLAGS) $(LIBS) -o $@

popops-stream: main.cpp PopopsStream.cpp
$(CXX) $(CXXFLAGS) -DPOPLAR $^ $(EXTRA_FLAGS) $(LIBS) -o $@


Loading