Skip to content

Commit

Permalink
Merge pull request #187 from aaronenyeshi/fix-hip-vdi-hsa-ext
Browse files Browse the repository at this point in the history
Fix HIP-Clang build with HSA headers
  • Loading branch information
aaronenyeshi committed Apr 3, 2020
2 parents 3cbe5c8 + a95090d commit fa52d4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graph/xml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "core.h"
#include "nvmlwrap.h"
#include "xml.h"
#if defined(__HIP_PLATFORM_HCC__) || defined(__HCC__) || defined(__HIPCC__)
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
#endif

/*******************/
/* XML File Parser */
Expand Down
4 changes: 4 additions & 0 deletions tools/TransferBench/TransferBench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ THE SOFTWARE.
#include <hip/hip_runtime.h>
#include "copy_kernel.h"
#include "TransferBench.hpp"
#if defined(__HIP_PLATFORM_HCC__) || defined(__HCC__) || defined(__HIPCC__)
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
#endif

int main(int argc, char **argv)
{
Expand Down

0 comments on commit fa52d4f

Please sign in to comment.