ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

Channel Extract RGB->R issue when executed in GPU . ACL version 17.10

Open vinithsrvv1-path opened this issue 8 years ago • 2 comments

Hi Sir ,

WE are facing issue when executed channel extract R from RGB. We are getting zeroes in GPU target. But NEON works fine . Attaching the logs, sample workspaces for reference.

ACL Version: 17.10 cl_channelextract_rgb_api.txt channelextratct_rgb_neon_16x16_op_log.txt cl_channelextract_rgb_16x16_log.txt

Can you please help us in resolving this issue?

Thanks, Vinith

vinithsrvv1-path avatar Apr 07 '18 12:04 vinithsrvv1-path

What platform are you using ? Are you sure your OpenCL driver is working ?

I've checked out v17.10 I've just downloaded cl_channelextract_rgb_api.txt and renamed it in examples/cl_channel.cpp Built the library with debug=1 opencl=1 neon=1 Werror=0 And I got:

root@acl_hikey_dev:~/tmp/antbar01/release/build/linux-arm64-v8a-neon-cl-debug# LD_LIBRARY_PATH=. ./examples/cl_channel

./examples/cl_channel

Initialize ACL Images
channelExtract.configure
allocate buffers

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

******Output Image  *******
103 115  74 205 242  70  84 232 118  99 201  50  49  90   5 233
171 198  84 130  33 135  62 225  62 151 107  56 236 251  60  24
  2  67 170  41   5 148 190 249 168 149 241 239 233 229 203  71
 31 168 100 115  94  99 100 158 170 242 175 205  72  92  34 155
 11  28 248 164 181 232  56  77 188 119 108 134 170 162 181   4
 54 175 228  50 253 169 212  41 154 213 168  91  76 155 229  51
163  45 118  50  74 246 133 178 244 185 134   5 217 183 163 211
247 242 246   1 188 250 230  26 106 126 179  83 251 144  68 188
 37 245  94 170 208  84 232 130 217 117  90  98  68 165  87  81
134 236 133  12 124 187 228  97 175 131  47 175 147  31  17 141
137  99 199 131 237 236   2  10 119 165 244 170 108 144 104 122
180 153  55   8 201  94  40 215 237 153 139  86  24 228  69 198
201  21  47   2 124 158 114 113  62 207 206 167 234 255  97 195
191 140  50 124 199  60 178  22   1   0 103  80 159 152   3 167
155  14   1 242 125  22  46   2  99  31 222 137  33   7 253 194
227 146  75 213 108 194 237 239 199 221 129  83 235  76  30 251


Test passed

AnthonyBarbier avatar Apr 09 '18 15:04 AnthonyBarbier

Closing issue. No issues are reported from our test infrastructure. Try 18.05 and make sure your driver is fine. Reopen in case of more information.

GeorgeARM avatar Jun 02 '18 09:06 GeorgeARM