2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-08-19 06:44:58 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Platforms");
|
|
|
|
echo "
|
2002-11-03 23:18:47 +00:00
|
|
|
<h3>Goals</h3>
|
2002-11-03 19:11:05 +00:00
|
|
|
<p>
|
2004-02-09 05:11:05 +00:00
|
|
|
The computers available to a public-resource computing project
|
|
|
|
have a wide range of operating systems and hardware architectures.
|
|
|
|
For example, they may run many versions of Windows
|
|
|
|
(95, 98, ME, 2000, XP) on many processors variants (486, Pentium, AMD).
|
|
|
|
Hosts may have multiple processors and/or graphics coprocessors.
|
|
|
|
<p>
|
2002-11-03 19:11:05 +00:00
|
|
|
BOINC addresses the following goals:
|
|
|
|
<ul>
|
2004-02-09 05:11:05 +00:00
|
|
|
<li> <b>Resource heterogeneity.</b>
|
|
|
|
It should be easy for projects to allow many types
|
|
|
|
of hosts to participate.
|
|
|
|
<li> <b>Simplicity</b>.
|
2002-11-03 19:11:05 +00:00
|
|
|
The combinatorial explosion of versions and architectures should be
|
|
|
|
excluded from the internals of BOINC.
|
2004-02-09 05:11:05 +00:00
|
|
|
<li>
|
|
|
|
<b>Accounting.</b>
|
|
|
|
Enough architectural information should be stored on the server
|
|
|
|
so that statistics can be broken down according to specific features.
|
2002-11-03 19:11:05 +00:00
|
|
|
</ul>
|
|
|
|
|
2002-11-03 23:18:47 +00:00
|
|
|
<h3>Design</h3>
|
2002-11-03 19:11:05 +00:00
|
|
|
<p>
|
|
|
|
A <b>platform</b> is a compilation target.
|
|
|
|
A set of platforms is maintained in the BOINC database of each project.
|
|
|
|
Each platform has a <b>name</b> and a <b>description</b> of
|
|
|
|
the range of architectures it can handle.
|
|
|
|
Each BOINC program (core client and application) is linked to a platform.
|
|
|
|
<p>
|
|
|
|
At the minimum, a platform is a combination
|
|
|
|
of a CPU architecture and an operating system.
|
|
|
|
Examples might include:
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
2002-11-03 19:11:05 +00:00
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
list_start();
|
|
|
|
list_heading("name", "description");
|
|
|
|
list_item("windows_intelx86", "Microsoft Windows (95 or later) running on an Intel x86-compatible processor");
|
|
|
|
list_item("linux_x86", "Linux running on an Intel x86-compatible processor");
|
2004-02-19 16:43:28 +00:00
|
|
|
list_item("macos_ppc", "Mac OS 9.0 or later running on Motorola PowerPC");
|
2004-02-09 05:11:05 +00:00
|
|
|
list_item("sparc_solaris", "Solaris 2.1 or later running on a SPARC-compatible processor");
|
|
|
|
list_end();
|
|
|
|
echo"
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
The name of a platform should specify a particular version (e.g. of an OS)
|
|
|
|
only if it uses features new to that version.
|
|
|
|
For example, the platform <b>sparc_solaris2.8</b> should apply
|
2002-11-03 23:18:47 +00:00
|
|
|
to SPARC machines running Solaris 2.8 or greater.
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
For simplicity, platforms are assumed to be mutually exclusive:
|
|
|
|
i.e. an application for platform X is not assumed to work
|
2004-02-09 05:11:05 +00:00
|
|
|
on a host running core client platform Y if X ≠ Y.
|
2002-11-03 19:11:05 +00:00
|
|
|
The BOINC scheduling server will send work to a host only
|
|
|
|
if there is an application version for the same platform.
|
|
|
|
|
|
|
|
<p>
|
|
|
|
There should be as few platforms as possible.
|
|
|
|
For example, suppose that there are both Solaris2.6
|
|
|
|
and Solaris2.7 platforms.
|
|
|
|
Then any host running the Solaris2.6 core client will
|
|
|
|
only be able to run Solaris2.6 applications.
|
|
|
|
Application developers will have to create versions
|
|
|
|
for both 2.6 and 2.7, even if they're identical.
|
|
|
|
|
|
|
|
<p>
|
2002-11-03 23:18:47 +00:00
|
|
|
<h3>Application optimization for specific architectures</h3>
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
BOINC allows applications to exploit specific architectures,
|
2002-11-03 23:18:47 +00:00
|
|
|
but places the burden of recognizing the architecture
|
2003-08-26 18:33:21 +00:00
|
|
|
on the application.
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
In other words, if you want to make a version of your application
|
|
|
|
that can use the AMD 3DNow instruction set,
|
|
|
|
<i>don't</i> create a new <b>windows_amd_3dnow</b> platform.
|
|
|
|
Instead, make a version for the <b>windows_intelx86</b> platform
|
2002-11-03 23:18:47 +00:00
|
|
|
that recognizes when it's running on a 3DNow machine,
|
2002-11-03 19:11:05 +00:00
|
|
|
and branches to the appropriate code.
|
2002-11-03 23:18:47 +00:00
|
|
|
|
2002-11-03 19:11:05 +00:00
|
|
|
<p>
|
2003-12-24 00:50:51 +00:00
|
|
|
<h3>Web-site statistics breakdown by architecture</h3>
|
2002-11-03 23:18:47 +00:00
|
|
|
<p>
|
|
|
|
BOINC collects architecture details about each completed result
|
|
|
|
to allow detailed statistical breakdowns.
|
|
|
|
|
|
|
|
<p>
|
|
|
|
First, the core client attempts to find
|
|
|
|
the CPU vendor, the CPU model,
|
|
|
|
the OS name, and the OS version.
|
|
|
|
These are stored in the host record.
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Second, applications that recognize even more specific
|
|
|
|
architecure information can pass it back to the core client
|
|
|
|
using the <b>boinc_architecture()</b>
|
2003-10-13 19:23:40 +00:00
|
|
|
function from <a href=api.php>the BOINC API</a>.
|
2002-11-03 19:11:05 +00:00
|
|
|
This passes a string (project-specific, but typically in XML)
|
|
|
|
to the core client, which records it in the
|
|
|
|
<b>architecture_xml</b> field of the <b>result</b> database record.
|
|
|
|
For example, the application might pass a description like
|
|
|
|
<pre>
|
2004-02-12 01:13:47 +00:00
|
|
|
", htmlspecialchars("
|
|
|
|
<has_3dnow_instructions/>
|
|
|
|
<graphics_board>ATI Rage 64MB</graphics_board>
|
|
|
|
"), "
|
2002-11-03 19:11:05 +00:00
|
|
|
</pre>
|
2002-11-03 23:18:47 +00:00
|
|
|
This makes it possible, for example, to report average or total
|
2003-12-24 00:50:51 +00:00
|
|
|
performance statistics for 3DNow hosts contrasted
|
2002-11-03 23:18:47 +00:00
|
|
|
with other Intel-compatible hosts.
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
|
2002-11-03 23:18:47 +00:00
|
|
|
<h3>Avoiding platform anarchy</h3>
|
2002-11-03 19:11:05 +00:00
|
|
|
<p>
|
|
|
|
Each BOINC project is free to create its own platforms.
|
2002-11-03 23:18:47 +00:00
|
|
|
To avoid anarchy, however, we recommend that
|
|
|
|
platform creation and naming be coordinated by a single group
|
|
|
|
(currently the SETI@home project at UCB).
|
2002-11-03 19:11:05 +00:00
|
|
|
|
|
|
|
|
2002-11-03 23:18:47 +00:00
|
|
|
<h3>Tools</h3>
|
|
|
|
<p>
|
2002-11-03 19:11:05 +00:00
|
|
|
Platforms are maintained in the <b>platform</b> table in the BOINC DB,
|
2004-09-21 19:58:30 +00:00
|
|
|
and can be created using the <a href=tool_xadd.php>xadd</a> utility.
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|