Advertisement
nodetx

Amazon Linux GPU Pyrit Command Journal

Mar 19th, 2016
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. Deploy Official Amazon Linux Marketetplace AMI with GRID driver:
  2.  
  3. https://aws.amazon.com/marketplace/pp/B00FYCDDTE
  4.  
  5. SSH in
  6.  
  7. // Install Cuda Tools - AND also install driver!
  8.  
  9. wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
  10. sudo /bin/bash ./cuda_7.5.18_linux.run
  11.  
  12. // Test CUDA
  13.  
  14. cd /usr/local/cuda/samples/1_Utilities/deviceQuery
  15. sudo make
  16. ./deviceQuery
  17.  
  18. // If OK output should look like this:
  19.  
  20. CUDA Device Query (Runtime API) version (CUDART static linking)
  21.  
  22. Detected 1 CUDA Capable device(s)
  23.  
  24. Device 0: "GRID K520"
  25. CUDA Driver Version / Runtime Version 7.5 / 7.5
  26. CUDA Capability Major/Minor version number: 3.0
  27. Total amount of global memory: 4096 MBytes (4294770688 bytes)
  28. ( 8) Multiprocessors, (192) CUDA Cores/MP: 1536 CUDA Cores
  29. GPU Max Clock rate: 797 MHz (0.80 GHz)
  30. Memory Clock rate: 2500 Mhz
  31. Memory Bus Width: 256-bit
  32. L2 Cache Size: 524288 bytes
  33. Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
  34. Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
  35. Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
  36. Total amount of constant memory: 65536 bytes
  37. Total amount of shared memory per block: 49152 bytes
  38. Total number of registers available per block: 65536
  39. Warp size: 32
  40. Maximum number of threads per multiprocessor: 2048
  41. Maximum number of threads per block: 1024
  42. Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  43. Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
  44. Maximum memory pitch: 2147483647 bytes
  45. Texture alignment: 512 bytes
  46. Concurrent copy and kernel execution: Yes with 2 copy engine(s)
  47. Run time limit on kernels: No
  48. Integrated GPU sharing Host Memory: No
  49. Support host page-locked memory mapping: Yes
  50. Alignment requirement for Surfaces: Yes
  51. Device has ECC support: Disabled
  52. Device supports Unified Addressing (UVA): Yes
  53. Device PCI Domain ID / Bus ID / location ID: 0 / 0 / 3
  54. Compute Mode:
  55. < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
  56.  
  57. deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.5, CUDA Runtime Version = 7.5, NumDevs = 1, Device0 = GRID K520
  58. Result = PASS
  59.  
  60. // Install Pyrit
  61.  
  62. cd ~/
  63.  
  64. wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pyrit/cpyrit-cuda-0.4.0.tar.gz
  65. wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pyrit/pyrit-0.4.0.tar.gz
  66. tar -xvf pyrit-0.4.0.tar.gz
  67. cd pyrit-0.4.0
  68. sudo yum install openssl-devel
  69. sudo yum install libpcap-devel
  70. sudo python setup.py build
  71. sudo python setup.py install
  72. pyrit
  73. cd ..
  74. tar -xvf cpyrit-cuda-0.4.0.tar.gz
  75. cd cpyrit-cuda-0.4.0
  76. sudo python setup.py build
  77. sudo python setup.py install
  78. pyrit list_cores
  79.  
  80. // output should look like this:
  81.  
  82. Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
  83. This code is distributed under the GNU General Public License v3+
  84.  
  85. The following cores seem available...
  86. #1: 'CUDA-Device #1 'GRID K520''
  87. #2: 'CPU-Core (SSE2)'
  88. #3: 'CPU-Core (SSE2)'
  89. #4: 'CPU-Core (SSE2)'
  90. #5: 'CPU-Core (SSE2)'
  91. #6: 'CPU-Core (SSE2)'
  92. #7: 'CPU-Core (SSE2)'
  93. #8: 'CPU-Core (SSE2)'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement