compute-runtime/opencl
Patryk Wrobel 44e1f1ba4b Remove redundant copying of std::vectors
Usage of initializer list in for loop to iterate over heavy types
has bad consequences. std::initialize_list is only a view and its
data is silently created as T[N]. Therefore, if someone uses
std::vector with it, it will cause deep-copying of the elements.

This change introduces usage of pointers on std::initializer_list
to perform a shallow-copy of an addresses. Furthermore, it adds
const references in few places, where copy is not needed.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-08-16 09:27:16 +02:00
..
doc Documentation: FAQ update 2022-07-26 13:56:50 +02:00
extensions/public Add experimental CL_MEM_DEVICE_ID_INTEL property for memory object creation 2022-08-05 14:54:30 +02:00
source Add test to detect potential race 2022-08-12 09:42:58 +02:00
test Remove redundant copying of std::vectors 2022-08-16 09:27:16 +02:00
CMakeLists.txt Remove device enqueue part 5 2022-01-13 14:15:26 +01:00