cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mmathur
Journeyman III

Errors while running the executables

I am running the kit on a fedora machine and following messages are prompted on executing any application..

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

Unsupported GPU device; falling back to CPU ...

Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND

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

 

On running HelloCL following message is shown:

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

HelloCL!

Creating a context

For test only: Expires on Sun Feb 28 00:00:00 2010

Context::Context() failed (-1)

-------------------------------
Any help is appreciated.
thanks




0 Likes
24 Replies
omkaranathan
Adept I

What is your hardware config? Please check if your device is among the ones listed in here

http://developer.amd.com/GPU/ATISTREAMSDKBETAPROGRAM/Pages/default.aspx

0 Likes

I do not have any specific GPU cards, I want to use the CPU for running the application.

 

And the application is giving a message that :

 

falling back to CPU

 

then why is the   "CL_DEVICE_NOT_FOUND" error being generated ?

0 Likes

Your processor needs to be SSE 3.x or later to run OpenCL. 

0 Likes

processor needs to be SSE 3.x   --- does this means sse3 ?

I checked the cpu info in /proc/cpuinfo,

I see flags only for sse sse2 and none for sse3

I am assuming this mean that the cpu does not support sse3 ?

Any ideas?

0 Likes

yes it is sse3. if you do not see that flag in cpuinfo then you must get better CPU or GPU.

0 Likes
HarryH
Journeyman III

On linux the cpuinfo flag is called 'pni' (Prescott New Instructions)

this indicates SSE3 instructions are supported

0 Likes

I have AMD Athlon X2 TK-55. In /proc/cpuinfo i see sse sse2 and pni but when i run HelloCL from sdk it's return this message:

$ ./HelloCL
HelloCL!
Creating a context
Expired on Wed Sep 30 00:00:00 2009
Context::Context() failed (-6)

or

$ ./Histogram
Expired on Wed Sep 30 00:00:00 2009
Unsupported GPU device; falling back to CPU ...
Expired on Wed Sep 30 00:00:00 2009
Error: clCreateContextFromType failed. Error code : CL_OUT_OF_HOST_MEMORY

0 Likes

Originally posted by: tonn I have AMD Athlon X2 TK-55. In /proc/cpuinfo i see sse sse2 and pni but when i run HelloCL from sdk it's return this message:

 

$ ./HelloCL HelloCL! Creating a context Expired on Wed Sep 30 00:00:00 2009 Context::Context() failed (-6)

 

or

 

$ ./Histogram Expired on Wed Sep 30 00:00:00 2009 Unsupported GPU device; falling back to CPU ... Expired on Wed Sep 30 00:00:00 2009 Error: clCreateContextFromType failed. Error code : CL_OUT_OF_HOST_MEMORY

 

 

Tonn,

        You are using older sdk which expired on Sep 30. Please use Beta4. Beta4 is available at http://developer.amd.com /GPU/ATISTREAMSDKBETAPROGRAM/Pages/default.aspx

0 Likes

I have the same problem. Does AMD OpenCL support Intel CPUs with SSSE3?

0 Likes

Originally posted by: newfish I have the same problem. Does AMD OpenCL support Intel CPUs with SSSE3?

 

newfish,

           could you please tell us what problem exactly you are facing?

0 Likes

Originally posted by: genaganna
Originally posted by: newfish I have the same problem. Does AMD OpenCL support Intel CPUs with SSSE3?

 

 

 

 

newfish,

 

           could you please tell us what problem exactly you are facing?

 

 

 

Thanks for fast replying!

 

For example, if I run FastWalshTransform in samples folder, it gives the following output:

Input

16.6251 247.986 147.66 188.308 212.149 169.474 1.53452 194.457 126.103 42.2092 186.508 135.926 189.376 138.128 102.851 56.8458 229.141 240.866 249.744 94.3569 83.0159 113.847 145.42 219.562 228.745 109.281 36.5803 172.095 90.3256 83.4952 2.50658 106.951 75.4812 150.167 39.2582 31.6304 63.6402 40.7928 226.088 189.743 83.002 156.596 69.6696 16.3781 38.7242 172.52 73.2239 11.8654 157.386 66.9682 106.222 240.402 180.816 251.642 203.965 153.561 104.924 240.545 69.6556 195.249 68.0402 72.1622 46.2001 143.521

 

Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND

