Fix HIP-Clang build with HSA headers

HIP-Clang does not include these HSA headers, and they need to be explicitly added in RCCL.
This commit is contained in:
Aaron Enye Shi committed 2020-04-03 17:58:23 -04:00
1 vanhempi 3cbe5c8a40
commit a95090d981
2 files changed
+8

No files matched your search

+4
Näytä tiedosto
@@ -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 */
@@ -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)
{