ddemidov / vexcl

@@ -167,9 +167,10 @@
Loading
167 167
            return config(num_workgroups(q), 1);
168 168
        }
169 169
170 -
        kernel& config(ndrange blocks, ndrange threads) {
170 +
        kernel& config(ndrange blocks, ndrange threads, size_t shared_memory = 0) {
171 171
            precondition(threads == ndrange(), "Maximum workgroup size for the JIT backend is 1");
172 172
            grid = blocks;
173 +
            if (shared_memory) smem_size = shared_memory;
173 174
            return *this;
174 175
        }
175 176

@@ -204,7 +204,7 @@
Loading
204 204
        }
205 205
206 206
        /// Set launch configuration.
207 -
        kernel& config(ndrange blocks, ndrange threads) {
207 +
        kernel& config(ndrange blocks, ndrange threads, size_t shared_memory = 0) {
208 208
            size_t dim = std::max(blocks.dimensions(), threads.dimensions());
209 209
210 210
            const size_t *b = blocks;
@@ -225,12 +225,17 @@
Loading
225 225
226 226
            w_size = threads;
227 227
228 +
            if (shared_memory) {
229 +
                cl::LocalSpaceArg smem = { shared_memory };
230 +
                K.setArg(argpos++, smem);
231 +
            }
232 +
228 233
            return *this;
229 234
        }
230 235
231 236
        /// Set launch configuration.
232 -
        kernel& config(size_t blocks, size_t threads) {
233 -
            return config(ndrange(blocks), ndrange(threads));
237 +
        kernel& config(size_t blocks, size_t threads, size_t shared_memory = 0) {
238 +
            return config(ndrange(blocks), ndrange(threads), shared_memory);
234 239
        }
235 240
236 241
        size_t preferred_work_group_size_multiple(const backend::command_queue &q) const {
Files Coverage
tests 99.53%
vexcl 95.12%
Project Totals (109 files) 95.89%
1432.9
TRAVIS_OS_NAME=osx
1432.7
TRAVIS_OS_NAME=osx

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading