Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r532 - in branches/AFR: . Engine/ImageTraversers/AFR StandAlone
- Date: Tue, 6 Sep 2005 12:16:31 -0600 (MDT)
Author: abe
Date: Tue Sep 6 12:16:30 2005
New Revision: 532
Added:
branches/AFR/StandAlone/combinestreams.cpp
- copied unchanged from r531, branches/AFR/combinestreams.cpp
branches/AFR/StandAlone/streamtest.cpp
- copied, changed from r531, branches/AFR/streamtest.cpp
Removed:
branches/AFR/combinestreams.cpp
branches/AFR/streamtest.cpp
Modified:
branches/AFR/Engine/ImageTraversers/AFR/kdtree.cc
branches/AFR/StandAlone/CMakeLists.txt
branches/AFR/StandAlone/manta.cc
Log:
Moved combinestreams and streamtest into StandAlone/ directory and added them
to the cmake build.
Commented out cout messages from kdtree.cc--they all said the same thing
(quite a few times when
running with lots of processors)...
M StandAlone/manta.cc
A StandAlone/combinestreams.cpp
A StandAlone/streamtest.cpp
M StandAlone/CMakeLists.txt
D combinestreams.cpp
M Engine/ImageTraversers/AFR/kdtree.cc
D streamtest.cpp
Modified: branches/AFR/Engine/ImageTraversers/AFR/kdtree.cc
==============================================================================
--- branches/AFR/Engine/ImageTraversers/AFR/kdtree.cc (original)
+++ branches/AFR/Engine/ImageTraversers/AFR/kdtree.cc Tue Sep 6 12:16:30
2005
@@ -61,15 +61,15 @@
numLevels = Tile::max_tree_depth;
- cout << "numLevels = " << numLevels << endl;
+ // cout << "numLevels = " << numLevels << endl;
int i;
totalNodes = (int)(pow(2.0, Tile::max_tree_depth+1));
- cout << "totalNodes = " << totalNodes << endl;
+ // cout << "totalNodes = " << totalNodes << endl;
tile = new Tile[totalNodes]; // allocate memory to our array based
tree
// now we will assign the indices
int leafdim = (int)(pow(2.0,Tile::max_tree_depth/2));
- cout << "leafdim sqr = " << leafdim*leafdim << ", #leafnodes = " <<
totalNodes - totalNodes/2 << endl;
+ // cout << "leafdim sqr = " << leafdim*leafdim << ", #leafnodes = "
<< totalNodes - totalNodes/2 << endl;
Tile::leafMapping = (int**)malloc(leafdim*sizeof(int*));
for(i=0; i<leafdim; i++)
{
@@ -95,10 +95,10 @@
maxTiles = minTiles*32;
Tile::min_tile_area = tile[totalNodes-1].getTileSize()*2;
- cout << "meanLevel = " << Tile::meanLevel << endl;
- cout << "max_tile_area = " << Tile::max_tile_area << endl;
- cout << "min_tile_area = " << Tile::min_tile_area << endl;
- cout << "mintiles = " << minTiles << ", maxTiles = " << maxTiles <<
endl;
+ // cout << "meanLevel = " << Tile::meanLevel << endl;
+ // cout << "max_tile_area = " << Tile::max_tile_area << endl;
+ // cout << "min_tile_area = " << Tile::min_tile_area << endl;
+ // cout << "mintiles = " << minTiles << ", maxTiles = " << maxTiles
<< endl;
setTileCut(Tile::meanLevel, 0, samplingrate);
return numLevels;
}
Modified: branches/AFR/StandAlone/CMakeLists.txt
==============================================================================
--- branches/AFR/StandAlone/CMakeLists.txt (original)
+++ branches/AFR/StandAlone/CMakeLists.txt Tue Sep 6 12:16:30 2005
@@ -13,3 +13,20 @@
${OPENGL_LIBRARIES}
${X11_LIBRARIES}
-lm)
+
+## AFR Helper Programs.
+INCLUDE (${CMAKE_ROOT}/Modules/FindGLUT.cmake)
+
+INCLUDE_DIRECTORIES(${GLUT_INCLUDE_DIR})
+
+ADD_EXECUTABLE(combinestreams combinestreams.cpp)
+TARGET_LINK_LIBRARIES(combinestreams ${GLUT_LIBRARIES}
+ ${OPENGL_LIBRARIES}
+ ${X11_LIBRARIES}
+ -lm)
+
+ADD_EXECUTABLE(streamtest streamtest.cpp)
+TARGET_LINK_LIBRARIES(streamtest ${GLUT_LIBRARIES}
+ ${OPENGL_LIBRARIES}
+ ${X11_LIBRARIES}
+ -lm)
\ No newline at end of file
Modified: branches/AFR/StandAlone/manta.cc
==============================================================================
--- branches/AFR/StandAlone/manta.cc (original)
+++ branches/AFR/StandAlone/manta.cc Tue Sep 6 12:16:30 2005
@@ -44,6 +44,12 @@
out << "\n";
}
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
+// USAGE
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
+
void usage(RTRTInterface* rtrt)
{
cerr << "Usage: manta [options]\n";
@@ -75,6 +81,12 @@
exit(1);
}
+
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
+// FPS BENCH HELPER
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
class BenchHelper {
public:
BenchHelper(RTRTInterface* rtrt, long numFrames);
@@ -112,6 +124,11 @@
// delete this;
}
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
+// MAIN
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
int
main(int argc, char* argv[])
{
Copied: branches/AFR/StandAlone/streamtest.cpp (from r531,
branches/AFR/streamtest.cpp)
==============================================================================
--- branches/AFR/streamtest.cpp (original)
+++ branches/AFR/StandAlone/streamtest.cpp Tue Sep 6 12:16:30 2005
@@ -683,7 +683,7 @@
init();
glutInitWindowSize(globals.width,globals.height);
char windowname[255];
- sprintf(windowname,"Sample Stream %3.1f viewer", STREAM_VERSION);
+ sprintf(windowname,"Sample Stream %s viewer", STREAM_VERSION);
glutCreateWindow(windowname);
glutDisplayFunc(display);
glutReshapeFunc(myReshape);
- [MANTA] r532 - in branches/AFR: . Engine/ImageTraversers/AFR StandAlone, abe, 09/06/2005
Archive powered by MHonArc 2.6.16.