Results 1 to 5 of 5

Thread: CPyrit-OpenCL installation issue with headers.

  1. #1
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    14

    Default CPyrit-OpenCL installation issue with headers.

    I am running a 64bit core i7 with an ATI 5800 series video card.

    I have successfully installed pyrit, the latest ATI drivers, and AMD-APP-SDK (tested the samples and they pass).

    I am now trying to install Cpyrit-OpenCL to make use of my ATI card.

    When I go to build setup.py this is what I get:

    Code:
    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.6 -c _cpyrit_opencl.c -o build/temp.linux-x86_64-2.6/_cpyrit_opencl.o -DVERSION="0.3.0"
    _cpyrit_opencl.c:23:19: error: CL/cl.h: No such file or directory
    _cpyrit_opencl.c:46: error: expected specifier-qualifier-list before ‘cl_device_id’
    _cpyrit_opencl.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    _cpyrit_opencl.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘num_platforms’
    _cpyrit_opencl.c:63: error: expected ‘)’ before ‘error’
    _cpyrit_opencl.c: In function ‘oclplatf_init’:
    _cpyrit_opencl.c:122: error: ‘cl_uint’ undeclared (first use in this function)
    _cpyrit_opencl.c:122: error: (Each undeclared identifier is reported only once
    _cpyrit_opencl.c:122: error: for each function it appears in.)
    _cpyrit_opencl.c:122: error: expected ‘;’ before ‘num_devices’
    _cpyrit_opencl.c:123: error: ‘cl_int’ undeclared (first use in this function)
    _cpyrit_opencl.c:123: error: expected ‘;’ before ‘err’
    _cpyrit_opencl.c:130: error: ‘num_platforms’ undeclared (first use in this function)
    ..... many more similar errors

    I fear that although working, I may have installed either my ati drivers or the ATI APP wrong, or in the wrong place.

    I admit I am probably testing my limits since I am fairly new to linux.

    I've searched and the only thing that seemed to relate to my problem was someone saying that GCC was a different version than the ATI driver used, but that didn't really make sense to me. Any ideas? If more info is needed let me know and I will gladly provide it. Thanks in advance.

  2. #2
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    14

    Default Re: CPyrit-OpenCL installation issue with headers.

    FWIW I just got CUDA working on my GTS 250. A nice upgrade from the ~2000 PMK/s to ~8000 PMK/s.

    Really hoping to get my 5800 up and running to see what I can get on that.

    I'm going to reinstall everything from scratch and pay more attention to where I'm installing things and try and keep it a bit cleaner.

  3. #3
    Just burned his ISO
    Join Date
    Jan 2011
    Posts
    2

    Default Re: CPyrit-OpenCL installation issue with headers.

    i got the same problem. My computer amd 3 core with nvidia gtx275. Already install gcc, cudatoolkit and libssl-dev. Pyrit ok but Cuda error. How u get it working? Any solution?

  4. #4
    Member
    Join Date
    Sep 2010
    Location
    Eastern Island
    Posts
    96

    Default Re: CPyrit-OpenCL installation issue with headers.

    hello FullOn,

    as you can see on its logs, e.g. [ _cpyrit_opencl.c:23:19: error: CL/cl.h: No such file or directory ], it means that the setup cant find the path of your headers. so you need to edit the setup file, look for the line with ATICL something, then change to the path where the atiappsdk is, which is for CL headers, like atiappsdk/blahblah/CL/. double check the location if it contains the header files, e.g. [ openCL.h, blahblah.h, blahblah2.h ]

  5. #5
    Member
    Join Date
    Sep 2010
    Location
    Eastern Island
    Posts
    96

    Default Re: CPyrit-OpenCL installation issue with headers.

    also please take a look on google, there are plenty of solutions there. you can trial and error installing it so you will know what is really happening during the installation. for me, it took me 8 hours to understand the setup. )
    Last edited by sostentado; 11-08-2011 at 09:42 PM.

Similar Threads

  1. Problems with ATI drivers, OpenCL SDK and Cpyrit
    By DementiaPraecox in forum Beginners Forum
    Replies: 3
    Last Post: 02-16-2011, 02:54 AM
  2. BT4 R2 installation issue
    By aerokid240 in forum Beginners Forum
    Replies: 10
    Last Post: 12-01-2010, 04:20 PM
  3. cpyrit-opencl-0.3.1
    By kataibrengsek in forum Beginners Forum
    Replies: 2
    Last Post: 07-30-2010, 08:20 AM
  4. VMWare Image Installation issue
    By delusion in forum Beginners Forum
    Replies: 3
    Last Post: 01-31-2010, 05:02 PM
  5. USB-HDD Installation Issue
    By imported_l1nuxant_ee in forum OLD Newbie Area
    Replies: 14
    Last Post: 09-13-2007, 12:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •