[libc-commits] [libc] [libc] Add Kernel Resource Usage to nvptx-loader (PR #97503)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Jul 17 14:05:17 PDT 2024


================
@@ -15,13 +15,17 @@ function(add_benchmark benchmark_name)
   endif()
   add_libc_hermetic(
     ${benchmark_name}
-    IS_BENCHMARK
+    IS_GPU_BENCHMARK
     LINK_LIBRARIES
       LibcGpuBenchmark.hermetic
       ${BENCHMARK_LINK_LIBRARIES}
+    LOADER_ARGS
+      --print-resource-usage
----------------
jhuber6 wrote:

```suggestion
```
I think we should pass this on a per-benchmark basis.

https://github.com/llvm/llvm-project/pull/97503


More information about the libc-commits mailing list