Commits

Rio Yokota committed 7f7e746

wrapper.cxx library call order bugfix.

Comments (0)

Files changed (2)

 
 ### GCC compiler
 CXX	= mpicxx -ggdb3 -Wall -Wextra -Wshadow -O3 -msse4.2 -ffast-math -funroll-loops -fforce-addr -fbounds-check
+#CXX	= tau_cxx.sh -ggdb3 -Wall -Wextra -Wshadow -O3 -msse4.2 -ffast-math -funroll-loops -fforce-addr -fbounds-check
 ### Intel compiler
 #CXX	= mpicxx -Wall -xHOST -O3 -funroll-loops -finline-functions -ansi-alias
 ### BG/P compiler
 #LFLAGS	+= -DCOUNT # Count number calls to P2P and M2L
 
 ### Intel TBB flags (doesn't work with OpenMP) : TBB is available from http://threadingbuildingblocks.org/download.php
-#LFLAGS	+= -std=c++0x -DTBB -ltbb
+LFLAGS	+= -std=c++0x -DTBB -ltbb
 
 ### MassiveThreads flags (doesn't work with OpenMP) : MassiveThreads is available from http://code.google.com/p/massivethreads/
-LFLAGS	+= -std=c++0x -DMTHREAD -lmyth
+#LFLAGS	+= -std=c++0x -DMTHREAD -lmyth
 
 ### PAPI flags
 #LFLAGS	+= -DPAPI -lpapi

examples/Makefile

 
 parallel: parallel.cxx $(KERNELS)
 	$(CXX) $? $(LFLAGS)
-	mpirun -np 32 ./a.out
+	mpirun -np 8 ./a.out
 
 wrapper: wrapper.cxx $(KERNELS)
 	make -C ../wrappers libcoulomb.a
-	$(CXX) $? $(LFLAGS) -lcoulomb
+	$(CXX) $? -lcoulomb $(LFLAGS)
 	mpirun -np 4 ./a.out