Git Product home page Git Product logo

dsat's Introduction

dsat

A distributed sat solver implemented in c.

Configure the .env file

The .env file is used by the docker/docker.sh bash script to build the docker image and run the container.

To create the .env file, use the template in the sample_dot_env file, or rename it to .env.

Build the docker image and run the project container

$ chmod +x ./docker/docker.sh
$ cd docker/ && ./docker.sh build && cd ..
$ ./docker/docker.sh run
root@e698a84bf24c:/dsat#

Build the binary files from the container

root@e698a84bf24c:/dsat# make
rm -rf out/*
gcc -pedantic -std=gnu99 -Wall -fsanitize=address -lrt -pthread -I./src/include -o out/app src/app.c src/utils.c src/shmADT.c src/dispatcherADT.c
gcc -pedantic -std=gnu99 -Wall -fsanitize=address -lrt -pthread -I./src/include -o out/slave src/slave.c src/utils.c
gcc -pedantic -std=gnu99 -Wall -fsanitize=address -lrt -pthread -I./src/include -o out/view src/view.c src/utils.c src/shmADT.c src/dispatcherADT.c

Run the app from the container

Mode 1 (with app running in background):

root@e698a84bf24c:/dsat# out/app $(DIRECTORIES) &
<info>
root@e698a84bf24c:/dsat# out/view <info>

where one must input manually the <info> provided by the app program.

Mode 2 (using pipes):

root@e698a84bf24c:/dsat# out/app $(DIRECTORIES) | out/view

where DIRECTORIES are all the relative paths to the .cnf files.

Diagram of the inter process communication

dsat-diagram

Docs

For more information about the use of the docker container and makefile read docker and makefile

dsat's People

Contributors

lvittor avatar m-bartel avatar festevezz avatar mbartellini avatar

Watchers

 avatar

dsat's Issues

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.