Commit bfb283bf authored by Misbah Mubarak's avatar Misbah Mubarak

(1) adding sample codes example and (2) updating codes best practices document...

(1) adding sample codes example and (2) updating codes best practices document with the CODES example
parent f39b6eb2
This diff is collapsed.
all: check example.o example
CFLAGS= -Wall
CC=mpicc
check: check-env
@echo CODESBASE: $(CODESBASE)
@echo CODESNET: $(CODESNET)
@echo ROSS: $(ROSS)
example.o: example.c
$(CC) -c $(CFLAGS) -I$(ROSS)/include -I$(CODESBASE)/include -I$(CODESNET)/include example.c
example: example.o
$(CC) $(CFLAGS) example.o -o example -L$(ROSS)/lib -lROSS -lm -L$(CODESBASE)/lib -lcodes-base -L$(CODESNET)/lib -lcodes-net
check-env:
ifndef CODESBASE
$(error CODESBASE is undefined, see README.txt)
endif
ifndef CODESNET
$(error CODESNET is undefined, see README.txt)
endif
ifndef ROSS
$(error ROSS is undefined, see README.txt)
endif
This diff is collapsed.
LPGROUPS
{
MODELNET_GRP
{
repetitions="16";
server="1";
modelnet_simplenet="1";
}
}
PARAMS
{
packet_size="512";
message_size="256";
modelnet="simplenet";
net_startup_ns="1.5";
net_bw_mbps="20000";
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment