Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
- Add URL identification for boost
- Upgrade boost to allow macOS GPU build
  • Loading branch information
jhelison authored Nov 29, 2022
2 parents 1f9100e + f46841b commit 8ea40b3
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes

- [ ] Test A
- [ ] Test B

# Relevant notes

Notes about your pull request that may be useful for the reviewer
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "progpow"
version = "0.1.0"
authors = ["Brick Abode <a@a.com>"]
authors = ["Brick Abode <epiccash@brickabode.com>"]

[dependencies]
libc = "0.2.58"
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ProgPoW - Rust

ProgPoW is a proof-of-work algorithm designed to close the efficiency gap available to specialized ASICs. It utilizes almost all parts of commodity hardware (GPUs), and comes pre-tuned for the most common hardware.

This is a rust build of the current C++ algorithm.

## Build steps

To build the project you will have to specify if the application is `only CPU`, `OPENCL`, or `CUDA`.
To build for an application using **CPU**, execute the following line in the terminal:

```sh
cargo build
```

To build for an application using **CPUs/GPUs** use `OPENCL`. Execute the following line in the terminal to build with `OPENCL`:

```sh
cargo build --features opencl
```

If you have NVIDIA GPUs and your system has **the latest Nvidia drivers and the Cuda toolkit 9+ installed**, you can build the Cuda plugins using the following command:

```sh
cargo build --no-default-features --features cuda
```

## What was built

The rust library of the ProgPoW algorithm
6 changes: 3 additions & 3 deletions pp_full/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ cable_configure_toolchain(DEFAULT cxx11)

set(HUNTER_CONFIGURATION_TYPES Release)
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.20.34.tar.gz"
SHA1 "2f04d1beffdf39db1c40d8347beb8c10bbe9b8ed"
LOCAL
URL "https://github.com/ruslo/hunter/archive/v0.23.214.tar.gz"
SHA1 "e14bc153a7f16d6a5eeec845fb0283c8fad8c358"
LOCAL
)

project(progpow)
Expand Down
10 changes: 8 additions & 2 deletions pp_full/lib/cmake/Hunter/config.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
hunter_config(CURL VERSION ${HUNTER_CURL_VERSION} CMAKE_ARGS HTTP_ONLY=ON CMAKE_USE_OPENSSL=OFF CMAKE_USE_LIBSSH2=OFF)
hunter_config(libjson-rpc-cpp VERSION ${HUNTER_libjson-rpc-cpp_VERSION} CMAKE_ARGS TCP_SOCKET_SERVER=ON)
hunter_config(CURL VERSION ${HUNTER_CURL_VERSION} CMAKE_ARGS HTTP_ONLY=ON CMAKE_USE_OPENSSL=OFF CMAKE_USE_LIBSSH2=OFF CURL_CA_PATH=none)
hunter_config(libjson-rpc-cpp VERSION ${HUNTER_libjson-rpc-cpp_VERSION} CMAKE_ARGS TCP_SOCKET_SERVER=ON)
hunter_config(
Boost
VERSION 1.80.0_new_url
SHA1 4ff012adaa7d8952913be05bf4233005de48289c
URL https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
)

0 comments on commit 8ea40b3

Please sign in to comment.