<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - opt-viewer fails with Error if tag '!Failure' is present"
href="https://bugs.llvm.org/show_bug.cgi?id=37669">37669</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt-viewer fails with Error if tag '!Failure' is present
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>opt-viewer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>steffen.seckler@tum.de
</td>
</tr>
<tr>
<th>CC</th>
<td>anemet@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>opt-viewer fails with error if tag '!Failure' is present in the yaml file
generated with -fsave-optimization-record:
Reading YAML files...
1 of 1Traceback (most recent call last):
File "/usr/lib/llvm-6.0/share/opt-viewer/opt-viewer.py", line 316, in
<module>
optrecord.gather_results(files, args.jobs, print_progress)
File "/usr/lib/llvm-6.0/share/opt-viewer/optrecord.py", line 298, in
gather_results
get_remarks, filenames, num_jobs, should_print_progress)
File "/usr/lib/llvm-6.0/share/opt-viewer/optpmap.py", line 50, in pmap
result = pool.map(_wrapped_func, func_and_args, *args, **kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 253, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
yaml.constructor.ConstructorError: could not determine a constructor for the
tag '!Failure'
in "None", line 1, column 1
such an error is generated if a loop vectorization fails even though it was
explicitly specified:
warning: loop not vectorized: failed explicitly specified loop vectorization
[-Wpass-failed=loop-vectorize]
#pragma omp simd reduction(+ : fxacc, fyacc, fzacc) safelen(vecsize)
^
1 warning generated.
example of such a tag in the yaml file:
--- !Failure
Pass: loop-vectorize
Name: FailedRequestedVectorization
DebugLoc: { File: ../../src/./pairwiseFunctors/LJFunctor.h, Line: 234,
Column: 9 }
Function:
_ZN7autopas9LJFunctorI17PrintableMoleculeNS_16FullParticleCellIS1_EEE10SoAFunctorERNS_3SoAERKSt6vectorIS7_ImNS_16AlignedAllocatorImLm64EEEESaISA_EEmmb
Args:
- String: 'loop not vectorized: '
- String: failed explicitly specified loop vectorization
...
Fix:
add class Failure to optrecord.py:
class Failure(Remark):
yaml_tag = '!Failure'
@property
def color(self):
return "red"
One could also think about changing to color to sth. like dark red, or so.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>