cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

dongzaixx
Journeyman III

ati stream sdk running in Virtual Machine

I have installed a virtual machine under Xen 3.4 , and I installed the ati-driver and ati-stream-sdk on it. But when I run a sample app, I got error message:

./HelloCL

HelloCL!

Getting Platform Information

Creating a context AMD platform

Getting deivce info

Loading and compiling CL source

Program::build() failed (-11)

 

0 Likes
20 Replies
genaganna
Journeyman III

Originally posted by: dongzaixx I have installed a virtual machine under Xen 3.4 , and I installed the ati-driver and ati-stream-sdk on it. But when I run a sample app, I got error message:

./HelloCL

HelloCL!

Getting Platform Information

Creating a context AMD platform

Getting deivce info

Loading and compiling CL source

Program::build() failed (-11)

 



I hope you are using on some linux os.

You must register the OpenCL ICD; otherwise, samples and other applications will fail to execute if this is not done.

To register the ICD:
a. If one does not exist, create a folder /usr/lib/OpenCL/vendors.
b. Create the /usr/lib/OpenCL/vendors folder, if does not already exist.
c. Symlink [INSTALLDIR]/lib/x86/libatiocl32.so into the vendors folder:
sudo ln -sf [INSTALLDIR]/lib/x86/libatiocl32.so /usr/lib/OpenCL/vendors/libatiocl32.so
d. For 64-bit installations, you also must symlink
[INSTALLDIR]/lib/x86_64/libatiocl64.so to the vendors folder:
sudo ln -sf [INSTALLDIR]/lib/x86_64/libatiocl64.so /usr/lib/OpenCL/vendors/libatiocl64.so

0 Likes

yes, I am pretty sure that I have registered OpenCL ICD. And I am using Fedora 12 with the latest ati-driver and sdk.

all steps in installation instruction have been completed.

Could it be the matter that ati-driver cannot find device in virtual machine? I mean fglrx is not loaded.

thanks.

0 Likes

try run CLInfo from samples. i am pretty sure that access from virtual machine to GPU is not possible. but it should find CPU device.

0 Likes
dongzaixx
Journeyman III

Running CLInfo is ok. And it shows 1 cpu with 2 unit. (Athlon 64 x2 5200+)

But when I run a program which has 'cl' file, I get a CL_BUILD_PROGRAM_FAILURE.

0 Likes

Originally posted by: dongzaixx Running CLInfo is ok. And it shows 1 cpu with 2 unit. (Athlon 64 x2 5200+)

 

But when I run a program which has 'cl' file, I get a CL_BUILD_PROGRAM_FAILURE.

 

I remember one user able run on virtual machine on windows.

Did you export ATISTREAMSDKROOT?

Could you please give more details of your virtual system like as follows

 

0 Likes

Originally posted by: genaganna
Originally posted by: dongzaixx Running CLInfo is ok. And it shows 1 cpu with 2 unit. (Athlon 64 x2 5200+)

 

 

 

But when I run a program which has 'cl' file, I get a CL_BUILD_PROGRAM_FAILURE.

 

 

 

 

I remember one user able run on virtual machine on windows.

 

Did you export ATISTREAMSDKROOT?

 

Could you please give more details of your virtual system like as follows

 

 

 

-----------------------------

Dom0:

OpenSUSE 11.2 x64  /  Xen 3.4.1  / Kernel 2.6.31.5-0.1-xen

(all above shipped with Opensuse 11.2)

-----------------------------

DomU:

Fedora 12 x64 / Kernel 2.6.31.5-127.fc12.x86_64

-----

~/.bash_profile

export ATISTREAMSDKROOT=/usr/share/atistreamsdk
export ATISTREAMSDKSAMPLESROOT=/usr/share/atistreamsdk
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH

-----

[root@localhost ~]# ll /usr/lib/OpenCL/vendors/
total 0
lrwxrwxrwx. 1 root root 46 2010-02-15 23:57 libatiocl32.so -> /usr/share/atistreamsdk/lib/x86/libatiocl32.so
lrwxrwxrwx. 1 root root 49 2010-02-15 23:48 libatiocl64.so -> /usr/share/atistreamsdk/lib/x86_64/libatiocl64.so

----

[root@localhost x86_64]# ./CLInfo
Number of platforms:                 1
  Plaform Profile:                 FULL_PROFILE
  Plaform Version:                 OpenCL 1.0 ATI-Stream-v2.0.1
  Plaform Name:                     ATI Stream
  Plaform Vendor:                 Advanced Micro Devices, Inc.
  Plaform Extensions:             cl_khr_icd


  Plaform Name:                     ATI Stream
