From cdc42914317aa734941cc45afbb7029928db2d7b Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Mon, 24 Jul 2017 18:57:19 -0500 Subject: [PATCH] Enable HCC_OPT_FLUSH=1 (if HCC compiler new enough) --- hipamd/src/hip_hcc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_hcc.cpp b/hipamd/src/hip_hcc.cpp index 8aaa7af02b..9d431df2dd 100644 --- a/hipamd/src/hip_hcc.cpp +++ b/hipamd/src/hip_hcc.cpp @@ -95,8 +95,12 @@ int HIP_SYNC_HOST_ALLOC = 1; int HIP_SYNC_NULL_STREAM = 1; // HIP needs to change some behavior based on HCC_OPT_FLUSH : -// TODO - set this to 1 +#if (__hcc_workweek__ >= 17296) +int HCC_OPT_FLUSH = 1; +#else +#warning "HIP disabled HCC_OPT_FLUSH since HCC version does not yet support" int HCC_OPT_FLUSH = 0; +#endif