A high-performance CUDA client for pastebeam, leveraging GPU acceleration to speed up uploads.
- CUDA
- Boost
git clone https://github.com/tsoding/pastebeam-cuda-client.git
cd pastebeam-cuda-client
nvcc pastebeam_client.cu \
-std=c++20 \
-O3 \
-Xcompiler "-march=native -O3" \
-use_fast_math \
-Xptxas="-O3,-v" \
-arch=native \
--relocatable-device-code=false \
-o pastebeam_client
Once compiled, the client supports two primary commands: post
(upload) and get
(download).
-
Upload a file
./pastebeam_client post path/to/file.txt
-
Retrieve a paste by its hash
./pastebeam_client get C62872F9E0E9C575546166CE4ACB528A46E54BA4ED8AF076E79C0D5AD61C974B
Distributed under the MIT License. See LICENSE for more information.