Explorar el Código

Fix build without nvidia-ml

Samuel Thibault hace 5 años
padre
commit
ca81e0eb29
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);
 }