瀏覽代碼

Fix build without nvidia-ml

Samuel Thibault 5 年之前
父節點
當前提交
ca81e0eb29
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);
 }