Added lines where users could modify to set correct papi installation directory
authorChao Mei <chaomei2@illinois.edu>
Tue, 3 May 2011 01:55:17 +0000 (20:55 -0500)
committerChao Mei <chaomei2@illinois.edu>
Tue, 3 May 2011 01:55:17 +0000 (20:55 -0500)
src/arch/common/conv-mach-papi.sh

index d88e0e5896a996e65844c6cdd1537d444b522184..20e3d84863c989e72f1573952bdb907d149f7210 100644 (file)
@@ -20,5 +20,14 @@ then
   fi
 fi
 
-
-CMK_LIBS="$CMK_LIBS -lpapi"
+if test -z "$PAPI_LIBDIR"
+then
+  #macros needs to be changed to point to the correct papi directory
+  PAPI_LIBDIR="$HOME/papi/lib"
+  PAPI_INCDIR="$HOME/papi/include"
+  CMK_INCDIR="$CMK_INCDIR -I$PAPI_INCDIR"
+  CMK_LIBDIR="-L $PAPI_LIBDIR"
+  CMK_LD="$CMK_LD -Wl,-rpath,$PAPI_LIBDIR"
+  CMK_LDXX="$CMK_LDXX -Wl,-rpath,$PAPI_LIBDIR" 
+  CMK_LIBS="$CMK_LIBS -lpapi"
+fi