From af0e9b54de8373fc0c0a499bf3c300850f48b4ed Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Mon, 25 Jun 2018 18:12:36 -0400 Subject: [PATCH] Add workaround to hipcc for build failure in tensorflow due to missing symbol __cpu_model https://github.com/tensorflow/tensorflow/issues/9593 [ROCm/hip commit: 021728cd863f212fa5ebd18cba31af1af9a3f789] --- projects/hip/bin/hipcc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 03f35b27fc..731c9bcc96 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -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";