Skip to content

Instantly share code, notes, and snippets.

@leVirve
Last active October 20, 2015 14:05
Show Gist options
  • Save leVirve/38121ce4641eee4dd490 to your computer and use it in GitHub Desktop.
Save leVirve/38121ce4641eee4dd490 to your computer and use it in GitHub Desktop.
CFLAGS = -std=c11 -O3
CPPFLAGS = -O3
LOGFLAGS = -D_DEBUG -D_INFO -D_FILE_DEBUG
OUTPUT = debug_job.* judge_out_* *.o *.result
all: clean advanced submit
basic:
mpicc -o basic.o basic.c $(CFLAGS) $(LOGFLAGS)
advanced:
mpic++ -o basic.o advanced.cpp $(CPPFLAGS) $(LOGFLAGS)
submit:
qsub ./test_job.sh
result:
qstat -a
cat debug_job.*
clean:
-@rm $(OUTPUT) 2>/dev/null || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment