From 0e9272cfd7a7921220c439b8799b71d674afce16 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) [ROCm/clr commit: cdc42914317aa734941cc45afbb7029928db2d7b] --- projects/clr/hipamd/src/hip_hcc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_hcc.cpp b/projects/clr/hipamd/src/hip_hcc.cpp index 8aaa7af02b..9d431df2dd 100644 --- a/projects/clr/hipamd/src/hip_hcc.cpp +++ b/projects/clr/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