Number of devices:                 1
  Device Type:                     CL_DEVICE_TYPE_CPU
  Device ID:                     4098
  Max compute units:                 2
  Max work items dimensions:             3
    Max work items[0]:                 1024
    Max work items[1]:                 1024
    Max work items[2]:                 1024
  Max work group size:                 1024
  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
  Max clock frequency:                 2700Mhz
  Address bits:                     64
  Max memeory allocation:             1073741824
  Image support:                 No
  Max size of kernel argument:             4096
  Alignment (bits) of base address:         32768
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     Yes
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 No
    Round to +ve and infinity:             No
    IEEE754-2008 fused multiply-add:         No
  Cache type:                     Read/Write
  Cache line size:                 64
  Cache size:                     65536
  Global memory size:                 3221225472
  Constant buffer size:                 65536
  Max number of constant args:             8
  Local memory type:                 Global
  Local memory size:                 32768
  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:                     0x7fb9370c88d0
  Name:                         AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
  Vendor:                     AuthenticAMD
  Driver version:                 1.0
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.0 ATI-Stream-v2.0.1
  Extensions:                     cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store

----

[root@localhost x86_64]# ./HelloCL
HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Program::build() failed (-11)

------------------------------

0 Likes

Originally posted by: dongzaixx
Originally posted by: genaganna
Originally posted by: dongzaixx Running CLInfo is ok. And it shows 1 cpu with 2 unit. (Athlon 64 x2 5200+)

 

 

 

   

 

But when I run a program which has 'cl' file, I get a CL_BUILD_PROGRAM_FAILURE.

 

 

 

   

 

 

 

 

I remember one user able run on virtual machine on windows.

 

 

 

Did you export ATISTREAMSDKROOT?

 

 

 

Could you please give more details of your virtual system like as follows

 

 

 

   

 

 

-----------------------------

 

Dom0:

 

OpenSUSE 11.2 x64  /  Xen 3.4.1  / Kernel 2.6.31.5-0.1-xen

 

(all above shipped with Opensuse 11.2)

 

-----------------------------

 

DomU:

 

Fedora 12 x64 / Kernel 2.6.31.5-127.fc12.x86_64

 

-----

 

~/.bash_profile

 

export ATISTREAMSDKROOT=/usr/share/atistreamsdk export ATISTREAMSDKSAMPLESROOT=/usr/share/atistreamsdk export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH

 

-----

 

[root@localhost ~]# ll /usr/lib/OpenCL/vendors/ total 0 lrwxrwxrwx. 1 root root 46 2010-02-15 23:57 libatiocl32.so -> /usr/share/atistreamsdk/lib/x86/libatiocl32.so lrwxrwxrwx. 1 root root 49 2010-02-15 23:48 libatiocl64.so -> /usr/share/atistreamsdk/lib/x86_64/libatiocl64.so

 

----

 

[root@localhost x86_64]# ./CLInfo Number of platforms:                 1   Plaform Profile:                 FULL_PROFILE   Plaform Version:                 OpenCL 1.0 ATI-Stream-v2.0.1   Plaform Name:                     ATI Stream   Plaform Vendor:                 Advanced Micro Devices, Inc.   Plaform Extensions:             cl_khr_icd   Plaform Name:                     ATI Stream Number of devices:                 1   Device Type:                     CL_DEVICE_TYPE_CPU   Device ID:                     4098   Max compute units:                 2   Max work items dimensions:             3     Max work items[0]:                 1024     Max work items[1]:                 1024     Max work items[2]:                 1024   Max work group size:                 1024   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   Max clock frequency:                 2700Mhz   Address bits:                     64   Max memeory allocation:             1073741824   Image support:                 No   Max size of kernel argument:             4096   Alignment (bits) of base address:         32768   Minimum alignment (bytes) for any datatype:     128   Single precision floating point capability     Denorms:                     Yes     Quiet NaNs:                     Yes     Round to nearest even:             Yes     Round to zero:                 No     Round to +ve and infinity:             No     IEEE754-2008 fused multiply-add:         No   Cache type:                     Read/Write   Cache line size:                 64   Cache size:                     65536   Global memory size:                 3221225472   Constant buffer size:                 65536   Max number of constant args:             8   Local memory type:                 Global   Local memory size:                 32768   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:                     0x7fb9370c88d0   Name:                         AMD Athlon(tm) 64 X2 Dual Core Processor 5200+   Vendor:                     AuthenticAMD   Driver version:                 1.0   Profile:                     FULL_PROFILE   Version:                     OpenCL 1.0 ATI-Stream-v2.0.1   Extensions:                     cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store

 

