diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 35a0bac5b9a809..f6fdb03fd394c3 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -77,9 +77,16 @@ parts: plugin: nil prime: - bin - - usr/lib/libgf_complete.so.1 - - usr/lib/libJerasure.so.2 + - usr/lib override-build: | + # Install CUDA 9.2 runtime + mkdir -p $SNAPCRAFT_PART_INSTALL/usr/ + cp -rav /usr/local/cuda-9.2/targets/x86_64-linux/lib/ $SNAPCRAFT_PART_INSTALL/usr/lib + mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/x86_64-linux-gnu/ + cp -rav /usr/lib/x86_64-linux-gnu/libcuda.* $SNAPCRAFT_PART_INSTALL/usr/lib/x86_64-linux-gnu/ + mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/nvidia-396/ + cp -v /usr/lib/nvidia-396/libnvidia-fatbinaryloader.so* $SNAPCRAFT_PART_INSTALL/usr/lib/nvidia-396/ + # Build/install solana-fullnode-cuda ./fetch-perf-libs.sh cargo install --features=cuda,erasure --root $SNAPCRAFT_PART_INSTALL --bin solana-fullnode