diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index 62be5794fb..212502ea5e 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -57,6 +57,12 @@ THE SOFTWARE. #if __HCC_OR_HIP_CLANG__ +#if __HIP__ +#if !defined(__align__) +#define __align__(x) __attribute__((aligned(x))) +#endif +#endif + #define CUDA_SUCCESS hipSuccess #include