----

 

[root@localhost x86_64]# ./HelloCL HelloCL! Getting Platform Information Creating a context AMD platform Getting device info Loading and compiling CL source Program::build() failed (-11)

 

------------------------------

 

Please run Reduction sample and see what error you are getting.

0 Likes

[root@localhost x86_64]# ./Reduction --device cpu

Input
5 5 1 4 3 4 0 0 5 2 0 3 3 0 4 2 3 5 2 1 0 4 5 2 4 1 0 2 3 2 3 2 1 4 1 5 3 1 0 2 4 0 0 2 0 4 5 4 3 1 5 3 0 5 5 4 0 0 0 3 2 4 0 3 2 1 3 0 3 3 2 1 3 3 3 4 1 2 2 5 4 2 3 4 1 3 3 1 3 4 5 0 2 5 4 4 0 1 4 4 4 1 5 2 5 3 0 0 0 2 0 4 4 3 3 0 1 0 1 5 4 1 5 0 0 4 5 1 5 4 0 4 0 0 0 5 3 0 5 4 3 0 2 2 4 5 2 5 0 4 4 4 5 4 5 0 2 4 2 2 3 2 0 3 2 0 2 0 1 2 4 4 3 0 0 1 0 3 1 1 1 0 0 1 4 5 1 1 4 3 3 2 0 3 5 2 4 2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 4 2 4 3 0 1 2 3 2 4 5 2 3 3 1 5 5 3 4 3 5 3 5 1 1 5 0 2 3 4 1 1 0 0 5 0 1 1 3 4 0 2 0 3 5 2 3 4 0 1 1 0 4 1 1 0 0 2 3 4 0 4 5 0 4 5 0 0 0 4 4 1 0 5 4 0 2 1 4 2 2 0 2 1 2 4 2 2 1 5 0 1 4 0 2 2 5 3 3 0 1 2 1 1 1 0 1 3 2 0 0 5 1 3 1 3 2 3 0 3 3 0 5 1 1 1 4 1 4 1 2 5 3 4 1 5 4 3 3 1 3 3 1 5 1 2 2 3 0 3 1 3 4 0 5 5 1 3 1 0 5 3 0 3 1 1 2 0 5 5 2 3 3 3 2 5 0 5 2 1 2 3 5 0 4 4 0 0 1 1 0 1 5 1 4 0 3 0 1 2 0 3 5 4 1 1 3 1 1 0 3 4 4 2 4 2 0 5 2 2 1 3 3 0 4 1 1 1 2 2 4 3 0 3 1 1 5 4 3 1 5 0 5 3 2 3 5 3 3 1 0 4 4 3 5 3 5 0 4 1 3 3 4 4 0 0 5 0 5 3 1 4 4 0 1 0 4 1 4 2 2 4 0 1 2 0 4 1 0 3 3 4 0 2 2 1 3 2 1 2 0 3 0 4 3 2 5 2 3 3 4 0 2 5

 
            BUILD LOG
 ************************************************
Internal error: Link failed.
Make sure the system setup is correct.
 ************************************************
Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

0 Likes

