Skip to content

Commit

Permalink
Fix for SWDEV-220166 (#2387)
Browse files Browse the repository at this point in the history
* check for hcc
* add comment for ticket reference
* address PR comments
  • Loading branch information
JehandadKhan authored and Daniel Lowell committed Jan 29, 2020
1 parent b4676d2 commit 9218683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ocl/gcn_asm_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ bool ValidateGcnAssemblerImpl()
std::string clang_result_line;
std::getline(clang_stdout, clang_result_line);
MIOPEN_LOG_NQI2(clang_result_line);
if(clang_result_line.find("clang") != std::string::npos)
if(clang_result_line.find("HCC") != std::string::npos)
// Temporary fix for SWDEV-220166 which causes clang to report unknown
// architecture for AMD GCN
return true;
else if(clang_result_line.find("clang") != std::string::npos)
{
while(!clang_stdout.eof())
{
Expand Down

0 comments on commit 9218683

Please sign in to comment.