You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 802 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Example of latency using CUDA Zero Copy instead of regular Shared Memory over CPU
  2. ## Install
  3. ```bash
  4. pip install dora-rs-cli # if not already present
  5. # Install pyarrow with gpu support
  6. conda install pyarrow "arrow-cpp-proc=*=cuda" -c conda-forge
  7. ## Test installation with
  8. python -c "import pyarrow.cuda"
  9. # Install numba for translation from arrow to torch
  10. pip install numba
  11. ## Test installation with
  12. python -c "import numba.cuda"
  13. # Install torch if it's not already present
  14. pip install torch
  15. ## Test installation with
  16. python -c "import torch; assert torch.cuda.is_available()"
  17. ```
  18. ## Run
  19. ```bash
  20. dora run cpu_bench.yml
  21. dora run cuda_bench.yml
  22. cat benchmark_data.csv
  23. ```
  24. ## To run the demo code
  25. ```bash
  26. dora up
  27. dora start demo_bench.yml --detach
  28. python demo_receiver.py
  29. dora destroy
  30. ```