Originally posted by: dongzaixx [root@localhost x86_64]# ./Reduction --device cpu Input 5 5 1 4 3 4 0 0 5 2 0 3 3 0 4 2 3 5 2 1 0 4 5 2 4 1 0 2 3 2 3 2 1 4 1 5 3 1 0 2 4 0 0 2 0 4 5 4 3 1 5 3 0 5 5 4 0 0 0 3 2 4 0 3 2 1 3 0 3 3 2 1 3 3 3 4 1 2 2 5 4 2 3 4 1 3 3 1 3 4 5 0 2 5 4 4 0 1 4 4 4 1 5 2 5 3 0 0 0 2 0 4 4 3 3 0 1 0 1 5 4 1 5 0 0 4 5 1 5 4 0 4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 4 2 2 1 0 0 1 5 5 3 5 4 4 3 5 5 1 2 4 3 3 3 2 2 5 0 4 1 4 2 2 2 5 4 4 5 4 5 5 4 2 4 2 1 2 2 0 4 4 4 1 1 2 4 3 1 5 2 2 4 5 4 0 4 3 5 4 2 4 3 0 1 2 3 2 4 5 2 3 3 1 5 5 3 4 3 5 3 5 1 1 5 0 2 3 4 1 1 0 0 5 0 1 1 3 4 0 2 0 3 5 2 3 4 0 1 1 0 4 1 1 0 0 2 3 4 0 4 5 0 4 5 0 0 0 4 4 1 0 5 4 0 2 1 4 2 2 0 2 1 2 4 2 2 1 5 0 1 4 0 2 2 5 3 3 0 1 2 1 1 1 0 1 3 2 0 0 5 1 3 1 3 2 3 0 3 3 0 5 1 1 1 4 1 4 1 2 5 3 4 1 5 4 3 3 1 3 3 1 5 1 2 2 3 0 3 1 3 4 0 5 5 1 3 1 0 5 3 0 3 1 1 2 0 5 5 2 3 3 3 2 5 0 5 2 1 2 3 5 0 4 4 0 0 1 1 0 1 5 1 4 0 3 0 1 2 0 3 5 4 1 1 3 1 1 0 3 4 4 2 4 2 0 5 2 2 1 3 3 0 4 1 1 1 2 2 4 3 0 3 1 1 5 4 3 1 5 0 5 3 2 3 5 3 3 1 0 4 4 3 5 3 5 0 4 1 3 3 4 4 0 0 5 0 5 3 1 4 4 0 1 0 4 1 4 2 2 4 0 1 2 0 4 1 0 3 3 4 0 2 2 1 3 2 1 2 0 3 0 4 3 2 5 2 3 3 4 0 2 5               BUILD LOG  ************************************************ Internal error: Link failed. Make sure the system setup is correct.  ************************************************ Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

 

dongzaixx,

            Both OpenSUSE 11.2 and Fedora 12 are not officially supported OS.

0 Likes

Originally posted by: genaganna
Originally posted by: dongzaixx [root@localhost x86_64]# ./Reduction --device cpu Input 5 5 1 4 3 4 0 0 5 2 0 3 3 0 4 2 3 5 2 1 0 4 5 2 4 1 0 2 3 2 3 2 1 4 1 5 3 1 0 2 4 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2 2 4 1 3 0 4 1 0 5 2 3 0 0 1 2 4 3 1 1 5 4 3 1 1 3 0 3 5 1 2 1 3 0 3 1 0 1 2 0 0 5 4 0 5 5 2 4 3 4 5 3 2 3 4 4 0 5 1 5 0 3 0 3 4 3 5 5 5 1 5 5 1 4 0 0 3 2 5 1 1 4 5 4 1 4 2 1 3 4 1 4 2 2 1 0 0 1 5 5 3 5 4 4 3 5 5 1 2 4 3 3 3 2 2 5 0 4 1 4 2 2 2 5 4 4 5 4 5 5 4 2 4 2 1 2 2 0 4 4 4 1 1 2 4 3 1 5 2 2 4 5 4 0 4 3 5 4 2 4 3 0 1 2 3 2 4 5 2 3 3 1 5 5 3 4 3 5 3 5 1 1 5 0 2 3 4 1 1 0 0 5 0 1 1 3 4 0 2 0 3 5 2 3 4 0 1 1 0 4 1 1 0 0 2 3 4 0 4 5 0 4 5 0 0 0 4 4 1 0 5 4 0 2 1 4 2 2 0 2 1 2 4 2 2 1 5 0 1 4 0 2 2 5 3 3 0 1 2 1 1 1 0 1 3 2 0 0 5 1 3 1 3 2 3 0 3 3 0 5 1 1 1 4 1 4 1 2 5 3 4 1 5 4 3 3 1 3 3 1 5 1 2 2 3 0 3 1 3 4 0 5 5 1 3 1 0 5 3 0 3 1 1 2 0 5 5 2 3 3 3 2 5 0 5 2 1 2 3 5 0 4 4 0 0 1 1 0 1 5 1 4 0 3 0 1 2 0 3 5 4 1 1 3 1 1 0 3 4 4 2 4 2 0 5 2 2 1 3 3 0 4 1 1 1 2 2 4 3 0 3 1 1 5 4 3 1 5 0 5 3 2 3 5 3 3 1 0 4 4 3 5 3 5 0 4 1 3 3 4 4 0 0 5 0 5 3 1 4 4 0 1 0 4 1 4 2 2 4 0 1 2 0 4 1 0 3 3 4 0 2 2 1 3 2 1 2 0 3 0 4 3 2 5 2 3 3 4 0 2 5               BUILD LOG  ************************************************ Internal error: Link failed. Make sure the system setup is correct.  ************************************************ Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

 

 

 

 

dongzaixx,

 

            Both OpenSUSE 11.2 and Fedora 12 are not officially supported OS.

 

 

Oh~ I think I have to change another OS and try again. Thank you.

0 Likes

