[libc-commits] [libc] a2fc276 - [libc] Remove complicated header guards on HSA include
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Dec 4 14:28:24 PST 2024
Author: Joseph Huber
Date: 2024-12-04T16:28:13-06:00
New Revision: a2fc276ed2556c5da59f8b039bbb6d97f3003134
URL: https://github.com/llvm/llvm-project/commit/a2fc276ed2556c5da59f8b039bbb6d97f3003134
DIFF: https://github.com/llvm/llvm-project/commit/a2fc276ed2556c5da59f8b039bbb6d97f3003134.diff
LOG: [libc] Remove complicated header guards on HSA include
Summary:
This is much more standard now, we already require new HSA with what we
use, so no point checking for this.
Added:
Modified:
libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp
Removed:
################################################################################
diff --git a/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp b/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp
index a3b70c0230f776..00fde147b0abde 100644
--- a/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp
+++ b/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp
@@ -15,18 +15,8 @@
#include "Loader.h"
-#if defined(__has_include)
-#if __has_include("hsa/hsa.h")
#include "hsa/hsa.h"
#include "hsa/hsa_ext_amd.h"
-#elif __has_include("hsa.h")
-#include "hsa.h"
-#include "hsa_ext_amd.h"
-#endif
-#else
-#include "hsa/hsa.h"
-#include "hsa/hsa_ext_amd.h"
-#endif
#include "llvm/Frontend/Offloading/Utility.h"
More information about the libc-commits
mailing list