From 9caaa6f49218e9d97a8d389cc9baba9fc82cb2af Mon Sep 17 00:00:00 2001 From: cjatin Date: Mon, 11 Oct 2021 13:03:47 +0530 Subject: [PATCH] SWDEV-306643 - add align and launch bounds for hiprtc Change-Id: Id178230eeeec94a8678e96474c35376d5427599a --- hipamd/src/cmake/HIPRTC.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/cmake/HIPRTC.cmake b/hipamd/src/cmake/HIPRTC.cmake index cc2ca7bbda..111b426074 100644 --- a/hipamd/src/cmake/HIPRTC.cmake +++ b/hipamd/src/cmake/HIPRTC.cmake @@ -32,6 +32,7 @@ function(get_hiprtc_macros HIPRTC_DEFINES) #define __global__ __attribute__((global))\n\ #define __constant__ __attribute__((constant))\n\ #define __shared__ __attribute__((shared))\n\ +#define __align__(x) __attribute__((aligned(x)))\n\ #define launch_bounds_impl0(requiredMaxThreadsPerBlock) \\\n\ __attribute__((amdgpu_flat_work_group_size(1, requiredMaxThreadsPerBlock)))\n\