http403 / pyrit

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

[PATCH] don't use CUDA and OpenCL on the same card #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile both the cuda and opencl modules
2. do pyrit_list_cores 

What is the expected output? What do you see instead?
############################
Pyrit 0.2.4 (svn r168) (C) 2008, 2009 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3

The ESSID-blobspace seems to be empty; you should create an ESSID...

The following cores seem available...
#1:  'CUDA-Device #1 'GeForce 8400 GS''
#2:  'CPU-Core (SSE2)'

############################
Pyrit 0.2.4 (svn r168) (C) 2008, 2009 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3

The ESSID-blobspace seems to be empty; you should create an ESSID...

NVIDIA Corporation
The following cores seem available...
#1:  'CUDA-Device #1 'GeForce 8400 GS''
#2:  'OpenCL-Device #1 'GeForce 8400 GS''
############################

What version of the product are you using? On what operating system?
0.2.4, linux/x86

Please provide any additional information below.

Seems to be a typo: here is a patch fixing it for me:

Index: cpyrit/cpyrit.py
===================================================================
--- cpyrit/cpyrit.py    (revision 168)
+++ cpyrit/cpyrit.py    (working copy)
@@ -228,7 +228,7 @@
         # OpenCL
         if 'cpyrit._cpyrit_opencl' in sys.modules:
             for dev_idx, device in enumerate(_cpyrit_opencl.listDevices()):
-                if device[1] != 'NVIDIA Corporation' or
'_cpyrit._cpyrit_cuda' not in sys.modules:
+                if device[1] != 'NVIDIA Corporation' and
'_cpyrit._cpyrit_cuda' not in sys.modules:
                     self.cores.append(OpenCLCore(queue=self, dev_idx=dev_idx))
                     ncpus -= 1
         # ATI

Original issue reported on code.google.com by nextg...@gmail.com on 4 Oct 2009 at 6:36

GoogleCodeExporter commented 9 years ago
thanks for reporting. actually the problem is that the module was rennamed from
'_cpyrit._cpyrit_cuda' to 'cpyrit._cpyrit_cuda'. It should read:

if device[1] != 'NVIDIA Corporation' or 'cpyrit._cpyrit_cuda' not in 
sys.modules:

Original comment by lukas.l...@gmail.com on 4 Oct 2009 at 7:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r178.

Original comment by lukas.l...@gmail.com on 5 Oct 2009 at 9:06