Quote Originally Posted by ternarybit View Post
You missed the period at the end of the command, which tells cmake that the <path-to-source> is the current working directory Be sure to run:
Code:
cmake .
Indeed..thanks a lot.

Now first the good news: Pyrit and Cal++ works and no segmentation fault in my laptop.

Now the bad news. while installing Cal++ I have received host of errors:

Code:
root@bt:/tmp/pyrit/cpyrit_calpp# python setup.py build && python setup.py install
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_calpp' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include -I/usr/include/python2.6 -c _cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.6/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION="0.4.0-dev (svn r308)"
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include -I/usr/include/python2.6 -c _cpyrit_calpp_kernel.cpp -o build/temp.linux-x86_64-2.6/_cpyrit_calpp_kernel.o -Wall -fno-strict-aliasing -DVERSION="0.4.0-dev (svn r308)"
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
_cpyrit_calpp_kernel.cpp: In function ‘void sha1_process(const SHA_DEV_CTX&, SHA_DEV_CTX&)’:
_cpyrit_calpp_kernel.cpp:429: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:431: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:434: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:437: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:440: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:443: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:446: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:449: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:452: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:455: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:458: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:461: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:464: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:467: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:470: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:473: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:477: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:481: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:485: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:490: warning: suggest parentheses around arithmetic in operand of ‘^’
_cpyrit_calpp_kernel.cpp:595: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:599: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:605: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:609: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:615: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:619: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:625: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:629: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:635: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:639: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:645: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:649: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:655: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:659: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:665: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:669: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:675: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:679: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:685: warning: suggest parentheses around arithmetic in operand of ‘|’
_cpyrit_calpp_kernel.cpp:689: warning: suggest parentheses around arithmetic in operand of ‘|’
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/cpyrit
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/_cpyrit_calpp.o build/temp.linux-x86_64-2.6/_cpyrit_calpp_kernel.o -lcrypto -laticalrt -laticalcl -o build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_calpp.so
running install
running build
running build_ext
Building modules...
running install_lib
copying build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_calpp.so -> /usr/local/lib/python2.6/dist-packages/cpyrit
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/cpyrit_calpp-0.4.0_dev._svn.r308_.egg-info
Now to test Pyrit:

Code:
root@bt:~# pyrit list_cores
/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn r308)') and <module 'cpyrit._cpyrit_calpp' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn r308)')

  "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1:  'CAL++ Device #1 'ATI RV710''
#2:  'CPU-Core (SSE2)'
#3:  'CPU-Core (SSE2)'
#4:  'CPU-Core (SSE2)'
root@bt:~# pyrit benchmark
/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn r308)') and <module 'cpyrit._cpyrit_calpp' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn r308)')

  "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Running benchmark (2748.4 PMKs/s)... | 

Computed 2748.44 PMKs/s total.
#1: 'CAL++ Device #1 'ATI RV710'': 1733.7 PMKs/s (RTT 2.3)
#2: 'CPU-Core (SSE2)': 398.9 PMKs/s (RTT 2.9)
#3: 'CPU-Core (SSE2)': 387.2 PMKs/s (RTT 3.1)
#4: 'CPU-Core (SSE2)': 386.3 PMKs/s (RTT 2.9)

root@bt:~#
Also cracking speed seems to be not flash rather.

Thanks a lot