hip-clang: Add __align__
CUDA has __align__. Define eqivalent for hip-clang.
Tento commit je obsažen v:
1 rodič
5732b74fc5
revize
b9f8f977fb
1 file changed
+6
@@ -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>
|
||||
|
||||
Reference in new issue
Zablokovat Uživatele