Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
f25d0aa9
Commit
f25d0aa9
authored
Mar 21, 2001
by
Christopher Alfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turned optimal heuristics back on in assign.
parent
f064c9e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
assign/GNUmakefile.in
assign/GNUmakefile.in
+2
-2
assign/assign.cc
assign/assign.cc
+3
-2
No files found.
assign/GNUmakefile.in
View file @
f25d0aa9
...
...
@@ -19,8 +19,8 @@ LIBS+=-L${LEDA} -lD3 -lW -lP -lG -lL -L/usr/X11R6/lib -lX11 -lm -L.
LDFLAGS+= -O3 -fomit-frame-pointer -m486
CXXFLAGS = -I${LEDA}/incl
# Pick one of the two below.
CXXFLAGS += -Wall -O3 -fomit-frame-pointer -m486
#CXXFLAGS += -O0 -g -Wall -DSCORE_DEBUG -DVERBOSE -DSCORE_DEBUG_MORE
CXXFLAGS += -Wall -O3 -fomit-frame-pointer -m486
-DUSE_OPTIMAL
#CXXFLAGS += -O0 -g -Wall -DSCORE_DEBUG -DVERBOSE -DSCORE_DEBUG_MORE
-DUSE_OPTIMAL
DEPLIBS=$(OBJS)
assign: ${DEPLIBS} ${OBJS} assign.o
...
...
assign/assign.cc
View file @
f25d0aa9
...
...
@@ -20,14 +20,15 @@
#include "score.h"
// Purely heuristic
/*
#ifdef USE_OPTIMAL
#define OPTIMAL_SCORE(edges,nodes) (nodes*SCORE_PNODE + \
nodes/5.0*SCORE_SWITCH + \
edges*((SCORE_INTRASWITCH_LINK+ \
SCORE_DIRECT_LINK*2)*4+\
SCORE_INTERSWITCH_LINK)/5.0)
*/
#else
#define OPTIMAL_SCORE(edges,nodes) 0
#endif
tb_pgraph
PG
(
1
,
1
);
tb_vgraph
G
(
1
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment