modified the test for papi library
authorChao Mei <chaomei2@illinois.edu>
Tue, 3 May 2011 01:56:50 +0000 (20:56 -0500)
committerChao Mei <chaomei2@illinois.edu>
Tue, 3 May 2011 01:56:50 +0000 (20:56 -0500)
src/scripts/configure
src/scripts/configure.in

index bcb1d5a79edf1ccef35fae89dcd6cf9dc765c8ca..dcbeb33d551176e786875f4a8e2812f1c8c37824 100755 (executable)
@@ -3604,8 +3604,7 @@ cat > $t <<EOT
 #include <papi.h>
 
 int main() {
-    int Events[1] = { PAPI_TOT_CYC };
-    if (PAPI_start_counters(Events, 1) != PAPI_OK) return 1;
+    if (PAPI_library_init(PAPI_VER_CURRENT) != PAPI_VER_CURRENT) return 1;
     return 0;
 }
 EOT
index e93e101046bcd71a1230fbe2558c06a559bec8cb..2cf0b0307718a4b439c0b8537d70dccf76ed089f 100644 (file)
@@ -1518,8 +1518,7 @@ cat > $t <<EOT
 #include <papi.h>
                                                                                 
 int main() {
-    int Events[[1]] = { PAPI_TOT_CYC };
-    if (PAPI_start_counters(Events, 1) != PAPI_OK) return 1;
+    if (PAPI_library_init(PAPI_VER_CURRENT) != PAPI_VER_CURRENT) return 1;
     return 0;
 }
 EOT