<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Distributed SAT Solving on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/distributed-sat-solving/</link>
    <description>Recent content in Distributed SAT Solving on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 11 Dec 2011 21:05:58 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/distributed-sat-solving/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Thoughts on SAT@home</title>
      <link>https://www.msoos.org/2011/12/thoughts-on-sat-at-home/</link>
      <pubDate>Sun, 11 Dec 2011 21:05:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1066</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://sat.isa.ru/pdsat/&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/12/sat_at_home_logo.png&#34;&gt;&lt;/a&gt; If you have ever wondered how your multi-month SAT problem could be solved, the answer is here: &lt;a href=&#34;http://sat.isa.ru/pdsat/&#34;&gt;SAT@home&lt;/a&gt; by some kind Russian researchers! This idea has been brewing in my head, we even started a mini-project with a  friendly &lt;a href=&#34;http://www.american.edu/cas/faculty/mblack.cfm&#34;&gt;American researcher&lt;/a&gt;, but we never got it into a working condition :(. It&amp;rsquo;s great that someone took the time to do it, though. Creating such a setup has some easier and harder parts. Setting up a &lt;a href=&#34;http://boinc.berkeley.edu/&#34;&gt;BOINC&lt;/a&gt; server is not that hard, but it needs to run 24/7, which is difficult, unless you are department head at a university or you have a company behind you. Then the scripts need to be written, which is relatively easy to do, but testing and debugging is time-consuming. The &lt;em&gt;really&lt;/em&gt; hard part, though, is how to distribute the workload. Treatises could be written on that, and the one above uses the simplest method, that of cutting up the problem along a couple of variables. It&amp;rsquo;s a good start, I think: starting easy is always the best way to start &amp;ndash; the first automobile didn&amp;rsquo;t try to achieve 300km/h speeds, and it didn&amp;rsquo;t have to.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Distributed SAT solving is fun</title>
      <link>https://www.msoos.org/2010/12/distributed-sat-solving-is-fun/</link>
      <pubDate>Mon, 20 Dec 2010 17:45:33 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=551</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/LogoGrid5000.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/LogoGrid5000.png&#34;&gt;&lt;/a&gt; I have lately been trying to keep my promise I made on the &lt;a href=&#34;https://www.msoos.org/cryptominisat2&#34;&gt;webpage&lt;/a&gt; of CryptoMiniSat: &amp;ldquo;The long-term goals of CryptoMiniSat are to be an efficient sequential, parallel and distributed solver&amp;rdquo;. The first step was to make a relatively efficient sequential solver. With the winning of the SAT Race&#39;10, that was at least partially accomplished. The next step was to make the program parallel. Now, I have made it distributed. The parallel version was made using &lt;a href=&#34;http://www.openmp.org/&#34;&gt;OpenMP&lt;/a&gt;, and you can try it using the &amp;ldquo;master&amp;rdquo; branch from the git &lt;a href=&#34;http://gitorious.com/cryptominisat/&#34;&gt;repository&lt;/a&gt;. The distributed version uses &lt;a href=&#34;http://www.mcs.anl.gov/research/projects/mpi/&#34;&gt;MPI&lt;/a&gt;, which means it can probably work on most cluster/supercomputer architectures. This distributed version is currently alpha, and is not yet in the git repo.&lt;/p&gt;</description>
    </item>
    <item>
      <title>FPGA programming and SAT</title>
      <link>https://www.msoos.org/2010/09/fpga-programming-and-sat/</link>
      <pubDate>Mon, 13 Sep 2010 21:06:08 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=401</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/FPGA-pic-e1307467256310-150x117.jpg&#34;&gt;I have lately been trying to implement a cryptographic protocol (&lt;a href=&#34;http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4253016&#34;&gt;CryptoGPS&lt;/a&gt;) on an FPGA. First impressions are that &lt;a href=&#34;http://en.wikipedia.org/wiki/VHDL&#34;&gt;VHDL&lt;/a&gt; is a difficult language, but once understood, it&amp;rsquo;s not all that difficult to work with it. It took me ~2 weeks to get a hold on the language, but now it feels relatively easy to program in it. I have been looking forward to getting down and dirty with FPGAs, because it&amp;rsquo;s one of my long-term goals to somehow integrate SAT solvers with FPGAs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Parallelisation</title>
      <link>https://www.msoos.org/2010/05/parallelisation/</link>
      <pubDate>Wed, 05 May 2010 09:01:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=21</guid> 
      <description>&lt;p&gt;I have lately been reading the book &lt;a href=&#34;http://www.amazon.com/Using-OpenMP-Programming-Engineering-Computation/dp/0262533022&#34;&gt;Using OpenMP&lt;/a&gt; and thinking about how CryptoMiniSat could be &lt;a href=&#34;http://www.eecs.umich.edu/%7Evaleria/research/publications/IWLS06SAT.pdf&#34;&gt;parallelised&lt;/a&gt;. Apparently, there are multiple ways to achieve it. I haven&amp;rsquo;t yet had time to read through all previous approaches, but it seems there are at least two main ways to distribute the solving: through &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.40.9517&#34;&gt;guiding paths&lt;/a&gt; and using the idea of &lt;a href=&#34;http://jsat.ewi.tudelft.nl/content/volume6/JSAT6_12_Hamadi.pdf&#34;&gt;ManySat&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The first approach, guiding paths, decomposes the problem into multiple sub-problems, setting some variables to &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;. The problems are then solved completely independently with a master coordinating the effort. I don&amp;rsquo;t like this approach for two reasons. Firstly, for cryptographic problems, the decomposition can be made very well since the problem in its most abstract form (i.e. key, plaintext, ciphertext) is known, and so a very good guiding path can be calculated. However, even with this very good guiding path, the expected total time to solve is far more than if the problem was given to one solver instance. In other words, if we decompose the problem into 4 sub-problems, and each sub-problem takes on average T time to solve, then the total average time is 4T, but if we gave the problem to one solver, it would have found the solution on average in e.g. 2T time. In other words, the gain is not as much as one would hope. I would guess that this ratio (2T/4T = 1/2 in this case) is even worse when the problem&amp;rsquo;s abstract form is totally unknown (which is most of the time), and the solver has to guess a guiding path.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
