Commit Graph

791 Commits

Author SHA1 Message Date
Jakub Szuppe
2904664177
Fix type for CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE
Fixes #825
2019-02-15 22:22:49 +01:00
Jakub Szuppe
a47ff938b7
Merge pull request #823 from jszuppe/accessors-reupload
Accessors reupload
2019-02-10 16:30:30 +01:00
Jakub Szuppe
c4d1a88b23
Merge pull request #797 from u-s/feature/copy-with-wait-list
Added wait_list parameter to "copy" functions
2019-02-10 16:29:49 +01:00
Jakub Szuppe
8c7412f19d
Merge pull request #748 from henryiii/add_test_mactypes
Support for set_arg on macOS
2019-02-10 16:29:25 +01:00
Denis Demidov
f00732ee50 Include compute/types.hpp into compute/core.hpp 2019-02-10 11:53:30 +01:00
Denis Demidov
5adad8e248 kernel.hpp needs to include types.hpp 2019-02-10 11:53:30 +01:00
Jakub Szuppe
827371af22
Merge pull request #772 from umar456/scan_fix
Fix out of bound access in local_scan kernel
2019-02-10 11:51:43 +01:00
Anton Myagkov
3de4bbaa0b Added wait_list parameter to copy functions 2019-02-10 11:49:36 +01:00
Jakub Szuppe
3eb11f1cde Zero-init new vector_type 2019-02-10 11:46:05 +01:00
Amir Shavit
6c6a10893d Added a static assert to assure there's no padding between the members 2019-02-10 11:45:40 +01:00
Amir Shavit
04f7d5867f Added accessors to vector types 2019-02-10 11:45:40 +01:00
Jakub Szuppe
924ed68562
Merge pull request #820 from friederbluemle/fix-typo
Fix typo
2019-02-07 11:11:14 +01:00
Frieder Bluemle
f171c6197e
Fix typo 2019-01-28 11:36:47 +08:00
Anthony C
81dc8c7352 insert memory fence to avoid AMD OpenCL compiler reordering the read/writes 2019-01-18 22:50:43 +08:00
Jakub Szuppe
6fbfa0f679 Disable warning about deprecated CL extension 2018-12-28 19:11:15 +01:00
Jakub Szuppe
be85263cc1
Merge pull request #805 from jszuppe/fix_travis_ci
Update CL version selection, fix Travis CI
2018-12-27 11:55:40 +01:00
Jakub Szuppe
78dd4315ae Adjust selecting CL version to new OpenCL headers
OpenCL 1.0/1.1/1.2/2.0/2.1/2.2 headers are now unified into single
sets of header files. CL version is selected by defining
CL_TARGET_OPENCL_VERSION macro.

