ddemidov / vexcl

Compare 6ff7e17 ... +1 ... e162c29

Coverage Reach
vexcl/fft/unrolled_dft.hpp vexcl/fft/kernels.hpp vexcl/fft/plan.hpp vexcl/sort.hpp vexcl/backend/opencl/source.hpp vexcl/backend/opencl/filter.hpp vexcl/backend/opencl/kernel.hpp vexcl/backend/opencl/device_vector.hpp vexcl/backend/opencl/context.hpp vexcl/backend/opencl/event.hpp vexcl/backend/opencl/compiler.hpp vexcl/backend/opencl/image.hpp vexcl/backend/jit/source.hpp vexcl/backend/jit/kernel.hpp vexcl/backend/jit/compiler.hpp vexcl/backend/jit/context.hpp vexcl/backend/jit/device_vector.hpp vexcl/backend/jit/filter.hpp vexcl/backend/jit/event.hpp vexcl/backend/common.hpp vexcl/sparse/ell.hpp vexcl/sparse/distributed.hpp vexcl/sparse/csr.hpp vexcl/sparse/matrix.hpp vexcl/sparse/product.hpp vexcl/sparse/spmv_ops.hpp vexcl/scan_by_key.hpp vexcl/spmat/hybrid_ell.inl vexcl/spmat/csr.inl vexcl/spmat/ccsr.hpp vexcl/spmat/inline_spmv.hpp vexcl/operations.hpp vexcl/reduce_by_key.hpp vexcl/stencil.hpp vexcl/scan.hpp vexcl/vector_view.hpp vexcl/mba.hpp vexcl/vector.hpp vexcl/reductor.hpp vexcl/generator.hpp vexcl/spmat.hpp vexcl/tensordot.hpp vexcl/random.hpp vexcl/random/philox.hpp vexcl/random/threefry.hpp vexcl/temporary.hpp vexcl/tagged_terminal.hpp vexcl/logical.hpp vexcl/multivector.hpp vexcl/devlist.hpp vexcl/gather.hpp vexcl/eval.hpp vexcl/profiler.hpp vexcl/cache.hpp vexcl/detail/fusion.hpp vexcl/detail/backtrace.hpp vexcl/enqueue.hpp vexcl/cast.hpp vexcl/vector_pointer.hpp vexcl/multi_array.hpp vexcl/types.hpp vexcl/util.hpp vexcl/function.hpp vexcl/constants.hpp vexcl/constant_address_space.hpp vexcl/element_index.hpp vexcl/fft.hpp tests/spmv.cpp tests/vector_view.cpp tests/sparse_matrices.cpp tests/vector_arithmetics.cpp tests/multivector_arithmetics.cpp tests/stencil.cpp tests/generator.cpp tests/vector_create.cpp tests/sort.cpp tests/reduce_by_key.cpp tests/fft.cpp tests/deduce.cpp tests/vector_pointer.cpp tests/scan_by_key.cpp tests/vector_copy.cpp tests/temporary.cpp tests/events.cpp tests/tensordot.cpp tests/custom_kernel.cpp tests/tagged_terminal.cpp tests/multivector_create.cpp tests/multi_array.cpp tests/random.cpp tests/mba.cpp tests/context_setup.hpp tests/image.cpp tests/cast.cpp tests/scan.cpp tests/threads.cpp tests/random_matrix.hpp tests/types.cpp tests/logical.cpp tests/eval.cpp tests/context.cpp tests/random_vector.hpp tests/reinterpret.cpp tests/vector_io.cpp tests/constants.cpp tests/dummy1.cpp tests/dummy2.cpp tests/boost_version.cpp tests/svm.cpp

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -1,6 +1,6 @@
Loading
1 1
#define BOOST_TEST_MODULE VexIO
2 2
#include <boost/test/unit_test.hpp>
3 -
#include <boost/test/output_test_stream.hpp>
3 +
#include <boost/test/tools/output_test_stream.hpp>
4 4
#include <vexcl/vector.hpp>
5 5
#include <vexcl/element_index.hpp>
6 6
#include "context_setup.hpp"

