From 80652bfb2dd90caf4dba344dd25ea51a5d2586a8 Mon Sep 17 00:00:00 2001 From: "Aji, Ashwin" Date: Thu, 17 Nov 2022 20:09:42 +0000 Subject: [PATCH] ATMI Release for ROCm v5.3.3 --- src/atmi-backward-compat.cmake | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/atmi-backward-compat.cmake b/src/atmi-backward-compat.cmake index d6a6b15b..85868a4e 100644 --- a/src/atmi-backward-compat.cmake +++ b/src/atmi-backward-compat.cmake @@ -60,7 +60,20 @@ function(create_header_template) LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */\n\n#ifndef @include_guard@\n#define @include_guard@ \n\n\#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\")\n@include_statements@ \n\n#endif") + */ + +#ifndef @include_guard@ +#define @include_guard@ + +#if defined(_MSC_VER) +#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\") +#elif defined(__GNUC__) +#warning \"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with atmi\" +#endif + +@include_statements@ + +#endif") endfunction() #use header template file and generate wrapper header files