Skip to content

Commit

Permalink
[libc] Remove complicated header guards on HSA include
Browse files Browse the repository at this point in the history
Summary:
This is much more standard now, we already require new HSA with what we
use, so no point checking for this.
  • Loading branch information
jhuber6 committed Dec 4, 2024
1 parent 1b4cdc4 commit a2fc276
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a2fc276

Please sign in to comment.