Merge pull request #187 from aaronenyeshi/fix-hip-vdi-hsa-ext

Fix HIP-Clang build with HSA headers
Этот коммит содержится в:
Aaron Enye Shi
2020-04-03 19:06:38 -04:00
коммит произвёл GitHub
родитель 3cbe5c8a40 a95090d981
Коммит fa52d4f0aa
2 изменённых файлов: 8 добавлений и 0 удалений
+4
Просмотреть файл
@@ -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 */
+4
Просмотреть файл
@@ -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)
{