Add workaround to hipcc for build failure in tensorflow due to missing symbol __cpu_model

https://github.com/tensorflow/tensorflow/issues/9593
This commit is contained in:
Yaxun (Sam) Liu
2018-06-25 18:12:36 -04:00
parent 272c16d34e
commit 632baba353
+3
View File
@@ -601,6 +601,9 @@ if ($needLDFLAGS and not $compileOnly) {
$CMD .= " $HIPLDFLAGS";
}
$CMD .= " $toolArgs";
if ($needLDFLAGS and not $compileOnly and $HIP_PLATFORM eq "clang") {
$CMD .= " -lgcc_s -lgcc";
}
if ($verbose & 0x1) {
print "hipcc-cmd: ", $CMD, "\n";