From 6f2a8bf97b4ef2e447a9fe15d2c9bd0c11c33e14 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 20 Jan 2017 14:37:39 -0600 Subject: [PATCH] Add HIP_IGNORE_HCC_VERSION. Ignores strict checking of HCC and HIP version. Can be useful when developing new HCC code. [ROCm/clr commit: df74158d1c045195fd50da5ab5c68b7a44372c2b] --- projects/clr/hipamd/bin/hipcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index de8f0cb9a3..004463bc2c 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/bin/hipcc @@ -374,7 +374,8 @@ if ($printHipVersion) { } if ($runCmd) { if ($HIP_PLATFORM eq "hcc" and exists($hipConfig{'HCC_VERSION'}) and $HCC_VERSION ne $hipConfig{'HCC_VERSION'}) { - print ("HIP ($HIP_PATH) was built using hcc $hipConfig{'HCC_VERSION'}, but you are using $HCC_HOME/hcc with version $HCC_VERSION from hipcc. Please rebuild HIP including cmake or update HCC_HOME variable.\n") && die (); + print ("HIP ($HIP_PATH) was built using hcc $hipConfig{'HCC_VERSION'}, but you are using $HCC_HOME/hcc with version $HCC_VERSION from hipcc. Please rebuild HIP including cmake or update HCC_HOME variable.\n") ; + die unless $ENV{'HIP_IGNORE_HCC_VERSION'}; } system ("$CMD") and die (); }