See https://github.com/KhronosGroup/OpenCL-Headers
2018-12-25 09:54:30 +01:00
Anthony C
3cba294aed reduce local memory operations per suggestion from @jszuppe 2018-12-20 08:08:29 +08:00
Anthony C
bceb336c39 fix issue #774 by force swapping keys when they are identical 2018-12-19 21:25:20 +08:00
Jakub Szuppe
bbf9d132a6
Merge pull request #790 from boostorg/fully-qualify-make-zip-iterator
Fully qualify make_zip_iterator() in transform()
2018-07-20 11:43:23 +02:00
Kyle Lutz
ffd3f2f9b9 Fully qualify make_zip_iterator() in transform() 2018-07-18 22:06:51 -07:00
Jakub Szuppe
509ebe4a92
Merge pull request #780 from jszuppe/fix_memory_leak_746
Fix memory leak
2018-05-13 22:14:06 +02:00
Jakub Szuppe
58bf86692c Fix mem. leak in buffer_iterator_index_expr default copy ctor
OpenCL buffer reference counter was increased in default copy ctor (since
it called compute::buffer copy ctor), but was never decremented because
dtor sets buffer to null preventing that.
2018-05-12 12:29:44 +02:00
pradeep
fdbdb94db6 Fix return var qualifier in svm_ptr::get_context
Lack of `const` qualifier is throwing errors with GCC 8.1
2018-05-08 14:53:42 +05:30
Jakub Szuppe
520f9b35b1
Merge pull request #773 from sznaider/fix-cl-gl-extension-name
Use system-dependent CL<->GL sharing extension name instead of hardcoded string
2018-04-12 14:24:39 +02:00
Mateusz Krawiec
330a6dcfdb Use system-dependent CL<->GL sharing extension name instead of hardcoded string 2018-04-11 22:54:07 +02:00
Umar Arshad
86b36bae6e Fix out of bound access in local_scan kernel 2018-04-10 02:35:38 -04:00
Jakub Szuppe
1bf4b53f60
Merge pull request #763 from lakshayg/static_assert
add static asserts for device iterators
2018-03-10 09:23:10 +01:00
Lakshay Garg
d833b22bb1 Add is_device_asserts 2018-03-04 16:59:49 +05:30
Lakshay Garg
ade726a613 Remove STATIC_ASSERTs which caused failures 2018-03-04 16:56:38 +05:30
Lakshay Garg
147a330984 add static asserts for device iterators 2018-03-04 16:56:38 +05:30
Lakshay Garg
a6879d2c2c add future::then() method
resolves #94
2018-03-04 16:56:03 +05:30
Jakub Szuppe
4650541e3b
Merge pull request #761 from jeffhammond/use-std-shuffle-in-random_shuffle
use std::shuffle for post-C++11
2018-02-28 09:56:47 +01:00
Jeff Hammond
ebf13a6c77 fix error in use of std::random_device 2018-02-27 19:45:48 +01:00
Jeff Hammond
b46d156064 initialize random engine with random device 2018-02-27 19:45:48 +01:00
Jeff Hammond
520a4f384e use std::shuffle for post-C++11
std::random_shuffle was deprecated in C++14 and deleted in C++17.
std::shuffle was added in C++11.  using it fixes build issues with
clang+libc++ when compiling with -std=c++1z.

fixes issue #760
2018-02-27 19:45:48 +01:00
Denis Demidov
615e1ac41b
boost/uuid/sha1.hpp is deprecated since v1.66
This suppresses the warning at
https://github.com/boostorg/uuid/blob/boost-1.66.0/include/boost/uuid/sha1.hpp#L13
2018-02-01 11:01:06 +03:00
Kristian Popov
50338da2aa Added no throwing destructor to program build failure 2017-11-28 20:47:59 +01:00
Kristian Popov
0100733230 Added copyright notice to new files 2017-11-28 20:45:54 +01:00
Kristian Popov
286c7dc9ca Program build throws a more precise exception that stores build log 2017-11-28 20:45:51 +01:00
Jakub Szuppe
77b4a4910b Threefry: use ulong_ instead of uint2_ on host 2017-10-13 11:39:27 +02:00
Jakub Szuppe
7ecb09a47c Fix Threefry RNG 2017-10-12 22:14:26 +02:00
Jakub Szuppe
3fd1ed49e4 Zero-initialize vector types 2017-10-12 22:14:13 +02:00
Kyle Lutz
d36ef02b78 Merge pull request #742 from jszuppe/fix_strided_iter_tag
Fix strided_iterator tag
2017-09-12 05:22:47 +02:00
Jakub Szuppe
48c9e86479 Fix strided_iterator's iterator_category
Using std::iterator_traits<> to get iterator tag prevents
from converting STL iterator tag to Boost tag.
2017-09-10 23:24:55 +02:00
Janusz Rupar
2973b1c067 #738 build_with_source_file() added 2017-08-16 16:55:21 +02:00
Denis Demidov
c9522ad4c0 size_t and ptrdiff_t need special treatment on OSX
See ddemidov/vexcl#222
2017-08-08 11:23:36 +03:00
Jakub Szuppe
6c2a3604b9 Implement vector::shrink_to_fit() 2017-06-17 17:44:26 +02:00
Jakub Szuppe
766dc7881c Fix memory releasing in vector
Memory (buffer) should be released if capacity is greater
than zero (which means that something was allocated), not if size
is greater than zero.
2017-06-17 17:42:03 +02:00
Jakub Szuppe
cff33b24a6 Fix warning #730 2017-06-17 14:11:18 +02:00