Results 1 to 4 of 4

Thread: Problem in compile

  1. #1
    Junior Member
    Join Date
    Apr 2010

    Problem in compile

    Hi all,
    i have a problem on compile,i have Linux ubuntu 64bit ver10.04 and ati 4850 1gb

    I have installed ati-stram-sdk last version ati-stream-sdk-v2.3-lnx64

    I have added in my bash-hrc:
    export ATISTREAMSDKROOT=/home/davide/ati-stream-sdk-v2.3-lnx64
    export ATISTREAMSDKSAMPLESROOT=/home/davide/ati-stream-sdk-v2.3-lnx64

    registration icd with icd-registration.tgz all from ati site
    Ati sapmles works right foir example CLInfo:
    Platform Name: ATI Stream
    Number of devices: 2
    Device Type: CL_DEVICE_TYPE_GPU
    Device ID: 4098
    Max compute units: 10
    Max work items dimensions: 3
    Max work items[0]: 256
    Max work items[1]: 256
    Max work items[2]: 256
    Max work group size: 256
    Preferred vector width char: 16
    Preferred vector width short: 8
    Preferred vector width int: 4
    Preferred vector width long: 2
    Preferred vector width float: 4
    Preferred vector width double: 0
    Native vector width char: 0
    Native vector width short: 0
    Native vector width int: 0
    Native vector width long: 0
    Native vector width float: 0
    Native vector width double: 0
    Max clock frequency: 0Mhz
    Address bits: 32
    Max memory allocation: 134217728
    Image support: No
    Max size of kernel argument: 1024
    Alignment (bits) of base address: 32768
    Minimum alignment (bytes) for any datatype: 128
    Single precision floating point capability
    Denorms: No
    Quiet NaNs: Yes
    Round to nearest even: Yes
    Round to zero: Yes
    Round to +ve and infinity: Yes
    IEEE754-2008 fused multiply-add: Yes
    Cache type: None
    Cache line size: 0
    Cache size: 0
    Global memory size: 268435456
    Constant buffer size: 65536
    Max number of constant args: 8
    Local memory type: Global
    Local memory size: 16384
    Kernel Preferred work group size multiple: 64
    Error correction support: 0
    Unified memory for Host and Device: 0
    Profiling timer resolution: 1
    Device endianess: Little
    Available: Yes
    Compiler available: Yes
    Execution capabilities:
    Execute OpenCL kernels: Yes
    Execute native function: No
    Queue properties:
    Out-of-Order: No
    Profiling : Yes
    Platform ID: 0x7f40f77ce880
    Name: ATI RV770
    Vendor: Advanced Micro Devices, Inc.
    Driver version: CAL 1.4.880
    Profile: FULL_PROFILE
    Version: OpenCL 1.0 ATI-Stream-v2.3 (451)
    Extensions: cl_amd_fp64 cl_khr_gl_sharing cl_amd_device_attribute_query

    But when i try to use makefile for compile my work:

    Linking Main.o Solver.o )
    /usr/bin/ld: cannot find -lOpenCL
    collect2: ld returned 1 exit status

    my makefile:
    CFLAGS = -I$(MTL) -Wall -ffloat-store -I$ATISTREAMSDKROOT/include
    LFLAGS = -lz -lOpenCL -L$ATISTREAMSDKROOT/lib/x86_64

    i suppose my problems are on library but can't find fix any suggestion or need another information or i make something wrong?

  2. #2
    Senior Member
    Join Date
    May 2010
    Toronto, Canada

    Re: Problem in compile

    Why don't you have a look at the compilation flags used for CLInfo, since you know that this one app builds fine?
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Apr 2010

    Re: Problem in compile

    Quote Originally Posted by david.garcia
    Why don't you have a look at the compilation flags used for CLInfo, since you know that this one app builds fine?
    Yes i have look but i doesn't realy understand what i really need in it...
    Its ATI SDK samples the make includes two file in atistreamsdk/make/ there is one file for compiling rules and one for dependecies but i don't know where are the rights compilation flags used for CLInfo...if u need i can post it here...

  4. #4
    Junior Member
    Join Date
    May 2011

    Re: Problem in compile

    Hi Dave88,

    Has your problem been resolved? Maybe you want to post your compliation flags here so that we can take a look to see if we can resolve your issue.


Similar Threads

  1. Replies: 5
    Last Post: 05-20-2009, 01:21 PM
  2. How to compile the vincent in VC++6
    By sunkingac in forum OpenGL ES
    Replies: 1
    Last Post: 04-18-2005, 03:07 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
Proudly hosted by Digital Ocean