Segmentation fault

 

 

The output of cat  /proc/cpuinfo|grep flags is:

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida tpr_shadow vnmi flexpriority



0 Likes

Originally posted by: newfish
Originally posted by: genaganna
Originally posted by: newfish I have the same problem. Does AMD OpenCL support Intel CPUs with SSSE3?

 

 

 

   

 

 

 

 

newfish,

 

 

 

           could you please tell us what problem exactly you are facing?

 

 

 

 

 

 

 

 

Thanks for fast replying!

 

 

 

For example, if I run FastWalshTransform in samples folder, it gives the following output:

 

Input

 

16.6251 247.986 147.66 188.308 212.149 169.474 1.53452 194.457 126.103 42.2092 186.508 135.926 189.376 138.128 102.851 56.8458 229.141 240.866 249.744 94.3569 83.0159 113.847 145.42 219.562 228.745 109.281 36.5803 172.095 90.3256 83.4952 2.50658 106.951 75.4812 150.167 39.2582 31.6304 63.6402 40.7928 226.088 189.743 83.002 156.596 69.6696 16.3781 38.7242 172.52 73.2239 11.8654 157.386 66.9682 106.222 240.402 180.816 251.642 203.965 153.561 104.924 240.545 69.6556 195.249 68.0402 72.1622 46.2001 143.521

 

 

 

Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND

 

Segmentation fault

 

 

 

 

 

The output of cat  /proc/cpuinfo|grep flags is:

 

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida tpr_shadow vnmi flexpriority

 

 



set CPU_ENABLE_ALL=1 and see you are able to run on CPU. Make sure you are using  "--device cpu" Option while runing any sample.

 

0 Likes

Thanks, genaganna! Where do you set CPU_ENABLE_ALL=1? I did this in linux console by: export CPU_ENABLE_ALL=1. Then I did 'make' again.  Below is the output:

 

 

FastWalshTransform --device cpu

 

Input

169.983 124.908 114.007 113.169 219.274 92.1873 13.1533 192.49 120.634 244.227 132.393 80.9311 166.877 164.455 157.603 47.5607 63.3529 39.7327 152.65 147.265 89.4358 58.4283 100.32 214.957 34.5064 143.154 34.6892 254.55 38.3715 169.453 65.6397 208.354 38.3612 179.646 65.5234 1.63475 15.8337 78.6767 194.125 136.468 66.9033 70.5173 217.399 233.781 234.973 119.002 25.3413 42.3255 158.734 177.992 189.591 248.17 236.42 33.9112 207.127 14.9265 177.065 241.816 13.4767 215.436 155.269 79.1164 167.791 193.63 

 

Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

Segmentation fault



0 Likes

Originally posted by: newfish Thanks, genaganna! Where do you set CPU_ENABLE_ALL=1? I did this in linux console by: export CPU_ENABLE_ALL=1. Then I did 'make' again.  Below is the output:

 

 

 

 

 

FastWalshTransform --device cpu

 

 

 

Input

 

169.983 124.908 114.007 113.169 219.274 92.1873 13.1533 192.49 120.634 244.227 132.393 80.9311 166.877 164.455 157.603 47.5607 63.3529 39.7327 152.65 147.265 89.4358 58.4283 100.32 214.957 34.5064 143.154 34.6892 254.55 38.3715 169.453 65.6397 208.354 38.3612 179.646 65.5234 1.63475 15.8337 78.6767 194.125 136.468 66.9033 70.5173 217.399 233.781 234.973 119.002 25.3413 42.3255 158.734 177.992 189.591 248.17 236.42 33.9112 207.127 14.9265 177.065 241.816 13.4767 215.436 155.269 79.1164 167.791 193.63 

 

 

 

Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

 

Segmentation fault

 

 

 

Newfish,

           Please install latest SDK if you have older one.  Latest SDK available at http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx 

