GithubHelp home page GithubHelp logo

fmolnar-notredame / analogsat Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 209 KB

Simulations of continuous-time dynamical systems (CTDS) that solve Boolean satisfiability (SAT) problems.

License: GNU General Public License v3.0

Shell 0.30% C 0.37% C++ 80.81% Cuda 18.52%

analogsat's Introduction

AnalogSat

Simulations of continuous-time dynamical systems (CTDS) that solve Boolean satisfiability (SAT) problems or minimize the number of violated clauses (MAXSAT).

Corresponding publication:
"Accelerating a continuous-time SAT solver using GPUs",
F. Molnar, S. R. Kharel, X. S. Hu, Z. Toroczkai,
Computer Physics Communications, Volume 256, November 2020, 107469.
DOI: https://doi.org/10.1016/j.cpc.2020.107469

This work was supported in part by the National Science Foundation under Grants CCF-1644368, 1640081 and CNS1629914, and by the Nanoelectronics Research Corporation, a wholly-owned subsidiary of the Semiconductor Research Corporation, through Extremely Energy Efficient Collective Electronics, an SRC-NRI Nanoelectronics Research Initiative under Research Task ID 2698.004.

This software package contains 3 separate modules:

  • (1) AnalogSat library
  • (2) MiniSat for AnalogSat library
  • (3) AnalogSat Frontend

Each module can be compiled and used on its own. Each module is licensed under GNU GPL v3. See the license file in the folders of each module.

The code needs NVIDIA CUDA Toolkit (minimum version 9.2) to compile, but its CPU-based solvers can be used without a CUDA-compatible GPU.

The AnalogSat library (1) is the core implementation of the Boolean satisfiability (SAT) solver described in the paper.

The MiniSat for AnalogSat library (2) is a modified version of the original MiniSat software by Niklas Een and Niklas Sorensson. It is based on the latest available version of MiniSat (version 2.2.0) on http://minisat.se. The purpose of the modifications is to make the MiniSat code accessible via the AnalogSat Frontend. In addition, linux-specific parts (linux-specific timing and interrupts) have been removed. The solving algorithm has not been modified.

The AnalogSat Frontend (3) is a command-line interface to run SAT problems through the solver. It also comes with predefined configurations that allow the user to recreate the results shown in the paper.

analogsat's People

Contributors

fmolnar-notredame avatar ztoroczkai avatar

Stargazers

 avatar  avatar Sean R.B. Bearden avatar

Watchers

Sean R.B. Bearden avatar Shubha Raj Kharel avatar  avatar

analogsat's Issues

Compilation Error

[On Linux] I compiled MiniSat and AnalogSat (the '.a' files are generated) but when I try compiling Frontend:

$./build.sh
...
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-5_bench_runner.o: in function `BenchRunner::RunMinisat()':
bench_runner.cpp:(.text+0x3b7): undefined reference to `Minisat::SolveWithMinisat(Minisat::MemoryCNF&, int, char**, std::function<bool ()>)'
/usr/bin/ld: bench_runner.cpp:(.text+0x449): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-5_bench_runner.o: in function `BenchRunner::RunMinisat() [clone .cold]':
bench_runner.cpp:(.text.unlikely+0x5e): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-6_cnf_runner.o: in function `SolveUsingMinisat(analogsat::SatProblem const&, Configuration const&, std::vector<double, std::allocator<double> >*)':
cnf_runner.cpp:(.text+0x244): undefined reference to `Minisat::SolveWithMinisat(Minisat::MemoryCNF&, int, char**, std::function<bool ()>)'
/usr/bin/ld: cnf_runner.cpp:(.text+0x32c): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-6_cnf_runner.o: in function `SolveUsingMinisat(analogsat::SatProblem const&, Configuration const&, std::vector<double, std::allocator<double> >*) [clone .cold]':
cnf_runner.cpp:(.text.unlikely+0x31): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-10_minisat_adapter.o: in function `analogsat::MinisatAdapter::~MinisatAdapter()':
minisat_adapter.cpp:(.text._ZN9analogsat14MinisatAdapterD2Ev[_ZN9analogsat14MinisatAdapterD5Ev]+0x25): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-10_minisat_adapter.o: in function `analogsat::MinisatAdapter::~MinisatAdapter()':
minisat_adapter.cpp:(.text._ZN9analogsat14MinisatAdapterD0Ev[_ZN9analogsat14MinisatAdapterD5Ev]+0x24): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-10_minisat_adapter.o: in function `analogsat::MinisatAdapter::MinisatAdapter(analogsat::SatProblem const&) [clone .cold]':
minisat_adapter.cpp:(.text.unlikely+0x12): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-10_minisat_adapter.o:(.data.rel.ro._ZTIN9analogsat14MinisatAdapterE[_ZTIN9analogsat14MinisatAdapterE]+0x10): undefined reference to `typeinfo for Minisat::MemoryCNF'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-12_ramsey_runner.o: in function `RamseyRunner::RunMinisat()':
ramsey_runner.cpp:(.text+0x67a): undefined reference to `Minisat::SolveWithMinisat(Minisat::MemoryCNF&, int, char**, std::function<bool ()>)'
/usr/bin/ld: ramsey_runner.cpp:(.text+0x810): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
/usr/bin/ld: /tmp/tmpxft_0033a356_00000000-12_ramsey_runner.o: in function `RamseyRunner::RunMinisat() [clone .cold]':
ramsey_runner.cpp:(.text.unlikely+0x2da): undefined reference to `Minisat::MemoryCNF::~MemoryCNF()'
collect2: error: ld returned 1 exit status

And:

$nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0

running the command with '-v': https://pastebin.com/9twRB3b0
P.S. efforts to get it to compile with clang-14 have also failed.
Tried another (actually older cuda) worked, see: https://forums.developer.nvidia.com/t/compilation-linking-error/210349 for a dump comparison, because I'd still be happy to know what went wrong in the new nvcc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.