SWDEV-366306 - SWDEV-366314 - Add hip vector types and hip bfloat16 to HIPRTC cmake

Change-Id: If4213c3ca9446afe931c6b111c220033987e0204


[ROCm/clr commit: 88270b34f2]
Dieser Commit ist enthalten in:
Satyanvesh Dittakavi
2022-11-18 12:05:42 +00:00
Ursprung e609c247ec
Commit ea4ee7ed93
@@ -49,7 +49,10 @@ function(get_hiprtc_macros HIPRTC_DEFINES)
#define __launch_bounds__(...) \\\n\
select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) \n\
#pragma clang diagnostic pop\n\
#define HIP_INCLUDE_HIP_HIP_RUNTIME_H"
#define HIP_INCLUDE_HIP_HIP_RUNTIME_H\n\
#define HIP_INCLUDE_HIP_HIP_FP16_H\n\
#define _HIP_BFLOAT16_H_\n\
#define HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H"
PARENT_SCOPE)
endfunction(get_hiprtc_macros)
@@ -70,6 +73,7 @@ macro(generate_hiprtc_header HiprtcHeader)
#define INT_MAX __INTMAX_MAX__\n\
#include \"hip/hip_runtime.h\"\n\
#include \"hip/hip_fp16.h\"\n\
#include \"hip/hip_bfloat16.h\"\n\
#pragma pop_macro(\"CHAR_BIT\")\n\
#pragma pop_macro(\"INT_MAX\")")
endmacro(generate_hiprtc_header)