Procházet zdrojové kódy

Fix build without nvidia-ml

Samuel Thibault před 5 roky
rodič
revize
ca81e0eb29
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      tests/perfmodels/papi.c

+ 2 - 0
tests/perfmodels/papi.c

@@ -20,6 +20,7 @@ const char* event_names[] = { "rapl:::PACKAGE_ENERGY:PACKAGE0",
 
 int main()
 {
+#ifdef HAVE_LIBNVIDIA_ML
                
 
 	
@@ -64,6 +65,7 @@ int main()
 	printf("energy consumptionnnnnnnnnn on device %d is %lld mJ \n", 0, (energy_end - energy_begin));
 	/*********************************************************/
 	
+#endif
  
 	exit(0);
 }