From 9899d0523e94024820b8ce87192a6d53bfd41e2f Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Wed, 10 Apr 2019 14:17:18 -0400 Subject: [PATCH] hip-clang: Add __align__ CUDA has __align__. Define eqivalent for hip-clang. [ROCm/hip commit: b9f8f977fbdc7e194ae2f6f4c04ab178f72689ef] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 6 ++++++ 1 file changed, 6 insertions(+) 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