After installing latest sdk, Do following steps

    1. Move to InstallDir/samples/opencl/bin/x86

    2. Run  Reduction  --device cpu

    3. export CPU_ENABLE_ALL=1

    4. Run again Reduction --device cpu

 

    Please post results for two cases.

0 Likes

Thank you. Here is the output for two cases:

 

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export ATISTREAMSDKROOT=/home/fish/OpenCL_AMD

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export ATISTREAMSDKSAMPLESROOT=/home/fish/OpenCL_AMD

fish@debian:~/OpenCL_AMD/samples/opencl/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3 0 1 2 2 4 0 1 5 5 4 2 1 5 0 2 1 3 2 2 4 4 3 1 3 0 4 3 0 3 4 3 3 0 5 0 4 0 1 4 5 0 1 1 5 1 4 1 5 1 3 4 0 0 0 3 0 4 1 0 1 5 4 5 5 4 5 4 4 1 

 

Executing kernel for 1 iterations

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

 

Output

2695 

 

Segmentation fault

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export CPU_ENABLE_ALL=1

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ Reduction --device cpu

 

Input

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

 

Executing kernel for 1 iterations

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

 

Output

2635 

 

Segmentation fault

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 



0 Likes

Originally posted by: newfish Thank you. Here is the output for two cases:

 

 

 

 

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export ATISTREAMSDKROOT=/home/fish/OpenCL_AMD

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export ATISTREAMSDKSAMPLESROOT=/home/fish/OpenCL_AMD

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$LD_LIBRARY_PATH

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ Reduction  --device cpu

 

 

 

Input

 

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

 

 

 

Executing kernel for 1 iterations

 

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

 

 

 

Output

 

2695 

 

 

 

Segmentation fault

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ export CPU_ENABLE_ALL=1

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ Reduction --device cpu

 

 

 

Input

 

0 5 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

 

Executing kernel for 1 iterations

 

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

 

 

 

Output

 

2635 

 

 

 

Segmentation fault

 

fish@debian:~/OpenCL_AMD/samples/opencl/bin/x86$ 

 

 

 

Could you please tell us what OS you are using? It seems you are using unsupported OS or CPU_ENABLE_ALL is not working.

0 Likes

It's Debian sid.

0 Likes

Only OpenSUSE 11 and Ubuntu 9.04 are supported officially

0 Likes

That's really bad news.

0 Likes

I got the same "Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND",
but if I run HelloCL it passes without error message.

I have OpenSuse 11 & mobility radeon 4570 card.

Any ideas?

 

0 Likes

Which drivers did you install?

Could you post output of CLInfo sample and CAL sample 'FindNumDevices'

0 Likes

I reinstalled the driver, which caused the problem.

I followed this guide: http://en.opensuse.org/ATI_drivers#The_hard_way
except: I didnt run sax2 but used "aticonfig --initial" instead.

Now, the output of CLinfo is:

 

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: 2 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: 2267Mhz 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: 0x7f1f965668d0 Name: Intel(R) Core(TM)2 Duo CPU P7570 @ 2.26GHz Vendor: GenuineIntel 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 Device Type: CL_DEVICE_TYPE_GPU Device ID: 4098 Max compute units: 2 Max work items dimensions: 3 Max work items[0]: 128 Max work items[1]: 128 Max work items[2]: 128 Max work group size: 128 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: 680Mhz Address bits: 32 Max memeory allocation: 67108864 Image support: No Max size of kernel argument: 1024 Alignment (bits) of base address: 4096 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: No Round to +ve and infinity: No IEEE754-2008 fused multiply-add: No Cache type: None Cache line size: 0 Cache size: 0 Global memory size: 67108864 Constant buffer size: 65536 Max number of constant args: 8 Local memory type: Global Local memory size: 16384 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: 0x7f1f965668d0 Name: ATI RV710 Vendor: Advanced Micro Devices, Inc. Driver version: CAL 1.4.553 Profile: FULL_PROFILE Version: OpenCL 1.0 ATI-Stream-v2.0.1 Extensions: cl_khr_icd

0 Likes

Everything seems to be fine.

Which program is giving you the error? Are you able to run the other samples?

0 Likes

Now the samples are working fine, I'm able to run them.
It was just a driver problem...

Thank you for your help!

0 Likes