hip-clang: Add __align__

CUDA has __align__. Define eqivalent for hip-clang.
This commit is contained in:
Yaxun (Sam) Liu
2019-04-10 14:17:18 -04:00
parent 131e74c64c
commit e200ece4da
@@ -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 <hip/hip_runtime_api.h>