我想将我的GPU与Pyrit一起使用。我使用Ubuntu 11.10,ATI Radeon HD 68xx和i7 2600K。
完成步骤:
运行基准测试时,我得到:
~$ pyrit benchmark
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Running benchmark (5037.4 PMKs/s)... -
Computed 5037.45 PMKs/s total.
#1: 'CPU-Core (SSE2)': 667.8 PMKs/s (RTT 3.2)
#2: 'CPU-Core (SSE2)': 661.6 PMKs/s (RTT 3.2)
#3: 'CPU-Core (SSE2)': 664.0 PMKs/s (RTT 3.2)
#4: 'CPU-Core (SSE2)': 660.5 PMKs/s (RTT 3.2)
#5: 'CPU-Core (SSE2)': 669.7 PMKs/s (RTT 3.2)
#6: 'CPU-Core (SSE2)': 656.3 PMKs/s (RTT 3.2)
#7: 'CPU-Core (SSE2)': 667.4 PMKs/s (RTT 3.2)
#8: 'CPU-Core (SSE2)': 662.6 PMKs/s (RTT 3.1)
如何确保正确安装了AMD APP SDK?
如何配置Pyrit以使用OpenCL和我的GPU?
编辑:
卸载Pyrit,然后重新安装AMD APP SDK。尝试为Pyrit编译OpenCL支持模块时,出现以下错误:
$ sudo python setup.py build
The headers required to build the OpenCL-kernel were not found. Trying to continue anyway...
svn: '.' is not a working copy
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_opencl' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c _cpyrit_opencl.c -o build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -DVERSION="0.3.0"
_cpyrit_opencl.c:23:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
这是我在Ubuntu Server 11.04上最终完成的方式
安装最小的X11环境:
aptitude install xserver-xorg xserver-xorg-core xserver-xorg-input-evdev xserver-xorg-video-ati lightdm unity-greeter openbox
然后,编辑/etc/lightdm/lightdm.conf并添加以下内容(用将要运行hashcat的用户替换YOUR_USER_NAME):
[SeatDefaults]
greeter-session=unity-greeter
user-session=openbox
autologin-user=YOUR_USER_NAME
autologin-user-timeout=0
然后将您的用户名添加到nopasswdlogin组:
usermod -a -G nopasswdlogin $USERNAME
获取Catalyst的构建依赖关系:
aptitude build-dep fglrx
下载并安装Catalyst 12.8:
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-8-x86.x86_64.zip
unzip amd-driver-installer-12-8-x86.x86_64.zip
sh amd-driver-installer-8.982-x86.x86_64.run --uninstall=force
sh amd-driver-installer-8.982-x86.x86_64.run
生成一个新的xorg.conf:
rm -f /etc/X11/xorg.conf*
amdconfig --adapter=all --initial
确保设置了DISPLAY env var:
echo 'export DISPLAY=:0' >>~/.bashrc
重新启动,您应该已经准备就绪。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句