A server for creating Spacemesh proof of space data files using one or more supported system gpus.
The service provides a grpc service for clients to configure it, submit pos jobs and get jobs execution progress.
Reuqested client jobs are executed using the system's available supported gpus.
To run the server, you need to have at least one supported gpu or set the use_cpu_provider
config param to true to use the system's cpu. This is not recommended to production, only for testing.
You must include a gpu-post c-library for the platform you are building this project on.
./pos-compute/resources
directory. On macOS, the library file name is libgpu-setup.dylib
and on Linux it is libgpu-setup.so
.
On Windows, copy both gpu-setup.dll
and gpu-setup.lib
.make
Copy all files from crates/pos-compute/resources/
to target/debug/
.
make test
pos-service
executable directory.export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH
. linux: use LD_LIBRARY_PATH.pos-service
process.pos-compute
crate.pos-api
crate.pos-service
create to provide safe read/write to server state from tasks.