ddemidov / vexcl

Compare 35080d7 ... +2 ... 0ef6a6c

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/error.hpp vexcl/backend/opencl/context.hpp vexcl/backend/opencl/device_vector.hpp vexcl/backend/opencl/svm_vector.hpp vexcl/backend/opencl/event.hpp vexcl/backend/opencl/compiler.hpp vexcl/backend/opencl/image.hpp vexcl/backend/compute/filter.hpp vexcl/backend/compute/kernel.hpp vexcl/backend/compute/context.hpp vexcl/backend/compute/device_vector.hpp vexcl/backend/compute/event.hpp vexcl/backend/compute/svm_vector.hpp vexcl/backend/compute/compiler.hpp vexcl/backend/compute/image.hpp vexcl/backend/compute/error.hpp vexcl/backend/jit/source.hpp vexcl/backend/jit/kernel.hpp vexcl/backend/jit/compiler.hpp vexcl/backend/jit/device_vector.hpp vexcl/backend/jit/context.hpp vexcl/backend/jit/filter.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/vector_view.hpp vexcl/stencil.hpp vexcl/scan.hpp vexcl/vector.hpp vexcl/mba.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/tagged_terminal.hpp vexcl/temporary.hpp vexcl/logical.hpp vexcl/multivector.hpp vexcl/devlist.hpp vexcl/gather.hpp vexcl/profiler.hpp vexcl/detail/fusion.hpp vexcl/detail/backtrace.hpp vexcl/cache.hpp vexcl/eval.hpp vexcl/cast.hpp vexcl/svm_vector.hpp vexcl/enqueue.hpp vexcl/vector_pointer.hpp vexcl/multi_array.hpp vexcl/types.hpp vexcl/util.hpp vexcl/function.hpp vexcl/constant_address_space.hpp vexcl/constants.hpp vexcl/element_index.hpp vexcl/fft.hpp tests/spmv.cpp tests/vector_view.cpp tests/vector_arithmetics.cpp tests/sparse_matrices.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/image.cpp tests/tensordot.cpp tests/multivector_create.cpp tests/custom_kernel.cpp tests/tagged_terminal.cpp tests/random.cpp tests/multi_array.cpp tests/mba.cpp tests/context_setup.hpp tests/svm.cpp tests/scan.cpp tests/cast.cpp tests/threads.cpp tests/random_matrix.hpp tests/random_vector.hpp tests/types.cpp tests/eval.cpp tests/logical.cpp tests/context.cpp tests/reinterpret.cpp tests/constants.cpp tests/vector_io.cpp tests/dummy1.cpp tests/dummy2.cpp tests/boost_version.cpp CL/cl.hpp examples/devlist.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.

Showing 1 of 2 files from the diff.
Other files ignored by Codecov
CMakeLists.txt has changed.

@@ -157,11 +157,25 @@
Loading
157 157
        return *this;
158 158
    }
159 159
160 +
    template <typename U>
161 +
    const vector_type2& operator+=(U o) {
162 +
        s0 += o;
163 +
        s1 += o;
164 +
        return *this;
165 +
    }
166 +
160 167
    const vector_type2& operator-=(const vector_type2 &o) {
161 168
        s0 -= o.s0;
162 169
        s1 -= o.s1;
163 170
        return *this;
164 171
    }
172 +
173 +
    template <typename U>
174 +
    const vector_type2& operator-=(U o) {
175 +
        s0 -= o;
176 +
        s1 -= o;
177 +
        return *this;
178 +
    }
165 179
};
166 180
167 181
template <typename T>
@@ -194,12 +208,24 @@
Loading
194 208
    return a;
195 209
}
196 210
211 +
template <typename T, typename U>
212 +
vector_type2<T> operator+(vector_type2<T> a, U b) {
213 +
    a += b;
214 +
    return a;
215 +
}
216 +
197 217
template <typename T>
198 218
vector_type2<T> operator-(vector_type2<T> a, const vector_type2<T> &b) {
199 219
    a -= b;
200 220
    return a;
201 221
}
202 222
223 +
template <typename T, typename U>
224 +
vector_type2<T> operator-(vector_type2<T> a, U b) {
225 +
    a -= b;
226 +
    return a;
227 +
}
228 +
203 229
template <typename T>
204 230
struct vector_type4 {
205 231
    union {
@@ -250,13 +276,31 @@
Loading
250 276
        return *this;
251 277
    }
252 278
279 +
    template <typename U>
280 +
    const vector_type4& operator+=(U o) {
281 +
        s0 += o;
282 +
        s1 += o;
283 +
        s2 += o;
284 +
        s3 += o;
285 +
        return *this;
286 +
    }
287 +
253 288
    const vector_type4& operator-=(const vector_type4 &o) {
254 289
        s0 -= o.s0;
255 290
        s1 -= o.s1;
256 291
        s2 -= o.s2;
257 292
        s3 -= o.s3;
258 293
        return *this;
259 294
    }
295 +
296 +
    template <typename U>
297 +
    const vector_type4& operator-=(U o) {
298 +
        s0 -= o;
299 +
        s1 -= o;
300 +
        s2 -= o;
301 +
        s3 -= o;
302 +
        return *this;
303 +
    }
260 304
};
261 305
262 306
template <typename T>
@@ -289,12 +333,24 @@
Loading
289 333
    return a;
290 334
}
291 335
336 +
template <typename T, typename U>
337 +
vector_type4<T> operator+(vector_type4<T> a, U b) {
338 +
    a += b;
339 +
    return a;
340 +
}
341 +
292 342
template <typename T>
293 343
vector_type4<T> operator-(vector_type4<T> a, const vector_type4<T> &b) {
294 344
    a -= b;
295 345
    return a;
296 346
}
297 347
348 +
template <typename T, typename U>
349 +
vector_type4<T> operator-(vector_type4<T> a, U b) {
350 +
    a -= b;
351 +
    return a;
352 +
}
353 +
298 354
#define VECTOR_TYPES(T) \
299 355
    typedef vector_type2<T> T ## 2; \
300 356
    typedef vector_type4<T> T ## 3; \

Learn more Showing 19 files with coverage changes found.

Changes in vexcl/spmat.hpp
+1
+2
Loading file...
Changes in tests/scan_by_key.cpp
+1
Loading file...
Changes in vexcl/sparse/distributed.hpp
+2
Loading file...
Changes in vexcl/random/threefry.hpp
+1
Loading file...
Changes in vexcl/random/philox.hpp
+1
Loading file...
Changes in vexcl/fft/kernels.hpp
+5
Loading file...
Changes in vexcl/random.hpp
+1
Loading file...
Changes in tests/context.cpp
+1
Loading file...
New file vexcl/backend/jit/kernel.hpp
New
Loading file...
New file vexcl/backend/jit/compiler.hpp
New
Loading file...
New file vexcl/backend/jit/filter.hpp
New
Loading file...
New file vexcl/backend/jit/source.hpp
New
Loading file...
New file vexcl/backend/jit/device_vector.hpp
New
Loading file...
New file vexcl/backend/jit/context.hpp
New
Loading file...
Changes in vexcl/sort.hpp
-2
+2
Loading file...
Changes in examples/devlist.cpp
+4
Loading file...
Changes in vexcl/stencil.hpp
-1
+1
Loading file...
Changes in vexcl/backend/common.hpp
+21
Loading file...
Changes in tests/svm.cpp
+1
Loading file...
Files Coverage
tests -0.04% 98.79%
vexcl 0.01% 94.29%
CL/cl.hpp 85.20%
examples/devlist.cpp 0.32% 96.15%
Project Totals (122 files) 94.82%
Loading