cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Paccone
Journeyman III

Samples don't work [SOLVED]

Hi I can't get any sample binary work, all them report errors.

I set the environment variables as:

export ATISTREAMSDKROOT=/home/davide/Download/ati-stream-sdk-v2.1-lnx32/

export ATISTREAMSDKSAMPLESROOT=/home/davide/Download/ati-stream-sdk-v2.1-lnx32/

export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$LD_LIBRARY_PATH



then extract the "icd-registration.tgz" in the sdk root and link it to /usr/lib/OpenCL/vendors/libatiocl32.so so that I have:

ls -l /usr/lib/OpenCL/vendors/

lrwxrwxrwx 1 root root 71 Jul 20 17:42 libatiocl32.so -> /home/davide/Downloads/ati-stream-sdk-v2.1-lnx32/lib/x86/libatiocl32.so



Building the samples goes fine without errors (some warnings anyway):

/samples/opencl$ make


so samples shuld now be ready, but I get errors such as:

(Binary and associated error; other regular output suppressed)

Template -> Error: Getting Platforms. (clGetPlatformsIDs)

HelloCL -> Platform::get() failed (-1001)

SimpleImage -> Error: clGetPlatformIDs failed. Error code : unknown error code

FFT -> Error: clGetPlatformIDs failed. Error code : unknown error code

no one works.

I run Debian testing on intel cpu / gpu without discrete card.

Since Debian's not supportet, I tried it on Ubuntu 9.04, with the same exact results.

Thanks replying!

 

 

0 Likes
7 Replies
nou
Exemplar

on ubuntu you may try my packages. on debian it should work too. maybe just set manualy $ATISTREAMSDKROOT=/usr/local

0 Likes

Originally posted by: nou on ubuntu you may try my packages. on debian it should work too. maybe just set manualy $ATISTREAMSDKROOT=/usr/local

 

Tryed on ubuntu 9.04!

installed all 3 of your first post (at Ubuntu packages with ATI Stream SDK ) and for the samples the end is that of post #4 ..

At least this time the ICD seems set properly 😉

So I don know!!

What else to get hands on opencl !

PS ubuntu is from a virtual machine ran by the debian host

0 Likes

CL_DEVICE_FOUND is because it try create context from GPU device. run with --device cpu

HelloCL is CPU by default so there is another problem as it seems that it can not found clc and llc in $ATISTREAMSDKROOT/bin/x86/

0 Likes

Actually ATISTREAMSDKROOT was set wrong:

/home/davide/Download/ati-stream-sdk-v2.1-lnx32 instead of

/home/davide/Downloads/ati-stream-sdk-v2.1-lnx32 !!

So you were right it couldn't find clc and llc

and it works!

 

but what about the link in /usr/lib/OpenCL thowards libatiocl32.so ?

I made it based on forum solutions about similar problems but omkaranathan says it's superfluous

Thank you!

0 Likes

ICD registration changed with SDK 2.1. Creating the symlink was the way to register ICD till SDK 2.0.

0 Likes
omkaranathan
Adept I

then extract the "icd-registration.tgz" in the sdk root and link it to /usr/lib/OpenCL/vendors/libatiocl32.so so that I have:

 

ls -l /usr/lib/OpenCL/vendors/

 

lrwxrwxrwx 1 root root 71 Jul 20 17:42 libatiocl32.so -> /home/davide/Downloads/ati-stream-sdk-v2.1-lnx32/lib/x86/libatiocl32.so

You are doing incorrect ICD registration.

Please read Release Notes and Installation Notes for details.

To register ICD, you just have to copy the icd-registration.tgz file to root folder(/) and extract it. Thats it. No linking to any library.

 

 

 

0 Likes

Woow I thought "root" was the sdk root !

Ok so I did it and.. something changed but still errors running the samples!

I set the vars as in my post #1, then recompile the samples giving "make" in <sdk-root>/samples/opencl.

Since there all works fine. But when I launch the binaries I get some errors, anyway different from the previous:

./Template

Input:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255

Error: Building Program (clBuildProgram)



./HelloCL

HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Program::build() failed (-11)


./SimpleImage

Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND


./FFT

Original Input Real
100.144 250.047 8.92892 180.149 65.7268 90.6843 82.7337 76.9826 103.453 197.99


Original Input Img
0.391189 0.976748 0.0348786 0.703707 0.256745 0.354235 0.323178 0.300713 0.404112 0.773398

Error: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND



and so on.

I didn't do absolutely nothing for the sdk except what I wrote here.

0 Likes