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

https://github.com/tensorflow/tensorflow/issues/9593


[ROCm/clr commit: 632baba353]
This commit is contained in:
Yaxun (Sam) Liu
2018-06-25 18:12:36 -04:00
parent 8e2a1e0acd
commit bba741a913
+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";