Skip to content

Commit

Permalink
Fix HIP-Clang build with HSA headers
Browse files Browse the repository at this point in the history
HIP-Clang does not include these HSA headers, and they need to be explicitly added in RCCL.
  • Loading branch information
aaronenyeshi committed Apr 3, 2020
1 parent 3cbe5c8 commit a95090d
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 a95090d

Please sign in to comment.