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
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
Kyle Lutz
251d02b17d
Merge pull request #731 from jszuppe/pr_svm_migrate_mem
...
Add wrapper for clEnqueueSVMMigrateMem()
2017-06-11 13:18:47 -07:00
Jakub Szuppe
f568c447e3
Add wrapper for clEnqueueSVMMigrateMem()
2017-06-11 08:19:35 +02:00
Kyle Lutz
08e00e3848
Merge pull request #729 from jszuppe/pr_default_device_queue
...
Default device queue
2017-06-10 19:13:44 -07:00
Jakub Szuppe
97b91bffa1
Fix OpenCL 2.1 references
2017-06-04 14:47:37 +02:00
Jakub Szuppe
cb534cdfa2
Add clSetDefaultDeviceCommandQueue wrapper
2017-06-04 14:46:05 +02:00
Jakub Szuppe
70234dd24b
Fix issue #727
2017-06-03 13:32:41 +02:00
Jakub Szuppe
8f0b1bbc3f
Make device get timer methods const
2017-05-27 20:31:53 +02:00
Jakub Szuppe
b43adb4517
Add host timer res query to platform
2017-05-27 18:05:01 +02:00
Jakub Szuppe
86af893f58
Add OpenCL 2.1 device info queries
2017-05-27 18:05:01 +02:00
Jakub Szuppe
80ef5a7758
Add clGetHostTimer and clGetDeviceAndHostTimer
...
Add wrappers for clGetHostTimer and clGetDeviceAndHostTimer to
device class.
2017-05-27 18:05:01 +02:00
Jakub Szuppe
7542dd0622
Add create_program_with_il() to program
2017-05-23 00:06:12 +02:00
Jakub Szuppe
8979846ba0
Merge pull request #720 from jszuppe/pr_kernel_clone
...
Add clCloneKernel() wrapper
2017-05-16 10:51:51 +02:00
Janusz Rupar
da05ba9631
vector::reserve() implemented
...
Fixes bug #687
2017-05-14 11:32:33 +02:00
Jakub Szuppe
6fc7bea6e9
Fix scan_on_cpu algorithm
2017-05-13 15:22:45 +02:00
Jakub Szuppe
24bbb350bb
Add clone() to kernel class
...
This adds wrapper for clCloneKernel() OpenCL 2.1 API
function to the kernel class.
2017-05-12 21:38:24 +02:00
Jakub Szuppe
c736d6eb9c
Add check_version() to platform class
2017-05-12 21:23:03 +02:00
Jakub Szuppe
77fe5e8204
Add desc to check_version() in device class
2017-05-12 21:23:03 +02:00
Jakub Szuppe
aa778dc822
Add missing BOOST_COMPUTE_MAX_CL_VERSION defs
2017-05-07 11:56:26 +02:00
Jakub Szuppe
d4b0192634
Add get_sub_group_info() to kernel class
2017-05-07 11:56:25 +02:00
Jakub Szuppe
114e444a7e
Small fixes to opengl/context.hpp
2017-05-06 20:27:17 +02:00
Jakub Szuppe
863371d290
Merge pull request #715 from haahh/pr_fixes
...
Various fixes
2017-04-27 20:58:01 +02:00
Jakub Szuppe
193d7f6247
Merge pull request #712 from ddemidov/issue-692
...
Optionally enforce device selected with BOOST_COMPUTE_DEFAULT variables
2017-04-26 11:32:58 +02:00