README 1.4 KB

123456789101112131415161718192021222324252627
  1. ___SYNOPSYS___
  2. This repository contains tests to measure the latency of IPE's DMA communication. There are several tests and they can be used with different harware configuration (BIOS or nvidia-smi changes).
  3. All the tests have been run on ipepascal1, so some configurations may vary with the target.
  4. ___DEPENDENCIES___
  5. It uses several internal libraries such as ddrio, pcitool or ipedma, and the gdrcopy Github repository. They all should be installed in their default location.
  6. ___LAUNCH___
  7. It is necessary to insert the gdrdrv from gdrcopy by using the provided insmod.sh script, as root.
  8. The executables are all located in the build directory. They need root access privilege.
  9. In the build directory:
  10. run #./reload_cmake.sh
  11. to generate the Makefile
  12. run #make
  13. to compile the executables
  14. run #LD_LIBRARY_PATH=/usr/local/lib64 ./EXEC.sh ITER
  15. where EXEC is the name of an executable and ITER the number of tests to run
  16. The outputs are the files EXEC.csv and EXEC.export.csv. The later is processed by the script to provide a more usable csv file.
  17. The tests may also be launched individually with:
  18. #CUDA_VISIBLE_DEVICES=X LD_LIBRARY_PATH=/usr/local/lib64 ./EXEC NB_BYTES
  19. where NB_BYTES is the number of bytes to transfer from the FPGA. It can be 256, 512, 1024, 2048, 4096, 8196 or 16384. The scripts EXEC.sh use 4096 bytes as a default.
  20. Use CUDA_VISIBLE_DEVICES to choose the GPU to use for the test. The X number controls this.