[Swift-commit] r6127 - SwiftApps/SciColSim
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Thu Jan 3 18:31:38 CST 2013
Author: wilde
Date: 2013-01-03 18:31:38 -0600 (Thu, 03 Jan 2013)
New Revision: 6127
Added:
SwiftApps/SciColSim/Makefile.pgi
Log:
Initial makefile for PGI compiler on Cray. Does not yet produce runnable code.
Added: SwiftApps/SciColSim/Makefile.pgi
===================================================================
--- SwiftApps/SciColSim/Makefile.pgi (rev 0)
+++ SwiftApps/SciColSim/Makefile.pgi 2013-01-04 00:31:38 UTC (rev 6127)
@@ -0,0 +1,50 @@
+UNAME := $(shell uname)
+
+ifeq ($(UNAME), Linux)
+
+all: optimizer-pgi openmp-optimizer-pgi
+
+openmp-optimizer-pgi: optimizer.cpp
+ pgCC -g -traceback -DP_OPENMP -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0 -Bstatic -O2 -mp -I boost_1_47_0 -o openmp-optimizer-pgi optimizer.cpp
+
+optimizer-pgi: optimizer.cpp
+ pgCC -g -traceback -Bstatic -O2 -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0 -I boost_1_47_0 -o optimizer-pgi optimizer.cpp
+
+graphsim: graphsim.cpp
+ g++ -DP_OPENMP -static -pg -O2 -fopenmp -I boost_1_47_0 -o graphsim graphsim.cpp
+
+openmptest: openmptest.cpp
+ g++ -DP_OPENMP -static -O -fopenmp -o openmptest openmptest.cpp
+
+clean:
+ @rm -rvf openmp-optimizer
+
+endif
+
+ifeq ($(UNAME), Darwin)
+
+all: optimizer openmp-optimizer dispatch-optimizer orig-optimizer graphsim openmptest
+
+openmp-optimizer: optimizer.cpp
+ g++ -DP_OPENMP -fopenmp -I boost_1_47_0 -o openmp-optimizer optimizer.cpp
+
+optimizer: optimizer.cpp
+ g++ -I boost_1_47_0 -o optimizer optimizer.cpp
+
+graphsim: graphsim.cpp
+ g++ -DP_OPENMP -fopenmp -I boost_1_47_0 -g -o graphsim graphsim.cpp
+
+openmptest: openmptest.cpp
+ g++ -DP_OPENMP -fopenmp -g -o openmptest openmptest.cpp
+
+dispatch-optimizer: optimizer.cpp
+ g++ -DP_DISPATCH -I boost_1_47_0 -o dispatch-optimizer optimizer.cpp
+
+orig-optimizer: optimizer.orig-mac.cpp
+ g++ -I boost_1_47_0 -o orig-optimizer optimizer.orig-mac.cpp
+
+clean:
+ @rm -rvf openmp-optimizer dispatch-optimizer orig-optimizer
+
+endif
+
More information about the Swift-commit
mailing list