freewso / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

make pyrit run on only GPU and one core #472

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Not really and issue maby. But how do i set pyrit to not run on all cores the 
computer is unusable while running and the cores don't contribute that much 
compared to the GPU.

What steps will reproduce the problem?
run pyrit

What version of the product are you using? On what operating system?
cpyrit-cuda-0.4.0.tar.gz
pyrit-0.4.0.tar.gz
Ubuntu 14.10

The following cores seem available...
#1:  'CUDA-Device #1 'GeForce GTX 570''
#2:  'CPU-Core (SSE2)'
#3:  'CPU-Core (SSE2)'
#4:  'CPU-Core (SSE2)'

Original issue reported on code.google.com by NilsErik...@gmail.com on 8 Mar 2015 at 11:52

GoogleCodeExporter commented 8 years ago
Here's one way

--- pyrit/cpyrit/cpyrit.py
+++ pyrit/cpyrit/cpyrit-nocpus.py
@@ -432,7 +432,7 @@
         self.cores = []
         self.cv = threading.Condition()

-        ncpus = util.ncpus
+        ncpus = util.ncpus -1

         # CUDA
         if 'cpyrit._cpyrit_cuda' in sys.modules:

Original comment by tecnoto...@gmail.com on 31 Mar 2015 at 1:31

GoogleCodeExporter commented 8 years ago
kernel smp?  amd64? 

Original comment by deltomaf...@gmail.com on 7 Aug 2015 at 12:25