Working progress

This commit is contained in:
andrew committed 2023-05-15 18:43:35 -04:00
1 parent 0556bf7618
commit dd0f2ca29f
29 files changed
+377 -169

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
{% extends "OpenBench/base.html" %}
{% load mytags %}
{% block style %}
{% load static %}
{% endblock %}
{% block content %}
<div id="config" style="display: block; overflow-x: auto;">
<table class="test-config left-align wrappable" style="table-layout: auto; width: 100%;">
<tr><td class="td-label">User</td><td>{{machine.user.username}}</td></tr>
<tr><td class="td-label">Client Version</td><td>{{machine.info.client_ver}}</td></tr>
<tr><td class="td-label">Python Version</td><td>{{machine.info.python_ver}}</td></tr>
<tr><td class="td-label">System Version</td><td>{{machine.info.os_name}} {{machine.info.os_ver}}</td></tr>
<tr><td class="td-label"></td><td><br></td></tr>
<tr><td class="td-label">CPU Name</td><td>{{machine.info.cpu_name}}</td></tr>
<tr><td class="td-label">CPU Flags</td><td><pre>{{machine|cpuflagsBlock}}</pre></td></tr>
<tr><td class="td-label">Logical Cores</td><td>{{machine.info.logical_cores}}</td></tr>
<tr><td class="td-label">Physical Cores</td><td>{{machine.info.physical_cores}}</td></tr>
<tr><td class="td-label">Total RAM (MB)</td><td>{{machine.info.ram_total_mb}}</td></tr>
<tr><td class="td-label">Syzygy WDL-6</td><td>{{machine.info.syzygy_wdl}}</td></tr>
<tr><td class="td-label"></td><td><br></td></tr>
{% if machine.info.tokens|length > 0 %}
<tr><td class="td-label">Tokens</td><td>{{machine.info.tokens|join:" "}}</td></tr>
{% endif %}
{% if machine.info.compilers|length > 0 %}
<tr><td class="td-label">Compilers</td><td><pre>{{machine|compilerBlock}}</pre></td></tr>
{% endif %}
</table>
</div>
{% endblock %}
system_info = {
'compilers' : SYSTEM_COMPILERS, # Key: Engine, Value: (Compiler, Version)
'tokens' : SYSTEM_GIT_TOKENS, # Key: Engine, Value: True, for tokens we have
'cpu_flags' : SYSTEM_CPU_FLAGS, # List of CPU flags found in the Client or Server
}
+7 -5
View File
@@ -10,7 +10,7 @@
<th>#</th>
<th>User</th>
<th>System</th>
<th>Updated</th>
<th>CPU</th>
<th>Workload</th>
<th>Threads</th>
<th>MNPS</th>
@@ -18,16 +18,18 @@
{% for machine in machines %}
<tr>
<td class="numeric">{{machine.id}}</td>
<td class="numeric"><a href="/machines/{{machine.id}}/">{{machine.id}}</a></td>
<td>{{machine.user.username|capfirst}}</td>
<td>{{machine.osname|truncatewords:1|slice:":-2"}}</td>
<td class="timestamp">{{machine.updated|date:'U'}}</td>
<td>{{machine.info.os_name}}</td>
<td>{{machine.info.cpu_name}}</td>
<td> <a href="/test/{{machine.workload.id}}">{{machine.workload.dev.name|prettyName}}</a></td>
<td class="numeric">{{machine.threads}}</td>
<td class="numeric">{{machine.info.concurrency}}</td>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}