SWDEV-283266 - __HIPCC_RTC__ macro added to HIP headers

For hipRTC on Windows, add macro __HIPCC_RTC__ to allow
online compilation of with device functions excluding standard
C/C++ headers, system headers, and host HIP APIs.

Change-Id: I1d91f042baf1359856ec83ab7030dc58785e0334
Этот коммит содержится в:
Aaron En Ye Shi
2021-05-05 21:26:21 +00:00
родитель 73964037c1
Коммит 811bc363c8
12 изменённых файлов: 368 добавлений и 310 удалений
+2 -1
Просмотреть файл
@@ -26,9 +26,10 @@ THE SOFTWARE.
#include "host_defines.h"
#include "math_fwd.h"
#if !defined(__HIPCC_RTC__)
#include <hip/hip_runtime_api.h>
#include <stddef.h>
#endif // !defined(__HIPCC_RTC__)
#include <hip/hip_vector_types.h>
#include <hip/amd_detail/device_library_decls.h>