[libc-commits] [libc] [libc] Add AMDGPU Timing to CMake (PR #99603)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 21:08:35 PDT 2024


https://github.com/jameshu15869 created https://github.com/llvm/llvm-project/pull/99603

`libc/benchmarks/gpu/timing/CMakeLists.txt` did not correctly build `amdgpu` utils. This PR fixes that issue by adding `amdgpu` to the loop that adds the correct sub directories. 

>From 63382e7c31ecb4c1be91a79eee54dc516855eca6 Mon Sep 17 00:00:00 2001
From: jameshu15869 <jhudson15869 at gmail.com>
Date: Fri, 19 Jul 2024 00:06:19 -0400
Subject: [PATCH] add amdgpu timing to cmake

---
 libc/benchmarks/gpu/timing/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/benchmarks/gpu/timing/CMakeLists.txt b/libc/benchmarks/gpu/timing/CMakeLists.txt
index 8bbc7e33f122a..b6d84607aa607 100644
--- a/libc/benchmarks/gpu/timing/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/CMakeLists.txt
@@ -1,4 +1,4 @@
-foreach(target nvptx)
+foreach(target nvptx amdgpu)
   add_subdirectory(${target})
   list(APPEND target_gpu_timing libc.benchmarks.gpu.timing.${target}.${target}_timing)
 endforeach()



More information about the libc-commits mailing list