I have the same problem on ubuntu 9.10 64bit. Although I must admit that I don't have an ATI gfx chip. I just would like to use opencl on CPU - which is supported by ATI Stream (hopefully also without the ATI chip).

clGetProgramBuildInfo() gives:

Internal error: Link failed.
Make sure the system setup is correct.

Instead setting a link to libatiocl64.so in /usr/lib/OpenCL/vendors I copied the library. But I presume that this does not make any difference...

0 Likes

Originally posted by: cathune I have the same problem on ubuntu 9.10 64bit. Although I must admit that I don't have an ATI gfx chip. I just would like to use opencl on CPU - which is supported by ATI Stream (hopefully also without the ATI chip).

 

clGetProgramBuildInfo() gives:

 

Internal error: Link failed. Make sure the system setup is correct.

 

Instead setting a link to libatiocl64.so in /usr/lib/OpenCL/vendors I copied the library. But I presume that this does not make any difference...

 

cathune,

           Did you export ATISTREAMSDKROOT and ATISTREAMSDKSAMPLESROOT?

0 Likes

I have no access to the machine today but as I remember I set ATISTREAMSDKROOT and ATISTREAMSDKSAMPLESROOT to the path of the installation directory - if I didn't make a typo.

Reading the installation notes again I figured out that a prerequisit for ATI StreamSDK is libstdc++.so.5. This library is not installed on ubuntu 9.10 - furthermore a ubuntu 9.10 package of this library does not even exist. So this could well be the problem (although I would expect error messages about the missing library).

Today I installed ATI StreamSDK on my notebook. Again ubuntu 9.10 64bit, this time with an ATI gfx chip - but an older one that is not supported by StreamSDK. On this machine I have libstdc++.so.5 installed because it is also needed by the intel c++ compiler (in the intel FAQ you can find how to install the library on ubuntu 9.10 64bit). This time the behaviour is different: a call to clGetPlatformIDs causes the program to crash with a segmentation fault.

It's a bit annoying: two computers with the same operating system but two different problems with ATI StreamSDK. Obviuosly I have to wait some time until StreamSDK has matured.

0 Likes

segfault on 9.10 can be solved with nopat kernel option.

0 Likes
cathune
Journeyman III

You're right. Starting the kernel with nopat solves the problem (does anybody know what nopat does?).

Now I'm getting this error message:

*** CAL version mismatch
This OpenCL build requires version 1.4.467, version 1.4.427 installed.
Aborting.

But everything seems to work. Could it be that OpenCL is looking for a matching graphics driver version and complains about an old one? - But as I'm using the CPU anyway that's not a problem?

0 Likes

Did you use the --device cpu option while running the sample?

0 Likes

yes you need catalyst 9.12 hotfix or 10.1 or 10.2.

nopat mean do not use build in PAT (Page Attribute Table) support. this should be solved in catalyst 10.2

0 Likes

Originally posted by: cathune I have no access to the machine today but as I remember I set ATISTREAMSDKROOT and ATISTREAMSDKSAMPLESROOT to the path of the installation directory - if I didn't make a typo.

Reading the installation notes again I figured out that a prerequisit for ATI StreamSDK is libstdc++.so.5. This library is not installed on ubuntu 9.10 - furthermore a ubuntu 9.10 package of this library does not even exist. So this could well be the problem (although I would expect error messages about the missing library).

Today I installed ATI StreamSDK on my notebook. Again ubuntu 9.10 64bit, this time with an ATI gfx chip - but an older one that is not supported by StreamSDK. On this machine I have libstdc++.so.5 installed because it is also needed by the intel c++ compiler (in the intel FAQ you can find how to install the library on ubuntu 9.10 64bit). This time the behaviour is different: a call to clGetPlatformIDs causes the program to crash with a segmentation fault.

It's a bit annoying: two computers with the same operating system but two different problems with ATI StreamSDK. Obviuosly I have to wait some time until StreamSDK has matured.

0 Likes

Originally posted by: dongzaixx yes, I am pretty sure that I have registered OpenCL ICD. And I am using Fedora 12 with the latest ati-driver and sdk.

 

all steps in installation instruction have been completed.

 

Could it be the matter that ati-driver cannot find device in virtual machine? I mean fglrx is not loaded.

 

 

 

I am not sure whether atleast CAL works on virtual machine. Anyhow Fedora12 is not supported officially. Try to add nopat option to kernel parameter. See following link for more details.

http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=126694&forumid=9

 

 

0 Likes

I think at least cpu can be used in virtual machine. I'll install a new one and try again.

thank you.

0 Likes