@@ -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 {

@@ -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

Learn more Showing 104 files with coverage changes found.

Changes in vexcl/backend/opencl/compiler.hpp
-2
Loading file...
Changes in vexcl/backend/opencl/event.hpp
-6
+1
Loading file...
Changes in vexcl/sparse/matrix.hpp
-5
Loading file...
Changes in tests/scan_by_key.cpp
-7
+2
Loading file...
Changes in vexcl/backend/opencl/kernel.hpp
-9
+1
Loading file...
Changes in vexcl/backend/opencl/filter.hpp
-16
-4
Loading file...
Changes in vexcl/devlist.hpp
-7
Loading file...
Changes in vexcl/fft/plan.hpp
-17
+1
Loading file...
Changes in vexcl/sparse/csr.hpp
-6
Loading file...
Changes in vexcl/vector.hpp
-37
+3
Loading file...
Changes in vexcl/backend/jit/compiler.hpp
-2
Loading file...
Changes in vexcl/fft/kernels.hpp
-19
+4
Loading file...
Changes in vexcl/scan.hpp
-11
+3
Loading file...
Changes in vexcl/backend/opencl/source.hpp
-37
+1
Loading file...
Changes in tests/sparse_matrices.cpp
-9
+1
Loading file...
Changes in vexcl/scan_by_key.hpp
-15
+3
Loading file...
Changes in vexcl/reduce_by_key.hpp
-11
+2
Loading file...
Changes in vexcl/sort.hpp
-84
+5
Loading file...
Changes in vexcl/spmat.hpp
-6
Loading file...
Changes in vexcl/reductor.hpp
-16
-1
Loading file...
Changes in vexcl/generator.hpp
-20
Loading file...
Changes in tests/spmv.cpp
-29
+1
Loading file...
Changes in vexcl/operations.hpp
-47
-10
Loading file...
Changes in vexcl/backend/jit/kernel.hpp
-4
Loading file...
Changes in vexcl/backend/opencl/device_vector.hpp
-4
Loading file...
Changes in vexcl/sparse/ell.hpp
-9
-2
Loading file...
Changes in vexcl/vector_view.hpp
-46
-1
Loading file...
Changes in vexcl/backend/jit/source.hpp
-24
Loading file...
Changes in vexcl/stencil.hpp
-10
Loading file...
Changes in tests/scan.cpp
-2
Loading file...
Changes in vexcl/multi_array.hpp
-4
Loading file...
Changes in tests/random_vector.hpp
-5
Loading file...
Changes in vexcl/random/threefry.hpp
-3
Loading file...
Changes in tests/vector_arithmetics.cpp
-25
Loading file...
Changes in vexcl/detail/backtrace.hpp
-8
Loading file...
Changes in vexcl/random/philox.hpp
-2
Loading file...
Changes in tests/generator.cpp
-11
Loading file...
Changes in vexcl/spmat/ccsr.hpp
-5
Loading file...
Changes in tests/boost_version.cpp
-1
Loading file...
Changes in vexcl/eval.hpp
-2
Loading file...
Changes in vexcl/logical.hpp
-3
Loading file...
Changes in vexcl/backend/common.hpp
-9
Loading file...
Changes in vexcl/gather.hpp
-2
Loading file...
Changes in tests/deduce.cpp
-4
Loading file...
Changes in tests/multivector_arithmetics.cpp
-13
Loading file...
Changes in vexcl/fft.hpp
-2
Loading file...
Changes in tests/reinterpret.cpp
-1
Loading file...
Changes in tests/vector_copy.cpp
-8
Loading file...
Changes in vexcl/multivector.hpp
-6
Loading file...
Changes in vexcl/constant_address_space.hpp
-2
Loading file...
Changes in tests/tensordot.cpp
-3
Loading file...
Changes in vexcl/random.hpp
-8
Loading file...
Changes in tests/vector_view.cpp
-12
Loading file...
Changes in tests/events.cpp
-3
Loading file...
Changes in vexcl/cast.hpp
-5
Loading file...
Changes in vexcl/spmat/inline_spmv.hpp
-4
Loading file...
Changes in vexcl/tensordot.hpp
-8
Loading file...
Changes in vexcl/vector_pointer.hpp
-2
Loading file...
Changes in tests/dummy2.cpp
-1
Loading file...
Changes in tests/multivector_create.cpp
-5
Loading file...
Changes in tests/random_matrix.hpp
-1
Loading file...
Changes in tests/mba.cpp
-3
Loading file...
Changes in tests/logical.cpp
-1
Loading file...
Changes in vexcl/backend/jit/filter.hpp
-2
-1
Loading file...
Changes in tests/random.cpp
-2
Loading file...
Changes in tests/temporary.cpp
-5
Loading file...
Changes in tests/tagged_terminal.cpp
-2
Loading file...
Changes in tests/vector_pointer.cpp
-3
Loading file...
Changes in tests/context_setup.hpp
-3
Loading file...
Changes in tests/eval.cpp
-2
Loading file...
Changes in vexcl/backend/opencl/context.hpp
-18
Loading file...
Changes in tests/context.cpp
-2
Loading file...
Changes in vexcl/constants.hpp
-1
Loading file...
Changes in vexcl/sparse/spmv_ops.hpp
-3
Loading file...
Changes in vexcl/backend/jit/device_vector.hpp
-3
Loading file...
Changes in tests/threads.cpp
-2
Loading file...
Changes in vexcl/temporary.hpp
-6
Loading file...
Changes in vexcl/spmat/csr.inl
-9
Loading file...
Changes in tests/sort.cpp
-8
Loading file...
Changes in tests/vector_create.cpp
-11
Loading file...
Changes in vexcl/tagged_terminal.hpp
-6
Loading file...
Changes in vexcl/element_index.hpp
-1
Loading file...
Changes in tests/stencil.cpp
-14
Loading file...
Changes in vexcl/fft/unrolled_dft.hpp
-1
Loading file...
Changes in vexcl/sparse/product.hpp
-5
Loading file...
Changes in vexcl/util.hpp
-2
Loading file...
Changes in tests/constants.cpp
-1
Loading file...
Changes in vexcl/detail/fusion.hpp
-7
Loading file...
Changes in vexcl/spmat/hybrid_ell.inl
-13
Loading file...
Changes in tests/reduce_by_key.cpp
-5
Loading file...
Changes in tests/cast.cpp
-2
Loading file...
Changes in vexcl/mba.hpp
-21
Loading file...
CL/cl.hpp
Loading file...
vexcl/svm_vector.hpp
Loading file...
examples/devlist.cpp
Loading file...
vexcl/backend/opencl/error.hpp
Loading file...
vexcl/backend/opencl/svm_vector.hpp
Loading file...
Changes in vexcl/sparse/distributed.hpp
-8
-1
Loading file...
Changes in vexcl/cache.hpp
-8
-1
Loading file...
Changes in tests/fft.cpp
-6
-1
Loading file...
Changes in vexcl/profiler.hpp
-9
-1
Loading file...
Changes in vexcl/backend/jit/context.hpp
-7
-1
Loading file...
Changes in tests/image.cpp
-1
-1
Loading file...
Changes in tests/svm.cpp
-24
-1
Loading file...
Files Coverage
tests -0.08% 99.53%
vexcl 0.31% 95.12%
Project Totals (109 files) 95.89%
Loading