fekriomar / pyrit

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

cal++ and open-cl conflict (My error) #246

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have been trying to install cal++ without removing my previous installation, 
so i have got this when i run it:

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.0-dev 
(svn r288)') and <module 'cpyrit._cpyrit_opencl' from 
'/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_opencl.so'> ('0.3.0')

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

Running benchmark (45872.0 PMKs/s)... \ 

Computed 45871.95 PMKs/s total.
#1: 'OpenCL-Device 'Cypress'': 44520.4 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 925.4 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 923.9 PMKs/s (RTT 3.0)
#4: 'CPU-Core (SSE2)': 920.8 PMKs/s (RTT 3.0)
#5: 'CPU-Core (SSE2)': 926.7 PMKs/s (RTT 3.0)
#6: 'CPU-Core (SSE2)': 925.8 PMKs/s (RTT 3.0)
#7: 'Network-Clients': 0.0 PMKs/s (RTT 0.0)

Not technically an issue but it would be great to have some information on 
unisntalling pyrit and its components and how to cleanly install cpyrit-cal++

Ubuntu 10.10

Thanks a lot!

Original issue reported on code.google.com by Keylogge...@gmail.com on 25 Jan 2011 at 5:59

GoogleCodeExporter commented 8 years ago
delete the file /usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_opencl.so 
to remove the opencl-plugin

Original comment by lukas.l...@gmail.com on 25 Jan 2011 at 8:07

GoogleCodeExporter commented 8 years ago
I started again, by removing the pyrit_svn files however i now have an issue 
when i try to compile cpyrit_calpp:

sudo ./setup.py build
[sudo] password for middle: 
unavailable enviroment variable ATISTREAMSDKROOT
Traceback (most recent call last):
  File "./setup.py", line 35, in <module>
    CALPP_INC_DIR = os.environ['ATISTREAMSDKROOT']
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'ATISTREAMSDKROOT'

Thanks a lot!

Original comment by Keylogge...@gmail.com on 25 Jan 2011 at 8:24

GoogleCodeExporter commented 8 years ago
For environment variable to be visible in executed programs you must use export 
keyword. So you need to type
export ATISTREAMSDKROOT=/directory_with_sdk

Original comment by hazema...@gmail.com on 26 Jan 2011 at 11:28

GoogleCodeExporter commented 8 years ago
Sorry me again, i am on a clean install of Ubuntu 10.10 and i decided to have a 
go at getting cpyrit_call++ to work however i hit the same hurdle as before:

middle@The-Beast:~/Desktop/pyrit_svn/cpyrit_calpp$ echo $ATISTREAMSDKROOT
/ati-stream-sdk-v2.3-lnx32

middle@The-Beast:~/Desktop/pyrit_svn/cpyrit_calpp$ export 
ATISTREAMSDKROOT=/ati-stream-sdk-v2.3-lnx32

middle@The-Beast:~/Desktop/pyrit_svn/cpyrit_calpp$ sudo ./setup.py build
unavailable enviroment variable ATISTREAMSDKROOT
Traceback (most recent call last):
  File "./setup.py", line 35, in <module>
    CALPP_INC_DIR = os.environ['ATISTREAMSDKROOT']
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'ATISTREAMSDKROOT'

Any suggestions?

Original comment by Keylogge...@gmail.com on 15 Feb 2011 at 10:56

GoogleCodeExporter commented 8 years ago
su to root before exporting ATISTREAMSDKROOT

Original comment by lukas.l...@gmail.com on 16 Feb 2011 at 7:23

GoogleCodeExporter commented 8 years ago
I have installed everything correctly but i still get this problem, it is 
driving me mad!

Does cal++ need to be version 0.8, not 0.9?

Original comment by Keylogge...@gmail.com on 16 Feb 2011 at 3:30