variants of pgcc tailored for ranger and barcelona
authorEric Bohm <ebohm@illinois.edu>
Wed, 28 May 2008 20:20:50 +0000 (20:20 +0000)
committerEric Bohm <ebohm@illinois.edu>
Wed, 28 May 2008 20:20:50 +0000 (20:20 +0000)
src/arch/common/cc-pgiranger.h [new file with mode: 0644]
src/arch/common/cc-pgiranger.sh [new file with mode: 0644]

diff --git a/src/arch/common/cc-pgiranger.h b/src/arch/common/cc-pgiranger.h
new file mode 100644 (file)
index 0000000..e014dda
--- /dev/null
@@ -0,0 +1,9 @@
+#undef CMK_DLL_CC
+
+/* pgcc can not compile RDTSC timer */
+#if CMK_TIMER_USE_RDTSC
+# undef CMK_TIMER_USE_GETRUSAGE
+# undef CMK_TIMER_USE_RDTSC
+# define CMK_TIMER_USE_GETRUSAGE                            1
+# define CMK_TIMER_USE_RDTSC                                0
+#endif
diff --git a/src/arch/common/cc-pgiranger.sh b/src/arch/common/cc-pgiranger.sh
new file mode 100644 (file)
index 0000000..d75161d
--- /dev/null
@@ -0,0 +1,32 @@
+AMDOPTS="-tp barcelona-64 "
+
+CMK_CPP_C="pgcc -E "
+CMK_CC="pgcc -fPIC $AMDOPTS "
+CMK_CC_RELIABLE="gcc "
+CMK_CXX="pgCC -fPIC $AMDOPTS "
+CMK_CXXPP="pgCC -E $AMDOPTS "
+CMK_LD="$CMK_CC $AMDOPTS "
+CMK_LDXX="$CMK_CXX $AMDOPTS "
+
+# compiler for compiling sequential programs
+# pgcc can not handle QT right for generic64, so always use gcc
+CMK_SEQ_CC="gcc "
+CMK_SEQ_LD="gcc "
+CMK_SEQ_CXX="pgCC "
+CMK_SEQ_LDXX="$CMK_SEQ_CXX"
+CMK_SEQ_LIBS=""
+
+# compiler for native programs
+CMK_NATIVE_CC="gcc "
+CMK_NATIVE_LD="gcc "
+CMK_NATIVE_CXX="g++ "
+CMK_NATIVE_LDXX="g++ "
+CMK_NATIVE_LIBS=""
+
+# fortran compiler
+CMK_CF77="pgf77 "
+CMK_CF90="pgf90 "
+CMK_CF90_FIXED="$CMK_CF90 -Mfixed "
+CMK_F90LIBS="-L$PGI/linux86-64/7.1-2/lib  -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl "
+CMK_F90_USE_MODDIR=""
+CPPFLAGS="$CPPFLAGS -fPIC $AMDOPTS "