Skip to content

Commit

Permalink
Snap cuda fullnode
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 20, 2018
1 parent 89fc0ad commit 65473d3
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ description: |
710,000 tx/s with off-the-shelf hardware and no sharding.
Scales with Moore's Law.
grade: devel
confinement: strict

# TODO: solana-perf-fullnode does not yet run with 'strict' confinement due to the
# CUDA dependency, so use 'devmode' confinement for now
confinement: devmode

apps:
cuda-fullnode:
command: solana-cuda-fullnode
fullnode:
command: solana-fullnode
plugs:
Expand All @@ -29,6 +34,44 @@ apps:
command: solana-mint-demo

parts:
solana-perf:
plugin: dump
build-attributes: [no-system-libraries]
source: https://solana-perf.s3.amazonaws.com/master/x86_64-unknown-linux-gnu/solana-perf.tgz
prime:
- solana-perf-HEAD.txt
solana-cuda:
plugin: rust
rust-channel: stable
rust-features:
- erasure
- cuda
prime:
- bin/solana-cuda-fullnode
override-build: |
cp -f $SNAPCRAFT_STAGE/libcuda_verify_ed25519.a .
cp -f $SNAPCRAFT_STAGE/libJerasure.so .
cp -f $SNAPCRAFT_STAGE/libgf_complete.so .
snapcraftctl build
mv $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode $SNAPCRAFT_PART_INSTALL
rm -rf $SNAPCRAFT_PART_INSTALL/bin/*
mv $SNAPCRAFT_PART_INSTALL/solana-fullnode $SNAPCRAFT_PART_INSTALL/bin/solana-cuda-fullnode
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
after:
- solana-perf
solana:
plugin: rust
rust-features:
- erasure
rust-channel: stable
override-build: |
cp -f $SNAPCRAFT_STAGE/libJerasure.so .
cp -f $SNAPCRAFT_STAGE/libgf_complete.so .
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
after:
- solana-perf

0 comments on commit 65473d3

Please sign in to comment.