Skip to content

Instantly share code, notes, and snippets.

@v0dro
Created September 18, 2018 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0dro/fde613526889c6e53c24dd01b730f81b to your computer and use it in GitHub Desktop.
Save v0dro/fde613526889c6e53c24dd01b730f81b to your computer and use it in GitHub Desktop.
SLATE makefile
CXX = /usr/bin/mpicxx -g -Wall -fPIC -std=c++11 -O0 -fopenmp -lm -I/home/sameer/gitrepos/slate/blaspp/include -I/home/sameer/gitrepos/slate/lapackpp/include -I/home/sameer/gitrepos/slate/ -I /usr/include/mpi/
SOURCES = ../bin/libslate.a
.PHONY: clean
.cpp.o:
$(CXX) -c $? -o $@
slate_lu: slate_lu.o $(SOURCES)
$(CXX) $(CXXFLAGS) $? -lblas -lgfortran
/usr/bin/mpirun -np 4 xterm -e gdb ./a.out
clean:
rm -f *.o *.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment