Pyrit does not detect gtx750Ti with driver 384.130 and cuda_10 with SystemError: Unknown CUresult.
I have cloned pyrit from git and I have installed cuda_10.0.130_410.48 and set
use_CUDA = true
but when I run pyrit list_cores
$ pyrit list_cores
Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
The following cores seem available...
#1: 'CPU-Core (SSE2)'
#2: 'CPU-Core (SSE2)'
It does not show my GTX 750Ti ? Im using ubuntu 16.04
Edit: When I run setup.py install from cpyrit I got thiss error
python setup.py clean build install
running clean
Removing temporary files and pre-built GPU-kernels...
running build
running build_ext
Compiling CUDA module using nvcc 10.0, V10.0.130...
Executing '/usr/local/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu'
clang: No such file or directory
Traceback (most recent call last):
File "setup.py", line 166, in <module>
setup(**setup_args)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 91, in run
subprocess.check_call(nvcc_cmd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' returned non-zero exit status 1
Ok I found this and changed few things but now Im getting this error
$ pyrit list_cores
Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
Traceback (most recent call last):
File "/usr/local/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 294, in list_cores
with cpyrit.cpyrit.CPyrit() as cp:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 442, in __init__
self.CUDAs.append(CUDACore(queue=self, dev_idx=dev_idx))
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 243, in __init__
_cpyrit_cuda.CUDADevice.__init__(self, dev_idx)
SystemError: Unknown CUresult.
Ok I finally got it, first download
sudo apt-get install nvidia-cuda-* than download this version of pyrit which works on ubunutu 16.04 LTS,
than
sudo python setup.py build install then
cd modules/cpyrit_cuda/ and finish with
sudo python setup.py build install
Hi, it tested this with the current master and a gtx750TI , it worked with the git version ! No download from mega is needed anymore. First for me this is rather a false use of the clang version and you have to set it to clang-3.9. Then Second big part it the missing documentation, if you want to have cuda/opencl enabled in pyrit it should be told that you have to run setup.py in the modules folder